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§
- Generate
Image - Builder returned by
generate_image;.awaitruns the calls. - Generate
Image Result - Result of
generate_image. - Generated
Image - A generated image.
- Image
Call - One provider call of
generate_image. - Image
File - An input image: inline bytes or a URL.
- Image
Usage - 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.