LLM API Guide

Can You Call the Gemini 4 Carbon API Yet? Access, Price and OpenRouter Setup

Gemini 4 Carbon is listed on OpenRouter as google/gemini-4-carbon at $2 input / $10 output per 1M tokens, but Google has only opened it to cyber defenders so far.

The OpenRouter logo on a light background
Brand marks: OpenRouter. Trademarks of their owners.

Summary

  1. Google announced Gemini 4 Carbon on 2026-10-28 for a subset of cyber defenders, with no date for general developer access.
  2. As of 2026-11-11, OpenRouter lists google/gemini-4-carbon at $2 input / $10 output per 1M tokens; Google's intro price is the same.
  3. Gemini 4 Argon (gemini-4-argon) is the Gemini 4 model Google's docs and third-party reports describe as generally available.
  4. Anthropic does not support routing Claude Code to non-Claude models, so Carbon in Claude Code is unsupported territory.
On this page

Who can use Carbon today

Google's announcement post is dated 2026-10-28. It says Carbon is available to a subset of cyber defenders, with more trusted partners added gradually through the Fairwind Program. The section for developers, businesses and consumers is headed "Coming soon", and the post gives no API launch date.

Google's Gemini models page does list a model ID, gemini-4-carbon, next to gemini-4-argon. It shows no status label for either Gemini 4 model, so the listing alone doesn't tell you whether your API key can call it. Early third-party write-ups, such as SmartScope's availability piece, say developers are not included yet.

If you need a Gemini 4 model in production now, use Argon. Its ID is gemini-4-argon, and SmartScope reports general availability on 2026-10-13 at $2 input / $10 output per 1M tokens. Argon is also the model Google's own page describes as the faster, cheaper sibling of Carbon.

Price

Prices below are as of 2026-11-11.

Source Input per 1M tokens Output per 1M tokens
Google's introductory price $2 $10
Google's price after the introductory period $4 $20
OpenRouter, Google Vertex and Google AI Studio $2 $10
OpenRouter, EU in-region routing (Google Vertex) $2.20 $11
OpenRouter, a third Google Vertex entry $3.60 $18

Google says cached input tokens are 95% off the input price. OpenRouter's page says it passes provider pricing through without markup, and doesn't say what separates the three Vertex entries.

Google hasn't said when the introductory price ends, so budget for $4 / $20 until it does.

Call it through OpenRouter

OpenRouter's model page gives the model ID google/gemini-4-carbon and a standard Chat Completions endpoint. Create a key under OpenRouter's key settings, then:

bash
export OPENROUTER_API_KEY="sk-or-your-key"

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-4-carbon",
    "messages": [{"role": "user", "content": "Say hello in one sentence."}],
    "max_tokens": 100
  }'

A working call returns Chat Completions JSON with choices and a usage object that includes cost. With "stream": true the response is text/event-stream and ends with data: [DONE].

The page lists these optional parameters for the model: stream, max_tokens, reasoning, reasoning_effort, response_format, seed, stop, temperature, tool_choice, tools and top_p. It doesn't give accepted values for them, so take those from OpenRouter's chat completions reference.

For EU data residency, the page gives the base URL https://eu.openrouter.ai/api/v1. It needs a Business or Enterprise plan, only Google Vertex serves it, and it fails closed: if no European endpoint is free, you get an error instead of a request routed elsewhere.

If the request fails

The same page lists what each status means:

Status Meaning on OpenRouter
400 Malformed messages or an unsupported parameter
401 Missing or invalid key
402 Insufficient credits
403 Spend limit, disabled key, or blocked access
404 Unknown model or no provider available
429 Rate limited; retry with backoff
502 Upstream failure, not billed

A 404 saying no provider is available is the one to read against Google's rollout. The error body is {"error": {"code": <number>, "message": <string>}}; read message before changing anything. If the message points at the model, try gemini-4-argon's OpenRouter listing instead. For general gateway problems, see what to check with an API reseller and OpenRouter pricing versus the direct API.

Using Carbon in Claude Code

Anthropic's gateway docs say any gateway exposing a supported API format works, and also that Anthropic doesn't support routing Claude Code to non-Claude models through any gateway. OpenRouter's Claude Code guide adds that Claude Code with OpenRouter is only guaranteed to work with the Anthropic first-party provider. So Carbon in Claude Code works only on your own risk, and tool use, thinking and caching behaviour can differ from what Claude Code expects.

If you still want to try, OpenRouter's guide gives these variables for pointing Claude Code at its Anthropic-compatible address:

bash
export OPENROUTER_API_KEY="sk-or-your-key"
export ANTHROPIC_BASE_URL="https://openrouter.ai/api"
export ANTHROPIC_AUTH_TOKEN="$OPENROUTER_API_KEY"
export ANTHROPIC_API_KEY=""

Define OPENROUTER_API_KEY first, or the token expands to nothing. If you were signed in with an Anthropic account, run /logout in Claude Code, then start claude again and run /status: it should show Auth token: ANTHROPIC_AUTH_TOKEN and the base URL https://openrouter.ai/api. The guide names the model-class variables (ANTHROPIC_DEFAULT_OPUS_MODEL, ANTHROPIC_DEFAULT_SONNET_MODEL, ANTHROPIC_DEFAULT_HAIKU_MODEL, CLAUDE_CODE_SUBAGENT_MODEL) and says a leftover Anthropic login or a real ANTHROPIC_API_KEY in the environment is a common cause of model-not-found errors. If the base URL is ignored, see Claude Code ANTHROPIC_BASE_URL not working.

A gateway that only speaks the OpenAI format won't work for this without a translation layer in between; use the Anthropic-format address a gateway documents for Claude Code. Any gateway also sees your prompts and code, so read its privacy policy first.

Not confirmed yet

  • General availability date. Google's post says "coming soon" and gives no date.
  • Whether ordinary API keys can call Carbon. The Gemini models page lists gemini-4-carbon and OpenRouter lists providers and prices, while Google's post limits access to cyber defenders. Neither page says which of these a normal account gets.
  • Context length. Neither the OpenRouter page nor the Google post states it.
  • Cache pricing in dollars. Google gives only "95% off the input price", and OpenRouter's page doesn't show its cache fields.
  • When the introductory price ends.
  • Status label. The Gemini models page shows none for Gemini 4.

Sites selling "Carbon API" access that don't link back to Google or OpenRouter are worth checking against the sources above before you pay. For the other Gemini prices, see Gemini API pricing.

Sources and checks

  1. Google Gemini 4 Carbon | OpenRouterChecked
  2. Introducing Gemini 4 Carbon (Google blog)Checked
  3. Gemini models (Google AI Studio docs)Checked
  4. Gemini 4 Carbon availability and release date differences vs Argon (SmartScope)Checked
  5. Other LLM gateways (Claude Code docs)Checked
  6. Connecting Claude Code to OpenRouter (OpenRouter docs)Checked