Submit an asynchronous image task
Interactive API
Submit an asynchronous image task
Queue a Gemini-native Nano Banana request and receive a YingTu task ID with HTTP 202.
POST
Submit an asynchronous image task
The request body is identical to the synchronous method. The response confirms
task acceptance, not image completion.
Persist the returned
task_id before acknowledging the job to your caller.
There is no callback URL or client idempotency key in the current flow.Authorizations
YingTu API key.
Path Parameters
Current Nano Banana model ID.
Available options:
gemini-2.5-flash-image, gemini-3.1-flash-lite-image, gemini-3.1-flash-image, gemini-3-pro-image Body
application/json
Messages sent to the model.
Minimum array length:
1Optional Gemini tools. Availability depends on the selected image model.
Configuration for tools declared in tools.
Optional cached content resource name when supported by the selected model.