Gemini 4 Carbon API

Model id: google/gemini-4-carbon.

A chat model with a context window of 1M tokens, called through Hyperouter's OpenAI-compatible API.

Native format: Gemini generateContent. Also called as: OpenAI Chat Completions, Anthropic Messages, OpenAI Responses. API formats

Price

Prices per 1M tokens: input / cached input / output.

ModelContextPrice
google/gemini-4-carbon1M$2.00 / $0.10 / $10.00

Web search $4 / 1K results

Call it with the OpenAI SDK

Set HYPEROUTER_API_KEY to an API key from the dashboard. Any OpenAI SDK works once its base URL is https://api.hyperouter.app/v1.

curl https://api.hyperouter.app/v1/chat/completions \
  -H "Authorization: Bearer $HYPEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-4-carbon",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Reference

Sign in with Google or GitHub, create an API key, and open a top-up ticket to add credits. You are charged at the provider's list price.