Generate images
Generates one or more images from a text prompt using an image-generation model from config.litellm.yaml. Generated images are uploaded to S3 under the session’s prefix and a presigned URL is returned for each. Requires write access to the session. Returns 503 when LiteLLM, S3, or image-generation models are not configured.
Authorizations
Organisation API key. Format: sk_<secret>/<keyname> — the secret portion, a literal slash, and the human-readable key name. The header exulu-api-key is accepted as an alias. A Bearer prefix is tolerated and stripped. Keys with an agent scope are only valid for the scoped agent instance.
Body
Session to associate the generated images with.
Tool call ID linking this generation to a specific tool invocation.
Model name as listed in config.litellm.yaml with model_info.type: image_generation.
Text prompt to generate images from.
Number of images to generate. Must not exceed the model's max_n limit.
x >= 1Image dimensions (e.g. 1024x1024). Must be a value supported by the chosen model.
Generation quality level (e.g. standard, hd). Must be supported by the chosen model.
Optional ID of a saved style (platform_configurations row). Its markdown content is appended to the prompt.