Docs
Image output
Receive images through the Chat path. Use this when you want to generate images while keeping conversational context.
How to call
Add image to modalities and image parts appear mixed into the response content, giving you text and image together.
Output format
Base64 is the default. Specify url to receive a temporary link with an expiry instead.
| Field | Value | Note |
|---|---|---|
| modalities | ["text", "image"] | Request image output |
| image_format | base64 | url | Default base64 |
| image_size | 1024x1024 … | Model dependent |
Limits
Up to 4 images per request. Image generation bills per image, not per token.