tbuy

nano-banana-2 API pricing & access

nano-banana-2 API pricing: $0.1333333 per request. nano-banana-2. Supports text, image, video, file input and text, image output. Listed spec…

nano-banana-2 API access

nano-banana-2. Supports text, image, video, file input and text, image output. Listed specifications follow public vendor documentation. Available features and limits depend on the selected serving channel.

Compare supported API endpoints and capabilities, then access nano-banana-2 through the unified API gateway.

Category
image
Context length
131072 tokens
Maximum output
32768 tokens
Supported APIs
OpenAI Chat Completions API
API endpoints
POST /v1/chat/completions
Input modalities
text, image, video, file
Output modalities
text, image
Capabilities
vision, reasoning

nano-banana-2 API pricing

Base price
$0.1333333 per request

Base prices are shown in USD before group-specific adjustments. Open the live pricing page for current access-group prices.

About nano-banana-2

nano-banana-2 is a short platform entry for Nano Banana 2, rather than a separate Google API model ID. Google documents Nano Banana 2 under gemini-3.1-flash-image for image generation, conversational edits and multi-reference workflows, producing images and text.

A documented brand name does not establish the route mapping of this platform shorthand. Keep the catalog string and check returned results, reference-image support and accepted controls. Image features do not imply speech generation or Live sessions.

Official reference, checked 2026-10-14.

Use cases and prompting

  1. State the subject, intended use, layout and required text and inspect the resulting image.
  2. Explain each reference image's role and the object details that must be preserved.
  3. Inspect delivered images and model information and verify size and editing controls individually.
  4. Compare the same test cases with gemini-nano-banana-2.1; check request and response formats in the API documentation.

How to call nano-banana-2

nano-banana-2 is served through tbuy's unified gateway. Existing OpenAI or Anthropic SDK code keeps working: point base_url at https://modelsok.com and use your tbuy API key.

curl (OpenAI-compatible)

curl https://modelsok.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "nano-banana-2", "messages": [{"role": "user", "content": "Hello"}]}'

Python (openai SDK)

from openai import OpenAI

client = OpenAI(base_url="https://modelsok.com/v1", api_key="YOUR_API_KEY")
response = client.chat.completions.create(
    model="nano-banana-2",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Frequently asked questions about nano-banana-2

What is nano-banana-2?

nano-banana-2. Supports text, image, video, file input and text, image output. Listed specifications follow public vendor documentation. Available features and limits depend on the selected serving channel.

How do I call nano-banana-2?

Create an API key with access to nano-banana-2, then use the exact model ID and a supported endpoint from the API access section. Request fields depend on the selected endpoint.

How is nano-banana-2 priced?

Pricing depends on the selected provider group and the model billing unit. Refer to the current input, output, request, or media prices in the pricing section.

What is the context window of nano-banana-2?

The model catalog lists a context window of 131072 tokens. Check the selected endpoint for request limits.

What is the maximum output of nano-banana-2?

The model catalog lists a maximum output of 32768 tokens. Your request settings may set a lower limit.

How should I evaluate nano-banana-2 for my project?

Start with the use cases and prompting guidance on this page, then evaluate the model with representative inputs from your project.

Back to AI model API pricing