Gemini-2.5-Flash-Image Official
Gemini-2.5-Flash Official Image Generation
Generate images using Google Gemini 2.5 Flash official direct-connect model, fast and efficient
POST
Documentation Index
Fetch the complete documentation index at: https://docs.toapis.com/llms.txt
Use this file to discover all available pages before exploring further.
- Direct connection to Google Vertex AI using the Gemini 2.5 Flash Image native API
- Select the
gemini-2.5-flash-image-officialmodel via the model parameter - Supports text-to-image and image-to-image generation
- Supports native generation parameters like temperature, topP, and maxOutputTokens
- Supports personGeneration and imageOutputOptions image configuration
- Supports safetySettings for content safety control
- Asynchronous task management with task ID for result querying
Authorizations
All endpoints require Bearer Token authenticationGet API Key: Visit the API Key Management page to obtain your API KeyAdd to request headers:
Body
Image generation model nameExample:
"gemini-2.5-flash-image-official"Text description for image generation
Image aspect ratioSupported formats:
1:1- Square3:2/2:33:4/4:34:5/5:49:16/16:921:9
Number of images to generateFixed at 1
Reference image URL array for image-to-image generation or editing⚠️ Only URL format is supported (base64 is no longer supported)
- Publicly accessible image URLs (http:// or https://)
- Use the Upload Image endpoint to upload local images and get URLs
- Maximum 3 images
- Maximum file size per image: 10MB
- Supported formats: .jpeg, .jpg, .png, .webp
Vertex AI native extension parameters
Response
Unique task identifier for querying task status
Object type, always
generation.taskModel name used
Task status
queued- Queued for processingin_progress- Processingcompleted- Successfully completedfailed- Failed
Task progress percentage (0-100)
Task creation timestamp (Unix timestamp)
Task metadata