Google: Gemini 4 Carbon
gemini-4-carbon
Google's Gemini 4 Carbon is a reasoning model for complex coding, scientific and mathematical problem solving, and multi-step tasks that use tools. It accepts text, images, audio, video, and PDFs and produces text, with tool calling and structured outputs. Its 1,048,576-token context is shared across input, thinking, and output. Responses support up to 32,768 combined thinking and output tokens, with low, medium, and high thinking levels; medium is the default.
Modalities
Text + Image + Video + Audio → Text
Input / output price
$2.60 / $13.00 per 1M
Context
1.05M · max output 33K
Capabilities
Pricing
Billed per token actually used and deducted from your credits.
| Item | USD per 1M tokens |
|---|---|
| Input | $2.60 |
| Output | $13.00 |
| Cached input | $0.130 |
Calculator
Drag the sliders to estimate what this model will cost.
- Per request
- $0.0182
- Per day
- $9.10
- Per month (30 days)
- $273.00
Gemini 4 Carbon: input $2.6/M · output $13/M · cached input $0.13/M
curl https://api.geniusrelaygpt.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gemini-4-carbon", "max_tokens": 800,
"messages": [{"role": "user", "content": "…"}]}'Code samples
OpenAI-compatible. Set the base URL to https://api.geniusrelaygpt.com/v1 and the model to gemini-4-carbon.
curl https://api.geniusrelaygpt.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-4-carbon",
"stream": true,
"messages": [{"role": "user", "content": "Hello"}]
}'Use it in a client: Cursor · Cline · SillyTavern · Codex
Parameters
Common OpenAI parameters can be passed as-is.
temperaturetop_pmax_tokensstreamstoppresence_penaltyfrequency_penaltyseedFAQ
- How is Gemini 4 Carbon billed?
- Input is $2.60 and output is $13.00 per million tokens; cached input is $0.130. The charge for every request is listed in Usage Logs in the console.
- How long is the context window?
- 1.05M tokens. In a long conversation every turn is billed for the full input, so keep the history under control.
- Does it support streaming?
- Yes. Add
"stream": trueto the request to receive server-sent events in the OpenAI format.