Gemini Images (Nano Banana)
Gemini Format for Image Generation
Gemini Images (Nano Banana)
Gemini image generation.
Nano Banana series supports the OpenAI Dall-E format (see Image Generation OpenAI DALL-E Format).
Gemini image generation compatible API. Put text or image inputs in contents[].parts, generationConfig.responseModalities usually pass IMAGE, and control the image size through generationConfig.imageConfig.imageSize.
Fixed pricing for image generation
The following image models are billed per request:
| Model | Pricing |
|---|---|
kling-image-v3 | 0.05 / request |
doubao-seedream-5-0-260128 | 0.05 / request |
doubao-seedream-4-5-251128 | 0.06 / request |
POST
Gemini Images (Nano Banana)
Authorizations
Use Bearer Token authentication.
Format: Authorization: Bearer sk-xxxxxx
Path Parameters
Model Name
Body
application/json
