No description available
Nano Banana 2 APIActive
AI Code With channel availability
The same model is billed by channel discount. Copy a channel code to set your preference.
Related Models
More models from 图片生成
Compare models from other providers
Nano Banana 2 API: price, model ID, and how to call it
Call Nano Banana 2 through AI Code With. Use model ID nano-banana-2 with 200K context. list price about $0.0200 / $0.0200 per 1M tokens before channel discounts.
Next: Get API key · Image model setup · All model prices · All model prices
cURL example
Set model to nano-banana-2. 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-2",
"messages": [
{ "role": "user", "content": "What is the meaning of life?" }
]
}'FAQ
What is the Nano Banana 2 model ID?
Send model "nano-banana-2" in the API request. The page path /nano-banana-2 is only the URL, not the model parameter.
How do I call the Nano Banana 2 API?
Use one AI Code With API key against https://api.aicodewith.ai/v1/chat/completions, and set model to nano-banana-2. Supported protocols: OpenAI Chat Completions. See Image model setup.
How is Nano Banana 2 priced?
Nano Banana 2 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 2 context window?
Nano Banana 2 has about 200K input context and up to 65.54K output tokens. Treat that as capacity, not a reason to fill every request.
GPT-5.6 Sol