Skip to main content

Module image

Module image 

Source
Expand description

Image generation: generate_image splits n images into provider calls, runs them concurrently and retries empty results.

Design: docs/01-architecture/11-other-modalities.md §2.

Structs§

GenerateImage
Builder returned by generate_image; .await runs the calls.
GenerateImageResult
Result of generate_image.
GeneratedImage
A generated image.
ImageCall
One provider call of generate_image.
ImageFile
An input image: inline bytes or a URL.
ImageUsage
Token usage of an image call.

Functions§

edit_image
Generates images from reference images (image-to-image), optionally guided by a prompt set with GenerateImage::prompt.
generate_image
Generates images from a text prompt.