Short answer

Gemini 4 Carbon went on the paid Gemini API on November 10, 2026, at $2 per million input tokens and $10 per million output tokens until November 30, and $4 and $20 from December 1. Thinking tokens are billed as output, and Google says Carbon spends more of them per turn than Argon, so the thinking level decides your bill more than the list price does. Before the price doubles, run six of your own iOS tasks at low, medium and high, grade the answers against criteria you wrote first, and keep the lowest level that passes. If your backend calls Gemini, remove sampling parameters and explicit caching, and move long calls off the request path.

Google put Gemini 4 Carbon on the paid Gemini API on November 10, 2026, and developers spent the next day arguing about Google's benchmark chart. The more useful number for anyone who builds iOS apps sits further down the announcement. Carbon costs $2 per million input tokens and $10 per million output tokens only until November 30. From December 1 the same tokens cost $4 and $20.

That gives you about three weeks to find out what Carbon does on your own repo, what it costs per task, and whether any of it is worth double the price once the introductory period ends. This post covers what Google actually shipped, what changes if you call Gemini from an app backend, and a small script that runs your own Swift tasks at each thinking level and writes the cost of every run to a CSV file.

What Google released on November 10

Carbon is a new reasoning model in the Gemini 4 family, next to Gemini 4 Argon. The model code is gemini-4-carbon. According to Google's announcement and the Gemini API documentation, these are the facts that matter for a developer:

  • It is on the paid tier of the Gemini API, in Google AI Studio and in Android Studio. It is not on the free tier.
  • Gemini for business customers can reach it through the API, the model dropdown, Google Antigravity and CodeMender.
  • Google AI Ultra subscribers are getting it in Antigravity, the Gemini app and AI Mode in Search, as a rollout.
  • The context window is 1,048,576 tokens, shared by input, thinking and output.
  • A normal synchronous response stops at 65,536 output tokens. With background execution, output can run up to the 1M window minus your input.
  • Thinking levels are low, medium and high. The default is medium.
  • Inputs can be text, images, video, audio and PDF. Output is text only.
  • Function calling, structured outputs, code execution, computer use, URL context and Google Search grounding are supported. The Live API is not.

Google Cloud's page for the model lists a knowledge cutoff of March 2026 and gives November 10, 2026 as the release date.

Read the price table twice

Here is the pricing from Google's "What's new in Gemini 4 Carbon" page, per million tokens:

Token typeThrough Nov 30, 2026From Dec 1, 2026
Input$2.00$4.00
Cached input (implicit caching)$0.10$0.20
Output, including thinking tokens$10.00$20.00

Two lines on that page decide your bill more than the headline price does. Thinking tokens are billed as output. And Google says plainly that Carbon spends more thinking tokens per turn than Argon. The announcement goes as far as saying Argon remains the better choice for most software engineering and knowledge work. Carbon is positioned for the hard cases: root-cause debugging, architecture, dense documents, security audits and scientific reasoning.

So the per-token price is the same as Argon's during the introductory period, and the cost per task is not. A model that thinks for 15,000 tokens before writing a 1,200-token patch bills you for 16,200 output tokens. At the December price that one answer costs about 32 cents in output alone. If the same task on low thinks for 800 tokens, it costs about 4 cents. Those numbers are an illustration, not a measurement of Carbon. The point is that the thinking level can move cost by a factor of eight or more on the same prompt, and you only find out how much by running your own tasks. Max Reasoning Effort Costs Up to 42x More on Easy Tasks looks at the same effect across several models.

What the thinking level does to one answer

The illustration above is easier to judge as a table. Each row is one answer of 1,200 tokens with a different amount of thinking in front of it, priced at the output rates from Google's table. Input tokens come on top and are the same in every row.

Thinking tokensOutput tokens billedThrough Nov 30From Dec 180 runs a month from Dec 1
8002,000$0.020$0.040$3.20
5,0006,200$0.062$0.124$9.92
15,00016,200$0.162$0.324$25.92

The thinking amounts are examples chosen to match the paragraph above, and they say nothing about what Carbon will spend on your prompts. What the table does show is the shape of the bill. The answer you read is the same length in all three rows, and the row with the most thinking costs about eight times the row with the least. On December 1 every figure in the right-hand columns becomes real without you changing a line of code.

What the benchmarks do and don't tell you

