Gemini-3.1-Flash-Image Official / Nano Banana 2
Gemini-3.1-Flash Official 이미지 생성
Generate images using Google Gemini 3.1 Flash official direct-connect model with thinking mode and extreme aspect ratios
POST
- Direct connection to Google Vertex AI using the Gemini 3.1 Flash Image native API
- Select the
gemini-3.1-flash-image-preview-officialmodel via the model parameter - Nano Banana 2 aliases:
nano-banana-2-lite-officialandnano-banana-2-official - Supports text-to-image and image-to-image generation
- Supports native generation parameters like temperature, topP, and maxOutputTokens
- Supports resolution (1K/2K/4K), personGeneration, and imageOutputOptions image configuration
- Supports thinkingConfig thinking mode for improved complex scene generation
- Supports safetySettings for content safety control
- Supports extreme aspect ratios (4:1, 8:1)
- Asynchronous task management with task ID for result querying
Authorizations
string
필수
All endpoints require Bearer Token authenticationGet API Key: Visit the API Key Management page to obtain your API KeyAdd to request headers:
Body
string
기본값:"gemini-3.1-flash-image-preview-official"
필수
Image generation model nameExample:
"gemini-3.1-flash-image-preview-official"string
필수
Text description for image generation
string
Image aspect ratioSupported formats:
1:1- Square3:2/2:33:4/4:34:5/5:49:16/16:921:94:1/8:1- Extreme widescreen ratios
integer
기본값:1
Number of images to generateFixed at 1
string[]
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 14 images
- Maximum file size per image: 10MB
- Supported formats: .jpeg, .jpg, .png, .webp
object
Vertex AI native extension parameters
응답
string
Unique task identifier for querying task status
string
Object type, always
generation.taskstring
모델 name used
string
Task status
queued- Queued for processingin_progress- Processingcompleted- Successfully completedfailed- Failed
integer
Task progress percentage (0-100)
integer
Task creation timestamp (Unix timestamp)
object
Task metadata