Back to Models

Nano Banana 2 Lite APIActive

nano-banana-2-lite

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 渠道
79.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 2 Lite API: price, model ID, and how to call it

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

Model IDnano-banana-2-lite
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-2-lite. 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-lite",
    "messages": [
      { "role": "user", "content": "What is the meaning of life?" }
    ]
  }'

FAQ

What is the Nano Banana 2 Lite model ID?

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

How do I call the Nano Banana 2 Lite API?

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

How is Nano Banana 2 Lite priced?

Nano Banana 2 Lite 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 Lite context window?

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