ModelImage

Nano Banana Pro

nano-banana-pro

Use the Nano Banana Pro 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: $2.000Output: $12.014
Cache read / write
Cache read: Price not suppliedCache write: Price not supplied
Context / Max output
— / —
Live routes
2

Rates / 1M tokens

Image output: $96.143

These are separate usage rates, not a total request price.

On this page

Overview

Use the Nano Banana Pro 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

Provider

Auto route pricing Input $2.000 · Output $12.014 / 1M tokens

Request parameters

POST /v1/images

Result preview

Tencent · 129ms

This example shows the response structure. Generated images appear here after the run completes.

{
  "status": "succeeded",
  "created": 1789393017,
  "openany_cost": 0
}
Agent handoff preview

Providers

Auto route · Input $2.000 · Output $12.014 / 1M tokens
ProviderPricingLatencyUptimeSupplyRoute
Live
Input $0.020 / image
1011ms—Verified
Live
Input $2.000 / 1M tokens
Output $12.014
Cache read —
Cache write —
129ms—Verified
Selected pricing · TencentUSD / 1M tokens
Input
$2.000
Text / reasoning output
$12.014
Image output
$96.143

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
Authentication
Authorization: Bearer $OPENANY_API_KEY

Provider

Auto route pricing Input $2.000 · Output $12.014 / 1M tokens

Request parameters

ParameterType / rangeDefault valueRequiredDescription
modelstring—YesThe model to use
contentsarray—NoThe current conversation content sent to the model.
generationConfigobject—NoModel generation and output configuration.
logoAddinteger · 0 | 11NoSwitch for adding a label to generated images. 1 means add label; 0 means do not add label. Value 0 requires approval in Tencent Cloud TokenHub configuration to take effect. Other values are treated as 1 by default.
logoParamobject—NoLabel content settings. By default, generated images include a label such as 'Image generated by AI' in the bottom-right corner. Custom label images require approval in Tencent Cloud TokenHub configuration.
routeobject—NoOpenModel route configuration, including provider and other routing parameters. Example: {"provider":"openai"}.

Request example

curl 'https://api.openany.si/v1/images' \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "contents": [
    {
      "parts": [
        {
          "text": "A simple blue circle on white background"
        }
      ],
      "role": "user"
    }
  ],
  "generationConfig": {
    "imageConfig": {
      "aspectRatio": "1:1",
      "imageSize": "1K"
    },
    "responseModalities": [
      "IMAGE"
    ]
  },
  "model": "nano-banana-pro",
  "logoAdd": 1
}'

Response example

Configured response example · not a live result

JSON
{
  "status": "succeeded",
  "created": 1789393017,
  "openany_cost": 0
}

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"
  ],
  "properties": {
    "model": {
      "type": "string",
      "description": "The model to use"
    },
    "route": {
      "type": "object",
      "description": "OpenModel route configuration, including provider and other routing parameters. Example: {\"provider\":\"openai\"}."
    },
    "logoAdd": {
      "enum": [
        0,
        1
      ],
      "type": "integer",
      "default": 1,
      "description": "Switch for adding a label to generated images. 1 means add label; 0 means do not add label. Value 0 requires approval in Tencent Cloud TokenHub configuration to take effect. Other values are treated as 1 by default."
    },
    "contents": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "description": "Message role, for example: user."
          },
          "parts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "text": {
                  "type": "string",
                  "description": "Text prompt content. Must not be empty. Chinese is recommended. Maximum length: 60000 characters."
                },
                "inlineData": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "string",
                      "description": "Image URL or base64 image data. Supports 1 to 11 images. Recommended: up to 6 high-fidelity object images and up to 5 portrait images for character consistency. Supported formats: png, jpg, jpeg, webp. Base64 size must not exceed 10 MB."
                    },
                    "mimeType": {
                      "type": "string",
                      "description": "IANA standard MIME type of the source data, for example: image/png."
                    }
                  },
                  "description": "Inline media bytes."
                }
              }
            },
            "description": "Ordered parts that make up a single message. Parts may use different MIME types."
          }
        }
      },
      "description": "The current conversation content sent to the model."
    },
    "logoParam": {
      "type": "object",
      "description": "Label content settings. By default, generated images include a label such as 'Image generated by AI' in the bottom-right corner. Custom label images require approval in Tencent Cloud TokenHub configuration."
    },
    "generationConfig": {
      "type": "object",
      "properties": {
        "imageConfig": {
          "type": "object",
          "properties": {
            "imageSize": {
              "enum": [
                "1K",
                "2K",
                "4K"
              ],
              "type": "string",
              "default": "2K",
              "description": "Image resolution. Default value is 2K."
            },
            "aspectRatio": {
              "enum": [
                "1:1",
                "1:4",
                "1:8",
                "2:3",
                "3:2",
                "3:4",
                "4:1",
                "4:3",
                "4:5",
                "5:4",
                "8:1",
                "9:16",
                "16:9",
                "21:9"
              ],
              "type": "string",
              "description": "Image aspect ratio."
            }
          },
          "description": "Image generation configuration. If this field is set for a model that does not support these options, the system will return an error."
        },
        "thinkingConfig": {
          "type": "object",
          "properties": {
            "thinkingLevel": {
              "enum": [
                "Minimal",
                "High"
              ],
              "type": "string",
              "default": "Minimal",
              "description": "Controls the amount of model thinking to balance quality and latency."
            }
          },
          "description": "Configuration for the model thinking mode."
        }
      },
      "description": "Model generation and output configuration."
    }
  }
}

Examples

Provider

Auto route pricing Input $2.000 · Output $12.014 / 1M tokens

Request example

POST /v1/images
curl 'https://api.openany.si/v1/images' \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "contents": [
    {
      "parts": [
        {
          "text": "A simple blue circle on white background"
        }
      ],
      "role": "user"
    }
  ],
  "generationConfig": {
    "imageConfig": {
      "aspectRatio": "1:1",
      "imageSize": "1K"
    },
    "responseModalities": [
      "IMAGE"
    ]
  },
  "model": "nano-banana-pro",
  "logoAdd": 1
}'

Model API questions

How do I call Nano Banana Pro through OpenAny?

Use model ID nano-banana-pro with an OpenAny key and the operation published in this model's API tab. The model API base is https://api.openany.si/v1. Confirm the protocol and request schema; model availability does not imply every OpenAI API operation is supported.

How is Nano Banana Pro billed?

Compare the published rate and billing unit of the selected provider route. Input, output and cache token rates may differ. Image, audio and video models can use other units. Recorded usage determines the charge under that route's billing contract.

Are Community and Verified routes the same as an official publisher API?

No. Inspect the provider name and supply classification for the specific route. A marketplace listing or a supply label is not a claim of publisher endorsement, identical service or measured uptime. Different route prices may reflect different supply and conditions.

Where do these prices come from, and when were they updated?

Rates come from the provider routes in OpenAny's public model catalog, not an independent quote from the model publisher. The catalog does not supply a price update timestamp. A page or catalog snapshot date is not a price revision date. Compare supply, billing units, tiers and conditions; a lower listed rate alone does not establish equivalent service or explain the price difference.

Use Nano Banana Pro with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.