Gemini 3 Pro Image
gemini-3-pro-imageUse the Gemini 3 Pro Image API for image generation and editing. Use a text prompt to create a new image or provide a reference for an edit. Create illustrations, design concepts, and visual assets. Compare the available provider routes, request examples, and usage prices on OpenAny.
Auto route pricing
Route source: Tencent
- Input / Output
- Input: Price not suppliedOutput: $1.379
- Cache read / write
- Cache read: Price not suppliedCache write: Price not supplied
- Context / Max output
- 65.54K / 32.77K
- Live routes
- 2
Rates / 1M tokens
Image output: Price not supplied
These are separate usage rates, not a total request price.
On this page
Overview
Use the Gemini 3 Pro Image API for image generation and editing. Use a text prompt to create a new image or provide a reference for an edit. Create illustrations, design concepts, and visual assets. Compare the available provider routes, request examples, and usage prices on OpenAny.
Playground
Result preview
Tencent · 135ms
Response example. Run to see the actual response.

{
"candidates": [
{
"index": 0,
"content": {
"role": "model",
"parts": [
{
"inlineData": {
"data": "https://openmodels.market/api/v1/public/files/download?key=key-market%2Fplaygrounds%2F2026%2F09%2F11%2Faa082ba4-54a5-4471-a909-40b00915891e.jpg",
"mimeType": "image/jpeg"
}
}
]
},
"finishReason": "STOP"
}
],
"request_id": "5d5baf6e-de57-4753-b666-aceacb3010c1",
"modelVersion": "gemini-3-pro-image",
"tokenhub_usage": {
"total_tokens": 135098
},
"openmodels_cost": 200107
}Agent handoff preview
Providers
| Provider | Pricing | Latency | Uptime | Supply | Route |
|---|---|---|---|---|---|
Live | Input $2.124 / 1M tokens Output $127.448 Cache read — Cache write — | 480ms | — | Verified | |
Live | Output $1.379 / 1M tokens Input — Cache read — Cache write — | 135ms | — | Verified |
- Output
- $1.379
Source: the selected provider route in OpenAny's public model catalog. A price update timestamp is not supplied.
API
- Base URL
https://api.openany.si/v1- POST
/v1/images/generations- POST
/v1/images- Authentication
Authorization: Bearer $OPENANY_API_KEY
Request parameters
| Parameter | Type / range | Default value | Required | Description |
|---|---|---|---|---|
contents | array | — | Yes | Gemini input content. Each entry contains a parts array. |
model | string | — | Yes | Public model name used by OpenAny. |
generationConfig | object | — | No | Output modalities and image generation settings for Gemini. |
response_format | object | — | No | response_format |
route | object | — | No | OpenAny routing settings. |
route_mode | string | — | No | OpenAny route selection mode. |
Request example
curl 'https://api.openany.si/v1/images/generations' \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [
{
"parts": [
{
"text": "Generate an image of a Chinese Li Hua cat in a modern studio product-photo style."
}
]
}
],
"model": "gemini-3-pro-image",
"response_format": {
"aspect_ratio": "1:1",
"mime_type": "image/png",
"type": "image"
}
}'Response example
Configured response example · not a live result
{
"candidates": [
{
"index": 0,
"content": {
"role": "model",
"parts": [
{
"inlineData": {
"data": "https://openmodels.market/api/v1/public/files/download?key=key-market%2Fplaygrounds%2F2026%2F09%2F11%2Faa082ba4-54a5-4471-a909-40b00915891e.jpg",
"mimeType": "image/jpeg"
}
}
]
},
"finishReason": "STOP"
}
],
"request_id": "5d5baf6e-de57-4753-b666-aceacb3010c1",
"modelVersion": "gemini-3-pro-image",
"tokenhub_usage": {
"total_tokens": 135098
},
"openmodels_cost": 200107
}Error handling
400Check the model ID and request fields.429Retry with exponential backoff.5xxRetry only temporary provider failures.JSON Schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"model",
"contents"
],
"properties": {
"model": {
"type": "string",
"description": "Public model name used by OpenAny."
},
"route": {
"type": "object",
"properties": {
"provider": {
"type": "string"
}
},
"description": "OpenAny routing settings."
},
"contents": {
"type": "array",
"items": {
"type": "object",
"required": [
"parts"
],
"properties": {
"role": {
"enum": [
"user",
"model"
],
"type": "string"
},
"parts": {
"type": "array",
"items": {
"type": "object",
"anyOf": [
{
"required": [
"text"
]
},
{
"required": [
"inlineData"
]
},
{
"required": [
"fileData"
]
}
],
"properties": {
"text": {
"type": "string"
},
"fileData": {
"type": "object",
"required": [
"fileUri"
],
"properties": {
"fileUri": {
"type": "string"
},
"mimeType": {
"type": "string"
}
}
},
"inlineData": {
"type": "object",
"required": [
"mimeType",
"data"
],
"properties": {
"data": {
"type": "string"
},
"mimeType": {
"type": "string"
}
}
},
"thoughtSignature": {
"type": "string"
}
}
},
"minItems": 1
}
}
},
"minItems": 1,
"description": "Gemini input content. Each entry contains a parts array."
},
"route_mode": {
"type": "string",
"description": "OpenAny route selection mode."
},
"response_format": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"mime_type": {
"type": "string"
},
"aspect_ratio": {
"type": "string"
}
}
},
"generationConfig": {
"type": "object",
"properties": {
"imageConfig": {
"type": "object",
"properties": {
"imageSize": {
"enum": [
"1K",
"2K",
"4K"
],
"type": "string"
},
"aspectRatio": {
"enum": [
"1:1",
"2:3",
"3:2",
"3:4",
"4:3",
"4:5",
"5:4",
"9:16",
"16:9",
"21:9"
],
"type": "string"
}
}
},
"responseFormat": {
"type": "object",
"properties": {
"image": {
"type": "object",
"properties": {
"mimeType": {
"type": "string"
},
"imageSize": {
"enum": [
"1K",
"2K",
"4K"
],
"type": "string"
},
"aspectRatio": {
"enum": [
"1:1",
"2:3",
"3:2",
"3:4",
"4:3",
"4:5",
"5:4",
"9:16",
"16:9",
"21:9"
],
"type": "string"
}
}
}
}
},
"responseModalities": {
"type": "array",
"items": {
"enum": [
"TEXT",
"IMAGE"
],
"type": "string"
},
"minItems": 1
}
},
"description": "Output modalities and image generation settings for Gemini."
}
}
}Examples
Request example
POST /v1/images/generationscurl 'https://api.openany.si/v1/images/generations' \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [
{
"parts": [
{
"text": "Generate an image of a Chinese Li Hua cat in a modern studio product-photo style."
}
]
}
],
"model": "gemini-3-pro-image",
"response_format": {
"aspect_ratio": "1:1",
"mime_type": "image/png",
"type": "image"
}
}'