Google Gemini
Gemini 2.5 Flash Image (Nano Banana)
Create asynchronous image tasks with gemini-2.5-flash-image (alias Nano Banana) via POST /v1/predictions (function image).
POST
Authorizations
Authorization: Bearer YOUR_API_KEY
Body
application/json
Model ID. Use gemini-2.5-flash-image (alias Nano Banana) for this endpoint.
Available options:
gemini-2.5-flash-image Example:
"gemini-2.5-flash-image"
Task type. Must be image for image generation.
Available options:
image Example:
"image"
Optional HTTPS callback URL when the task completes, fails, or is cancelled (Predictions API).
Response
Async task created