Google says Carbon ranks first on CursorBench 4.0, Perplexity's WANDR and Zapier's AutomationBench, at more than two times lower cost per task than the next best external model. It also reports results on financial, multimodal and cybersecurity benchmarks, and a 92% pass rate on a 375-task agentic honesty test, up from 70% for Argon.

All of these numbers come from Google and its launch partners. None of them is an iOS benchmark. CursorBench measures work inside Cursor's agent harness, which is close to what many people building apps with AI tools do every day, but a Swift codebase with a signing setup, an asset catalog and a privacy manifest is a different test than a typical web repo. Use the benchmark claims to decide that Carbon is worth an afternoon of testing. Don't use them to decide that it should replace whatever model your team already pays for.

If your app's backend calls Gemini today

Some AI-built iOS apps send prompts to Gemini from a small server or a cloud function. If you plan to point that backend at Carbon, Google's migration checklist has several changes that can break a working integration or quietly change its behavior.

Sampling parameters stop doing anything. Google's guidance is to remove temperature, top_p and top_k. If you send them, they are ignored. Google Cloud's model page lists fixed defaults of temperature 1.0, topP 0.95 and topK 64. If your app relied on a low temperature to keep answers short or consistent, you now need to get that from the prompt, from structured output or from a lower thinking level.

Explicit context caching is not supported. If your code creates a cache with cachedContents or caches.create and passes cached_content on requests, Google says to remove those calls for Carbon. Implicit caching is on by default for prompts of at least 4,096 tokens and gives a 95% discount on cached input tokens when the cache hits. To benefit from it, keep the long, stable part of your prompt (system instructions, a product catalog, a style guide) at the start and put the user's message at the end.

Output limits need room for thinking. max_output_tokens caps thinking and answer together. Google recommends at least 32,768 for apps that currently set a lower limit, because Carbon can spend more of the budget on thinking. If the limit is hit, the docs say the response comes back incomplete, truncated or empty, and you still pay for the thinking tokens it generated. If you need cheaper calls, lower the thinking level instead of cutting the token limit.

Requests can take minutes. Google suggests HTTP timeouts of at least 15 minutes for hard prompts, or background execution. No iOS user will stare at a spinner for that long, and URLSession's default request timeout is far shorter. For anything user facing, keep Carbon behind your server, return a job ID to the app, and let the app poll or receive a push when the result is ready. For quick, interactive features, a faster model on a low thinking level is the better fit.

Your API key stays on the server. This was true before Carbon and it matters more when one leaked key can run a model at $20 per million output tokens. An API key compiled into an app binary can be pulled out of the IPA. Route calls through your own backend and rate limit them per user.

The app side of a job that takes minutes

Returning a job ID and letting the app check back is easy to say and easy to get wrong. The usual mistakes are polling in a tight loop, never giving up, and carrying on after the user has left the screen. This small client avoids all three. It assumes your server has two routes of your own design: POST /jobs, which starts the work and returns an ID, and GET /jobs/{id}, which returns a status and, when finished, the text.

import Foundation

struct Job: Decodable {
    let id: String
    let status: String   // "queued", "running", "done" or "failed"
    let text: String?
}

enum JobError: Error { case failed, timedOut, badReply }

struct JobClient {
    let base: URL
    var firstDelay: TimeInterval = 2
    var maxWait: TimeInterval = 15 * 60

    func start(prompt: String) async throws -> Job {
        var request = URLRequest(url: base.appendingPathComponent("jobs"))
        request.httpMethod = "POST"
        request.setValue("application/json", forHTTPHeaderField: "Content-Type")
        request.httpBody = try JSONEncoder().encode(["prompt": prompt])
        return try await send(request)
    }

    /// Polls until the job finishes. Cancelling the surrounding Task stops the polling.
    func result(of job: Job) async throws -> String {
        let deadline = Date().addingTimeInterval(maxWait)
        var delay = firstDelay
        while Date() < deadline {
            try await Task.sleep(nanoseconds: UInt64(delay * 1_000_000_000))
            let current = try await send(URLRequest(url: base.appendingPathComponent("jobs/\(job.id)")))
            switch current.status {
            case "done":
                guard let text = current.text else { throw JobError.badReply }
                return text
            case "failed":
                throw JobError.failed
            default:
                delay = min(delay * 2, 30)
            }
        }
        throw JobError.timedOut
    }

    private func send(_ request: URLRequest) async throws -> Job {
        let (data, response) = try await URLSession.shared.data(for: request)
        guard (response as? HTTPURLResponse)?.statusCode == 200 else { throw JobError.badReply }
        return try JSONDecoder().decode(Job.self, from: data)
    }
}

