Skip to content
alpharouter

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.

FieldValueNote
modalities["text", "image"]Request image output
image_formatbase64 | urlDefault base64
image_size1024x1024 …Model dependent

Limits

Up to 4 images per request. Image generation bills per image, not per token.