[Integrations](https://spiral.ai/integrations) › [Hermes](https://spiral.ai/integrations/hermes) › [Gemini 4 Carbon](https://spiral.ai/integrations/hermes/gemini-4-carbon)

# How to Use Gemini 4 Carbon in Hermes

Gemini 4 Carbon suits difficult debugging, architectural decisions, and scientific analysis. Compared with Gemini 4 Argon, it spends more reasoning tokens exploring possibilities and checking its work.

|  |  |
| --- | --- |
| Model | Gemini 4 Carbon |
| Available through | Vertex AI |
| Category | LLM |
| Price | Up to $0.106678 per run at the default inputs. $5.20 per 1M input tokens, $0.26 per 1M cached input tokens, $5.20 per 1M cache write tokens, $26.00 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Gemini 4 Carbon in Hermes

- Every morning, use Gemini 4 Carbon to review the incident updates supplied for this run. Update the leading hypotheses and identify the next diagnostic check.
- Each Friday, use Gemini 4 Carbon to review the migration status supplied for this run. Identify dependency conflicts and recommend the next three steps.
- Each night, use Gemini 4 Carbon with high reasoning to inspect the experimental results supplied for this run. Flag anomalies and distinguish new evidence from repeated observations.
- Every Monday, use Gemini 4 Carbon to compare the architecture decisions supplied for this run against the original constraints. Report contradictions and unresolved tradeoffs.
- After each test cycle, use Gemini 4 Carbon to analyze the supplied failure summaries. Rank likely shared causes and return a report under 500 words.

## How to set up Gemini 4 Carbon in Hermes

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

### Use the Spiral skill

1. **Send Hermes 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 Spiral's MCP server

1. **Add the server and sign in**: Hermes opens your browser: sign in to Spiral and click Authorize. No API key. When Hermes asks Enable all tools? \[Y/n/select], answer Y: n cancels without saving the server, and select hides the tools you leave out.

```bash
hermes mcp add spiral \
  --url https://api.spiral.ai/mcp \
  --auth oauth \
  --connect-timeout 300
```

2. **Check it**: In a chat that was already open, run `/reload-mcp`.

```bash
hermes mcp list
hermes mcp test spiral
```

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
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**: One request; the result comes back by polling or a webhook.

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

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

Setup guide in the docs: https://spiral.ai/docs/quickstarts/hermes

## Gemini 4 Carbon tools and prices

- [Gemini 4 Carbon](https://spiral.ai/tools/vertex/google/gemini-4-carbon) (Vertex AI): Up to $0.106678 per run at the default inputs. $5.20 per 1M input tokens, $0.26 per 1M cached input tokens, $26.00 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| stop |  | — |  |
| tools |  | — |  |
| reasoning |  | — | Reasoning effort; reasoning tokens count toward max_tokens. |
| max_tokens | 1 to 65536 | — | The most output tokens to generate. |
| tool_choice |  | — |  |

## What can you do with Gemini 4 Carbon in Hermes?

Gemini 4 Carbon can revisit difficult investigations as new evidence arrives. Scheduled reviews can compare new observations with earlier hypotheses and report what changed.

### Trace a bug across services

Use Gemini 4 Carbon to connect symptoms across subsystems, compare possible causes, and propose a fix with a regression test.

### Plan a migration across packages

Map dependencies, sequence changes, and define checks for a migration that affects several packages.

### Review an architectural redesign

Compare designs against stated constraints and identify failure modes before choosing an implementation.

### Investigate experimental anomalies

Examine supplied measurements, separate observations from hypotheses, and propose tests that could explain an unexpected result.

### Check a mathematical proof

Review a proposed argument, identify unsupported steps, and look for counterexamples or missing assumptions.

### Verify a difficult code change

Inspect a patch against its requirements, test edge cases, and report what the available evidence actually verifies.

## Overview

- [Google Vertex AI](https://spiral.ai/providers/vertex)
- [All Hermes guides](https://spiral.ai/integrations/hermes)

## Gemini 4 Carbon in other agents

- [Amp](https://spiral.ai/integrations/amp/gemini-4-carbon)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/gemini-4-carbon)
- [Claude](https://spiral.ai/integrations/claude-desktop/gemini-4-carbon)
- [Claude Code](https://spiral.ai/integrations/claude-code/gemini-4-carbon)
- [Cline](https://spiral.ai/integrations/cline/gemini-4-carbon)
- [Codex](https://spiral.ai/integrations/codex/gemini-4-carbon)
- [Cursor](https://spiral.ai/integrations/cursor/gemini-4-carbon)
- [Devin](https://spiral.ai/integrations/devin/gemini-4-carbon)
- [dots](https://spiral.ai/integrations/dots/gemini-4-carbon)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/gemini-4-carbon)
- [Gemini](https://spiral.ai/integrations/gemini/gemini-4-carbon)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/gemini-4-carbon)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/gemini-4-carbon)
- [goose](https://spiral.ai/integrations/goose/gemini-4-carbon)
- [Grok](https://spiral.ai/integrations/grok/gemini-4-carbon)
- [Grok Build](https://spiral.ai/integrations/grok-build/gemini-4-carbon)
- [Instinct](https://spiral.ai/integrations/instinct/gemini-4-carbon)
- [Manus](https://spiral.ai/integrations/manus/gemini-4-carbon)
- [Muse](https://spiral.ai/integrations/muse/gemini-4-carbon)
- [Muse Code](https://spiral.ai/integrations/muse-code/gemini-4-carbon)
- [n8n](https://spiral.ai/integrations/n8n/gemini-4-carbon)
- [Notion](https://spiral.ai/integrations/notion/gemini-4-carbon)
- [OpenClaw](https://spiral.ai/integrations/openclaw/gemini-4-carbon)
- [opencode](https://spiral.ai/integrations/opencode/gemini-4-carbon)
- [Perplexity](https://spiral.ai/integrations/perplexity/gemini-4-carbon)
- [Raycast](https://spiral.ai/integrations/raycast/gemini-4-carbon)
- [VS Code](https://spiral.ai/integrations/vscode/gemini-4-carbon)
- [Windsurf](https://spiral.ai/integrations/windsurf/gemini-4-carbon)
- [Zapier](https://spiral.ai/integrations/zapier/gemini-4-carbon)

## More Hermes guides

- [Gemini 4 Argon](https://spiral.ai/integrations/hermes/gemini-4-argon)
- [Gemini 4 Carbon Batch](https://spiral.ai/integrations/hermes/gemini-4-carbon-batch)
- [Gemini 3.8 Flash](https://spiral.ai/integrations/hermes/gemini-3-8-flash)
- [Gemini 4 Hydrogen](https://spiral.ai/integrations/hermes/gemini-4-hydrogen)
- [Gemini 3.7 Flash](https://spiral.ai/integrations/hermes/gemini-3-7-flash)
- [Gemini 4 Hydrogen Vertex AI](https://spiral.ai/integrations/hermes/gemini-4-hydrogen-vertex-ai)

## Questions about Gemini 4 Carbon in Hermes

**Can Hermes use Gemini 4 Carbon?**

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

**How much does Gemini 4 Carbon cost in Hermes?**

Up to $0.106678 per run at the default inputs. $5.20 per 1M input tokens, $0.26 per 1M cached input tokens, $5.20 per 1M cache write tokens, $26.00 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Hermes plan is separate.

**Do I need a Vertex AI account to use Gemini 4 Carbon in Hermes?**

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

**How long does it take to set up Gemini 4 Carbon in Hermes?**

About two minutes: add the server and sign in, then check it.

**Does Hermes wait while Gemini 4 Carbon runs?**

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

**What is Gemini 4 Carbon best suited for?**

Difficult debugging, architectural redesigns, and work that benefits from repeated verification. Google positions it for demanding tasks beyond the everyday engineering work it recommends Gemini 4 Argon for.

**How much context can Gemini 4 Carbon handle?**

The context window holds 1,048,576 tokens shared by input, internal reasoning, and output. Leave space for the analysis and answer when supplying a large amount of material.

**How long can a Gemini 4 Carbon response be?**

Google documents a default maximum of 65,536 output tokens. Internal reasoning also consumes the response budget, so the visible answer can be shorter.

**When should I use high reasoning?**

Use high reasoning for difficult investigations or proofs where extra checking matters. It gives Gemini 4 Carbon its maximum reasoning depth; ask for a concise final answer separately.

**Does Gemini 4 Carbon know current events?**

Its knowledge cutoff is March 2026, and some subject knowledge may be older. Supply current evidence for questions about later developments and check factual claims against sources.

