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.

Published price
From $2.000 / 1M tokens
Billing unit
/ 1M tokens
Context / Max output
— / —
Listed routes
2
Base URL
https://api.openany.si/v1
POST
/v1/images
Authentication
Authorization: Bearer $OPENANY_API_KEY

Provider

Published price $2.000 / 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."
    }
  }
}

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.