Intelligence
Index v5.0
Custom pricing for production workloads
Debug multi-step code, review security and run long agent workflows with Google's Gemini 4 Carbon
Google built Gemini 4 Carbon for complex software engineering, scientific reasoning, cybersecurity defense and long-horizon agentic workflows. Google lists text, image, audio, video and PDF input for the model.
google/gemini-4-carbonhttps://api.aimlapi.com/v1Google says Gemini 4 Carbon uses more tokens than Gemini 4 Argon to reason deeply, explore thoroughly and run extended verification loops. On a difficult prompt, the reasoning phase can therefore take a large share of the tokens you generate.
Log token usage on a sample of your real requests before you scale a workload.
The reasoning effort option accepts low, medium or high. Lowering it gives faster responses and fewer tokens spent on reasoning.
Start with medium. Move to high when multi-step coding or analysis answers fall short. Move to low for simple requests where speed matters more than depth.
Google recommends Gemini 4 Carbon for complex multi-step coding and debugging, for open-ended scientific research and discovery, and for other tasks that test the limits of model intelligence. Gemini 4 Argon is Google's flagship reasoning model for complex software engineering, deep mathematical and scientific problem solving, and autonomous multi-step agents.
Run the same few of your hardest prompts through both models. Compare the answers and the reasoning tokens each one spends.
Debug a multi-step failure across several files and propose a fix with verification steps.
Review code for vulnerabilities and draft patches for the issues found.
Work through an open-ended scientific question using excerpts and figures supplied as text and images.
Run a long-horizon agent workflow that plans, acts and checks its own results.
See how Gemini 4 Carbon compares in intelligence, generation speed and cost per task. Data retrieved Nov 9, 2026.
Compare 5 models available on AI/ML API across 2 independent benchmarks.
Agentic tasks completed in a command-line environment.
Reasoning across long documents of about 100k tokens.
| Usage | Price | Unit |
|---|---|---|
| Input | $2.33 | 1M tokens |
| Output | $11.64 | 1M tokens |
| Cached input | $0.1164 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 10, 2026.
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $2.33 | $11.64 | |
| $0.75 | $3.75 | |
| $0.75 | $3.75 | |
| $1.5 | $7.5 | |
| $2 | $10 |
Give your agent the model details, code and documentation.
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "google/gemini-4-carbon",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "google/gemini-4-carbon",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "google/gemini-4-carbon",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Gemini 4 Carbon costs $2.3276 / 1M tokens for input and $11.638 / 1M tokens for output on AI/ML API. Cached input is billed at $0.11638 / 1M tokens.
Start with medium. Move to high if multi-step answers fall short, or to low for faster responses with fewer reasoning tokens.
This endpoint is listed with image and text input and text output. Google lists text, image, audio, video and PDF input for the model itself.
Google says Gemini 4 Carbon uses more tokens than Gemini 4 Argon to reason deeply and run extended verification loops. Test both on your own hardest tasks.
The maximum output is 65,536 tokens. Reasoning tokens count toward generated output, so hard prompts leave less room for the visible answer.
Use google/gemini-4-carbon as the model parameter. Requests go to the OpenAI-compatible endpoint with your AI/ML API key.
Gemini 4 Carbon accepts up to 1,048,576 tokens of context and returns up to 65,536 output tokens.