Gemini 2.5 Flash Image Text-to-Image
Images
Gemini 2.5 Flash Image Text-to-Image
POST
Gemini 2.5 Flash Image Text-to-Image
Generate images from text prompts using the Gemini 2.5 Flash model.
Request Headers
Enum value:
application/jsonBearer authentication format: Bearer {{API Key}}.
Request Body
The text prompt describing the image to generate
The aspect ratio of the generated image. Available values: 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9Optional values:
1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9Response Information
List of URLs for the generated images