It was compiled with Swift 6.2.3 on macOS and run against a local mock server. A job that reported running twice and then done returned its text. A job that reported failed threw failed, a job that never finished threw timedOut once maxWait passed, and cancelling the task that was waiting stopped the polling with a CancellationError. It was not run inside an iOS app or against a real backend.

The delay between checks doubles from two seconds up to a ceiling of thirty, so a fast answer arrives quickly and a slow one costs a couple of requests a minute. In SwiftUI, start the wait from a .task modifier so that leaving the screen cancels it for you. Polling also stops when iOS suspends your app, so save the job ID when you start, and check that job once more when the app comes back to the foreground. For results that can take many minutes, a push notification from your server is the better signal, with this polling as the fallback when notifications are off.

Price your own tasks before December 1

The only cost number that means anything is the one you measure on work you actually do. Here is a test plan that fits in an afternoon.

1. Pick six tasks from your real backlog

Choose tasks you have already solved, so you can judge the answers. A good spread for an iOS project:

  1. A crash: paste a symbolicated crash log and the two or three files it points to, and ask for the root cause and a fix.
  2. A SwiftUI refactor: a view that has grown past a few hundred lines, with a request to split it without changing behavior.
  3. Tests: a model or service type and a request for XCTest or Swift Testing cases that cover its edge cases.
  4. A review: a real diff from a recent pull request, with a request to find bugs and risky changes.
  5. A review fix: an App Review rejection message (remove anything private) plus the relevant code, with a request for the change and a reply to the reviewer.
  6. A small feature: a written spec of a few paragraphs and the files it touches.

Save each one as a Markdown file in a tasks folder. Include the code in the file so every model sees the same input. Remove secrets, customer data and anything you would not paste into a third-party service.

2. Write the acceptance criteria first

Before you run anything, write three to five checks per task that a correct answer must pass. For the crash: names the right line, explains why it crashes, the fix compiles, the fix doesn't just silence the crash with an early return. For the refactor: same public interface, previews still build, no logic moved into the view. Writing these first keeps you from grading the longest or most confident answer as the best one. Write Your Acceptance Criteria Before You Prompt goes deeper on how to phrase them.

3. Run every task at every thinking level

The script below uses only Python's standard library. It sends each task to the Gemini Interactions API at low, medium and high, saves every answer to a file, and writes a CSV with input, thinking and output tokens plus the cost at both the November and the December price. It reads token counts from the usage object (total_input_tokens, total_thought_tokens, total_output_tokens), the field names shown in Google's thinking guide.

#!/usr/bin/env python3
"""Run each task file at three thinking levels and log tokens and cost."""
import csv, json, os, sys, time, urllib.request
from pathlib import Path

API = os.environ.get("GEMINI_BASE", "https://generativelanguage.googleapis.com") + "/v1beta/interactions"
KEY = os.environ["GEMINI_API_KEY"]
MODEL = os.environ.get("MODEL", "gemini-4-carbon")
LEVELS = os.environ.get("LEVELS", "low,medium,high").split(",")
# USD per 1M tokens: (input, output). Thinking tokens bill at the output rate.
PRICES = {"intro": (2.00, 10.00), "dec1": (4.00, 20.00)}

def run(prompt, level):
    body = json.dumps({
        "model": MODEL,
        "input": prompt,
        "generation_config": {"thinking_level": level, "max_output_tokens": 32768},
    }).encode()
    req = urllib.request.Request(API, data=body, method="POST", headers={
        "x-goog-api-key": KEY,
        "Api-Revision": "2026-05-20",
        "Content-Type": "application/json",
    })
    start = time.time()
    with urllib.request.urlopen(req, timeout=900) as r:
        data = json.load(r)
    secs = round(time.time() - start, 1)
    text = "".join(
        c.get("text", "")
        for s in data.get("steps", []) if s.get("type") == "model_output"
        for c in s.get("content", []) if c.get("type") == "text"
    )
    return data.get("status"), data.get("usage", {}), text, secs

def cost(u, plan):
    pin, pout = PRICES[plan]
    out = u.get("total_output_tokens", 0) + u.get("total_thought_tokens", 0)
    return round((u.get("total_input_tokens", 0) * pin + out * pout) / 1e6, 4)

