Gemini-3-Pro-Image-preview (Nano banana2)
Gemini-3-Pro Image Generation
Generate images using Google Gemini 3 Pro model, with powerful image generation capabilities
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.
- Google Gemini 3 Pro powerful image generation model (Nano banana2)
- Use model parameter to select
gemini-3-pro-image-previewmodel - Supports text-to-image generation
- Async task management, query results by task ID
Authorizations
All endpoints require Bearer Token authenticationGet your API Key from the API Key Management PageAdd to request header:
Body
Image generation model nameModel alias:
nano-banana-proExample: "gemini-3-pro-image-preview"Text description for image generationThe upstream model input limit is 65,536 tokens. ToAPIs does not add a 1000-character cap.
Image generation aspect ratioSupported formats:
- Ratios:
1:1,2:3,3:2,3:4,4:3,4:5,5:4,9:16,16:9,21:9
Number of images to generateFixed at 1⚠️ Note: Must be a pure number (e.g.
1), do not add quotes, otherwise it will errorMetadata parameters for passing additional configuration options
List of reference image URLs for image-to-image or image editingLimit: Maximum 14 images
Response
Unique task identifier for status queries
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