Back to Models

Nano Banana APIActive

nano-banana

No description available

By:图片生成Input Type:Output Type:

AI Code With channel availability

The same model is billed by channel discount. Copy a channel code to set your preference.

ChannelCache Hit RateContext
OpenAI 图片 API 渠道
75.0%¥0.144/ M tokens¥0.144/ M tokensRead:¥-/ M tokensWrite:¥-/ M tokens200K0.0s

Related Models

More models from 图片生成

Compare models from other providers

Nano Banana API: price, model ID, and how to call it

Call Nano Banana through AI Code With. Use model ID nano-banana with 200K context. list price about $0.0200 / $0.0200 per 1M tokens before channel discounts.

Model IDnano-banana
ProtocolsOpenAI Chat Completions
Context200K
Max output65.54K

Next: Get API key · Image model setup · All model prices · All model prices

cURL example

Set model to nano-banana. The page slug is only the URL, not the API parameter.

curl https://api.aicodewith.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $AICODEWITH_API_KEY" \
  -d '{
    "model": "nano-banana",
    "messages": [
      { "role": "user", "content": "What is the meaning of life?" }
    ]
  }'

FAQ

What is the Nano Banana model ID?

Send model "nano-banana" in the API request. The page path /nano-banana is only the URL, not the model parameter.

How do I call the Nano Banana API?

Use one AI Code With API key against https://api.aicodewith.ai/v1/chat/completions, and set model to nano-banana. Supported protocols: OpenAI Chat Completions. See Image model setup.

How is Nano Banana priced?

Nano Banana is list price about $0.0200 / $0.0200 per 1M tokens before channel discounts. The public page shows available channel discounts; billed usage follows your prepaid balance and the live channel.

How long is the Nano Banana context window?

Nano Banana has about 200K input context and up to 65.54K output tokens. Treat that as capacity, not a reason to fill every request.