Skip to main content

Module image_model

Module image_model 

Source
Expand description

Image model interface.

Structs§

AspectRatio
Aspect ratio, serialized as WIDTH:HEIGHT.
GeneratedImage
A generated image.
ImageFile
An input image: inline bytes or a URL.
ImageOptions
Options for an image generation call.
ImageResult
Result of an image generation call.
ImageSize
Image size in pixels, serialized as WIDTHxHEIGHT.
ImageUsage
Token usage of an image call.
InvalidDimension
Error returned when a size or aspect ratio string is malformed.

Traits§

ImageModel
A model that generates images from a prompt.