Create image
Creates an image given a prompt. Internally routes to a chat completions model with image generation capabilities.
post/v1/images/generations
Request body
Example request
{
"prompt": "A white siamese cat",
"model": "gemini-3.1-flash-image-preview",
"n": 1,
"size": "1024x1024",
"quality": "standard",
"response_format": "b64_json",
"style": "vivid",
"aspect_ratio": "16:9"
}Response
Image generation response.
Changes
No recorded changes to this endpoint across all 1 revision of this API.