PL Log inOpen Studio
CatalogVideo36Image30Audio5Chat & code24New AI modelsCost calculatorAI agents

Chat & code Google · 2026-11

Gemini 4 Carbon API

Google's stronger Gemini 4 - coding, agents and hard reasoning with a 1M-token context

Input$2.16per 1M tokens
Output$10.80per 1M tokens
Cached input$0.108per 1M tokens

1,000 chatbot replies$7.561,500 input + 400 output tokens each

Prompt caching works through the API: repeated context is billed at the cached rate. Failed requests cost nothing.

Compare with other chat models →

Gemini 4 Carbon is a model from Google's Gemini 4 series, built for coding, agents and complex reasoning. It has one shared 1,048,576-token window for input, thinking and output. Thinking depth has three levels (low, medium - the default, high). It supports tool calls and JSON schema output. It answers with text. In Jantaris you call it with the same OpenAI SDK as every other model, without a separate Google account.

A single answer is capped at 32,768 tokens without streaming and 65,536 with streaming, and thinking counts toward that cap. For long answers set stream: true.

The same series has two cheaper models: Gemini 4 Hydrogen for fast, high-volume work and Gemini 4 Argon. Pick Carbon where code quality and long multi-step tasks matter.

Best for

  • Writing and fixing code in large repositories
  • Tool-using agents with many steps
  • Analysis of very long documents and data extraction to JSON
  • Head-to-head tests with Claude Opus 5.5 and GPT-6.1 Sol on your own tasks

How to call it

python
from openai import OpenAI

client = OpenAI(base_url="https://jantaris.com/v1", api_key="sk-jt-...")
resp = client.chat.completions.create(
    model="gemini-4-carbon",
    stream=True,
    reasoning_effort="high",
    messages=[{"role": "user", "content": "Find the bug in this function and suggest a fix."}],
)
for chunk in resp:
    print(chunk.choices[0].delta.content or "", end="")

FAQ

What is the Gemini 4 Carbon API price?

$2.16 / $10.80 per 1M tokens. You pay from one balance, only for the tokens you use.

How is it different from Gemini 4 Hydrogen and Argon?

Carbon targets coding, agents and hard reasoning and has the highest token price of the three. Gemini 4 Hydrogen and Gemini 4 Argon have the same window size and fit better where a low price on large volumes of text matters.

How long can an answer be?

Up to 32,768 tokens without streaming and 65,536 with streaming, thinking included.

Does Carbon generate images or audio?

No, it answers with text only.

How to call Gemini 4 Carbon via API

from openai import OpenAI

client = OpenAI(base_url="https://jantaris.com/v1", api_key="sk-jt-...")
resp = client.chat.completions.create(
    model="gemini-4-carbon",
    messages=[{"role": "user", "content": "Write a haiku about Baltic amber."}],
)
print(resp.choices[0].message.content)