def main(task_dir):
    out_dir = Path("results"); out_dir.mkdir(exist_ok=True)
    rows = []
    for task in sorted(Path(task_dir).glob("*.md")):
        prompt = task.read_text()
        for level in LEVELS:
            status, u, text, secs = run(prompt, level)
            (out_dir / f"{task.stem}.{level}.md").write_text(text)
            rows.append({
                "task": task.stem, "level": level, "status": status, "seconds": secs,
                "input": u.get("total_input_tokens", 0),
                "thought": u.get("total_thought_tokens", 0),
                "output": u.get("total_output_tokens", 0),
                "usd_intro": cost(u, "intro"), "usd_dec1": cost(u, "dec1"),
            })
            print(rows[-1])
    with open(out_dir / "costs.csv", "w", newline="") as f:
        w = csv.DictWriter(f, fieldnames=rows[0].keys()); w.writeheader(); w.writerows(rows)

if __name__ == "__main__":
    main(sys.argv[1] if len(sys.argv) > 1 else "tasks")

Run it with your key in the environment:

export GEMINI_API_KEY="your-paid-tier-key"
python3 carbon_cost.py tasks

A note on testing: this script was run against a local stub server that returns the documented response shape, to check the request, the token math and the CSV. It has not been run against the live Carbon API for this post, so check the first row of output by hand. If Google's response for your account uses different field names, the token columns will show zero and you will notice right away. The cost columns ignore cached-token discounts and grounding fees, so treat them as an upper bound for plain prompts.

To compare against a cheaper model, run it again with MODEL=gemini-4-argon, which Google says shares Carbon's per-token pricing and needs no request schema changes. Compare the two level by level, so a low run on one model is never graded against a high run on the other.

4. Grade blind, then look at the money

Open the answer files without looking at the CSV first. Score each answer against the criteria you wrote in step 2: pass or fail per check. Only after that, join the scores with costs.csv. You are looking for the lowest thinking level, on the cheapest model, that passes your checks for each kind of task. Google's own advice reads the same way: run your evaluations at all three levels and pick the lowest one that meets your quality bar.

A typical outcome to watch for is a split decision. Carbon on high may be the only setting that finds a nasty threading bug, while low or Argon writes perfectly good tests at a fraction of the price. That is a routing rule, and it is worth more than picking one model for everything.

5. Do the December math

Take the cost per task from the usd_dec1 column and multiply by how often you run that kind of task in a month. If your agent runs a code review on every pull request and you merge 80 pull requests a month, a review that costs 30 cents in December is $24 a month for that one job. A crash triage you run twice a week can afford high. A test generator that runs on every save cannot.

Turn the two files into a routing table

After step 4 you have two files: results/costs.csv from the script, and your own scores. If you type the scores into a CSV as well, with one row per task and level, a few lines of Python will pick the cheapest level that passed every check and work out the December bill for it. Add a runs_per_month column with how often you really run that kind of task.

task,level,passed,checks,runs_per_month
crash,low,2,4,8
crash,medium,3,4,8
crash,high,4,4,8
review,low,3,4,80
review,medium,4,4,80
review,high,4,4,80
tests,low,5,5,200
tests,medium,5,5,200
tests,high,5,5,200
#!/usr/bin/env python3
"""Pick the cheapest thinking level that passed every check, per task.

Needs results/costs.csv from carbon_cost.py and a scores.csv you fill in by hand:

    task,level,passed,checks,runs_per_month
    crash,low,2,4,8
    crash,high,4,4,8

Usage: python3 pick_level.py results/costs.csv scores.csv
"""
import csv
import sys

costs = {(r["task"], r["level"]): float(r["usd_dec1"]) for r in csv.DictReader(open(sys.argv[1]))}
best, volume = {}, {}
for r in csv.DictReader(open(sys.argv[2])):
    task, key = r["task"], (r["task"], r["level"])
    volume[task] = int(r["runs_per_month"])
    if r["passed"] == r["checks"] and key in costs:
        if task not in best or costs[key] < costs[(task, best[task])]:
            best[task] = r["level"]

total = 0.0
for task in sorted(volume):
    if task not in best:
        print(f"{task}: no level passed every check")
        continue
    per_run = costs[(task, best[task])]
    month = per_run * volume[task]
    total += month
    print(f"{task}: {best[task]:<6} ${per_run:.4f} per run x {volume[task]} = ${month:.2f} a month")
print(f"December total for the levels picked: ${total:.2f} a month")

