Back to Models

Gemini 4 Carbon APIActive

gemini-4-carbon

No description available

By:GeminiInput 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
Gemini 经济档81% off
77.0%¥2.736/ M tokens¥13.68/ M tokensRead:¥0.1368/ M tokensWrite:¥0/ M tokens1M0.0s
Gemini 直连档51% off
77.0%¥7.056/ M tokens¥35.28/ M tokensRead:¥0.3528/ M tokensWrite:¥0/ M tokens1M0.0s

Related Models

More models from Gemini

Compare models from other providers

Gemini 4 Carbon API: price, model ID, and how to call it

Call Gemini 4 Carbon through AI Code With. Use model ID gemini-4-carbon with 1M context. list price about $2.00 / $10.00 per 1M tokens before channel discounts. About $0.0570 for 100,000 input / 10,000 output tokens at the cheapest live channel.

Model IDgemini-4-carbon
ProtocolsOpenAI Chat Completions
Context1M
Max output1M

Next: Get API key · See integration guides · All model prices · All model prices

Cost calculator

Estimate at the cheapest live channel: $0.3800 / $1.90 per 1M tokens, cache read $0.0190, cache write $0. Billed usage follows your prepaid balance.

Estimated cost$0.0570

cURL example

Set model to gemini-4-carbon. 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": "gemini-4-carbon",
    "messages": [
      { "role": "user", "content": "What is the meaning of life?" }
    ]
  }'

FAQ

What is the Gemini 4 Carbon model ID?

Send model "gemini-4-carbon" in the API request. The page path /gemini-4-carbon is only the URL, not the model parameter.

How do I call the Gemini 4 Carbon API?

Use one AI Code With API key against https://api.aicodewith.ai/v1/chat/completions, and set model to gemini-4-carbon. Supported protocols: OpenAI Chat Completions. See See integration guides.

How is Gemini 4 Carbon priced?

Gemini 4 Carbon is list price about $2.00 / $10.00 per 1M tokens before channel discounts. The public page shows available channel discounts; billed usage follows your prepaid balance and the live channel. About $0.0570 for 100,000 input / 10,000 output tokens at the cheapest live channel.

How long is the Gemini 4 Carbon context window?

Gemini 4 Carbon has about 1M input context and up to 1M output tokens. Treat that as capacity, not a reason to fill every request.