Spiral gives your agent every tool with one account. Browse the tools →

VS Code · LLM

How to Use Gemini 4 Carbon Batch in VS Code

Use Gemini 4 Carbon Batch for difficult debugging, architectural reviews, and scientific problem solving. Compared with Gemini 4 Argon, Carbon spends more tokens exploring possibilities and checking its work.

Prompts to try with Gemini 4 Carbon Batch in VS Code

Copy an example into VS Code, or ask in your own words.

Use Gemini 4 Carbon Batch with high reasoning to investigate the intermittent checkout failure in this repository. Trace the request across services, reproduce the failure, make the smallest justified fix, and run a regression check.

Gemini 4 Carbon BatchVS Code
Try asking
  • Use Gemini 4 Carbon Batch to review this project's package migration plan. Map affected imports and interfaces, identify compatibility risks, and produce an ordered plan with a verification step for each change.

  • Use Gemini 4 Carbon Batch with high reasoning to review the architecture in this repository. Compare the current design with two alternatives against the documented traffic and recovery requirements, and cite the code supporting each concern.

  • Use Gemini 4 Carbon Batch to implement the browser application described in the project specification. Check each acceptance criterion, run the relevant build checks, and report any behavior you could not verify.

  • Use Gemini 4 Carbon Batch to audit the numerical calculations in this project's simulation. Check units, boundary conditions, and limiting cases, then propose targeted checks for any suspected error.

How to set up Gemini 4 Carbon Batch in VS Code

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server

    Use Add to VS Code on the console's Agents & MCP page, or run:

    code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
  2. Sign in

    VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

Use the Spiral skill

  1. Send VS Code this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Gemini 4 Carbon Batch

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "openrouter",
        "model": "google/gemini-4-carbon:batch",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

Then paste one of the prompts above: VS Code finds Gemini 4 Carbon Batch on Spiral, shows the price and runs it.

Gemini 4 Carbon Batch providers and prices

Spiral runs Gemini 4 Carbon Batch through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
Google: Gemini 4 Carbon (batch)
google/gemini-4-carbon:batch

Settings you can ask for

Ask VS Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number
Top p0 to 1
Max tokens1 to 943718

The most output tokens to generate. On a reasoning model the reasoning tokens count toward it: a cap too low for the effort can end with no answer (finish_reason length).

Temperature0 to 2
Reasoning effortlow, medium, or highmedium

How much the model reasons.

Every API field of Google: Gemini 4 Carbon (batch) is on its tool page: open its card above.

What can you do with Gemini 4 Carbon Batch in VS Code?

Investigate failures across a codebase and carry a proposed fix through verification with Gemini 4 Carbon. Give the agent a reproducible problem, project constraints, and acceptance criteria.

Investigate a stubborn bug

Trace a failure across components, compare possible causes, and propose a fix with a regression check.

Review a migration plan

Examine a proposed package migration for dependency conflicts, compatibility risks, and missing verification steps.

Challenge an architecture decision

Compare designs against stated constraints and identify the assumptions that could change the recommendation.

Build a browser application

Turn a written specification into application code, then check the implementation against acceptance criteria.

Analyze experimental results

Compare competing explanations for supplied measurements and propose experiments that could distinguish them.

Review a mathematical argument

Check a proposed proof for missing assumptions, invalid steps, and counterexamples.

Prepare an analytical report

Turn supplied evidence and calculations into a report with findings, unresolved questions, and supporting references.

Audit a spreadsheet model

Review supplied formulas and assumptions for inconsistent units, missing dependencies, and sensitivity to uncertain inputs.

Questions about Gemini 4 Carbon Batch in VS Code

Can VS Code use Gemini 4 Carbon Batch?

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Gemini 4 Carbon Batch like any built-in tool.

How much does Gemini 4 Carbon Batch cost in VS Code?

Up to $0.02667 per run at the default inputs. $1.30 per 1M input tokens, $6.50 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.

Do I need an OpenRouter account to use Gemini 4 Carbon Batch in VS Code?

No. Spiral runs Gemini 4 Carbon Batch on its own OpenRouter account. You sign in to Spiral once and never paste a key.

How long does it take to set up Gemini 4 Carbon Batch in VS Code?

About two minutes: add the hosted server, then sign in.

Does VS Code wait while Gemini 4 Carbon Batch runs?

Gemini 4 Carbon Batch runs in the background. VS Code starts the run, checks on it and gives you the text, json when it's ready.

What is Gemini 4 Carbon best used for?

Use it for difficult debugging, architectural reviews, scientific problems, and detailed analytical reports. Give it a concrete question and a way to check the result.

How does Gemini 4 Carbon differ from Gemini 4 Argon?

Carbon spends more tokens exploring possibilities and running verification loops. That makes it a useful choice when a task needs deeper investigation and repeated checks.

How much text can Gemini 4 Carbon handle?

Google documents a shared 1,048,576-token window for input, thinking, and output. Long decode supports generation beyond 64K tokens within that space, so a larger input leaves less room for reasoning and the answer.

Can Gemini 4 Carbon invent facts?

Yes. Google lists hallucinations as a limitation and gives a March 2026 knowledge cutoff. Supply current evidence and ask it to distinguish supported conclusions from assumptions.

Which settings matter for Gemini 4 Carbon?

Reasoning effort is the useful control: medium is the default, and high allows Carbon's deepest reasoning. Google says temperature and sampling controls are ignored, so adjust the task instructions and reasoning effort instead.

Get started

Start using Gemini 4 Carbon Batch in VS Code

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into VS Code:

Set up VS Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options