Skip to main content
RunAnywhere.images runs diffusion models on-device. The backend is CoreML, so this works on Apple platforms only; on Android the call throws because no diffusion engine is registered.
ImageResult carries images (a List<ImageData> in batch order), seed (the seed the sampler actually used), and steps. ImageData carries bytes, width, height, and mediaType, which is non-null when the backend reported one.

ImageOptions

Progress

generateStream reports each denoising step, and previews too when reportPartials is on.
ImageEvent is sealed. Failures arrive as an SDKException thrown into the consumer.

Inpainting

Inpainting is a mode on the options, not a separate verb. Supply the base image and a mask marking the region to repaint.

Models

Diffusion models register under MODEL_CATEGORY_IMAGE_GENERATION with the CoreML framework, so gate the registration to Apple platforms.
Diffusion is memory hungry. A 1.5-class model needs well over a gigabyte resident, so unload other models first with RunAnywhere.models.unload().

See also

Vision language

Reading images instead of making them

Models

Registration and memory