Generate an image with gemini-2.5-flash-image
Gemini 2.5 Flash Image
Gemini 2.5 Flash Image examples
Run synchronous, asynchronous, and image-editing requests with the stable gemini-2.5-flash-image model ID.
POST
Generate an image with gemini-2.5-flash-image
Generate synchronously
Submit asynchronously
Use the same body with:asyncGenerateContent. HTTP 202 returns a task ID;
retrieve it from /v1/tasks/{task_id}. The verified task moved through
in_progress and completed with a 1024 × 1024 PNG.
Decode every image part
The image may not be the first part, even in a successful response.
Test this model online
This page includes the real OpenAPI Try it form for the fixedgemini-2.5-flash-image path. Enter a development key, review the request body,
and send the synchronous call without leaving this example.
Authorizations
YingTu API key.
Body
application/json
Response
Complete Gemini response
The model version that produced the response.
Example:
"gemini-2.5-flash-image"
Provider response identifier.
Example:
"response_example"
Creation time when supplied by the selected model channel.