Run on a Mac with Python 3.12 against a made-up costs.csv for three tasks and the scores above, it printed:

crash: high   $0.3518 per run x 8 = $2.81 a month
review: medium $0.1412 per run x 80 = $11.30 a month
tests: low    $0.0644 per run x 200 = $12.88 a month
December total for the levels picked: $26.99 a month

The token counts behind those costs were invented for the test, so the dollar figures mean nothing for your repo. The structure is the useful part. In that sample, running all three jobs on high would have come to $75.79 a month at December prices, and the picked levels came to $26.99, because only the crash task needed high to pass. A level counts as passing only when every check passed, so a task where no level gets there is reported instead of quietly given the most expensive setting.

Keep both CSV files in the repo. When a new model or a price change arrives, you rerun one script and the picker, and the routing decision is made from your own numbers again.

Where Carbon fits in an iOS workflow

Based on what Google says the model is for, these are the places it makes sense to try Carbon first:

  • Crashes you can't reproduce, where the model has to read a crash log, several files and maybe a threading model before it guesses.
  • Security reviews of code that handles tokens, Keychain items, payments or account deletion, where a missed edge case costs more than the tokens.
  • Planning a large change, such as moving an app off an old networking layer or splitting a giant view model, where you want a written plan before any code changes.
  • Reading long documents, such as an App Store Connect rejection thread plus Apple's guideline text plus your own code.

For autocomplete, small edits, renames and boilerplate, Google itself points you to Argon or a lighter model. Paying for deep thinking on a one-line change is how bills grow without anyone noticing.

About /swarm in Antigravity

Alongside Carbon, Google announced a preview of a feature called /swarm in Google Antigravity. You give one prompt, and Antigravity splits the work across a team of agents you can watch in real time. Carbon can take the high-reasoning roles such as design, coordination and auditing, while faster models work in parallel in isolated workspaces and adversarial verifiers test each change.

That is an interesting setup for a large refactor. It is also a preview, and each agent in a swarm spends its own tokens. Before you point it at an iOS repo, commit everything, run it on a branch, and make sure your build and tests run from the command line (xcodebuild test with a fixed simulator destination), because verifier agents can only check what they can build and run. Keep signing identities, App Store Connect API keys and .p12 files out of the workspace it can read.

A checklist before November 30

  1. Make sure your Gemini key is on the paid tier. Carbon is not on the free tier.
  2. Pick six real tasks, strip secrets, and write acceptance criteria for each.
  3. Run the cost script at all three thinking levels, then once more on Argon.
  4. Grade blind, then pick the lowest level that passes for each task type.
  5. Multiply the December cost per task by your monthly volume.
  6. If your backend calls Gemini, remove sampling parameters and explicit caching calls, raise max_output_tokens to at least 32,768, and move long calls off the request path.
  7. Put a spending alert on the project before December 1, so the price change shows up as an alert and not as a surprise on the invoice.

FAQ

Is Gemini 4 Carbon free to try?

Not through the API. Google's documentation says Carbon is not available on the free tier of the Gemini API. Google AI Ultra subscribers are getting it in the Gemini app, Antigravity and AI Mode as a rollout.

What does Gemini 4 Carbon cost after November 30?

From December 1, 2026, Google lists $4 per million input tokens, $0.20 per million cached input tokens and $20 per million output tokens. Thinking tokens are billed as output.

Is Carbon better than Argon for coding?

On hard problems, Google says Carbon explores more and verifies its work, and it reports first place on CursorBench 4.0. Google also says Argon remains the better choice for most software engineering work, because Carbon spends more tokens and takes longer per turn. Test both on your own tasks.

Can I set temperature on Carbon?

No. Google says to remove temperature, top_p and top_k, and that they are ignored if sent. Use the thinking level, the prompt and structured output to control the response.

Should my iOS app call Carbon directly?

No. Keep the API key on a server you control. Hard prompts can take minutes, so run them as background jobs and notify the app when the result is ready.

If you want a starting point for the task prompts in step 1, The Coding Agent Lab on Gumroad is a free pack of 25 coding agent briefs, including iOS, SwiftUI and UIKit agents, each with a mission, rules, an output format and quality gates. It comes as a PDF guide with a TXT file of copyable briefs, and paid Max and Ultra editions add more agents. A brief with a fixed output format and quality gates also makes the blind grading in step 4 easier, because every answer comes back in the same shape.

Sources