[Integrations](https://spiral.ai/integrations) › [goose](https://spiral.ai/integrations/goose) › [Gemini 4 Hydrogen](https://spiral.ai/integrations/goose/gemini-4-hydrogen)

# How to Use Gemini 4 Hydrogen in goose

Gemini 4 Hydrogen suits repository fixes, web prototypes, and repeatable document work. Google positions it for everyday execution, while Gemini 4 Carbon and Gemini 4 Argon target deeper, longer reasoning tasks.

|  |  |
| --- | --- |
| Model | Gemini 4 Hydrogen |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.020004 per run at the default inputs. $0.975 per 1M input tokens, $4.875 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Gemini 4 Hydrogen in goose

- Use Gemini 4 Hydrogen to investigate this repository's failing tests, make the smallest justified fix, and report the tests actually run.
- Use Gemini 4 Hydrogen with medium reasoning to build a keyboard-accessible filter for this project's table, following its existing components.
- Use Gemini 4 Hydrogen with high reasoning to compare this implementation against the project specification and test missing edge cases.
- Use Gemini 4 Hydrogen with extra-high reasoning to investigate the retry queue's race condition. Show a failing reproduction before changing code.
- Use Gemini 4 Hydrogen to prototype a capacity calculator in this project. Include editable inputs, validation, and a reset control.

## How to set up Gemini 4 Hydrogen in goose

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

### Use Spiral's MCP server

1. **Add the extension**: In goose Desktop, open the sidebar, click Extensions, then Add custom extension. Enter:

2. **Sign in**: When goose first connects to Spiral, your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key. If the browser does not open, goose prints the link to open yourself.

### Use the Spiral skill

1. **Send goose 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.

```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 Hydrogen**: 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": "openrouter",
    "model": "google/gemini-4-hydrogen:batch",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

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

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

## Gemini 4 Hydrogen tools and prices

- [Google: Gemini 4 Hydrogen (batch)](https://spiral.ai/tools/openrouter/google/gemini-4-hydrogen%3Abatch) (OpenRouter): Up to $0.020004 per run at the default inputs. $0.975 per 1M input tokens, $4.875 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| stop |  | — |  |
| tools |  | — |  |
| top_p | 0 to 1 | — |  |
| reasoning |  | — | Reasoning effort; reasoning tokens count toward max_tokens. |
| max_tokens | 1 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). |

## What can you do with Gemini 4 Hydrogen in goose?

Gemini 4 Hydrogen can turn repository context into focused fixes, tests, and working web prototypes. Give the agent a bounded task and require evidence that the result meets the specification.

### Fix a reproducible repository bug

Have Gemini 4 Hydrogen trace a failing test, propose a focused patch, and explain the validation results.

### Build an interactive prototype

Ask Gemini 4 Hydrogen to turn a written specification into a small web tool with working controls and defined acceptance criteria.

### Verify an implementation

Give Gemini 4 Hydrogen a specification and implementation to compare, then request missing behaviors and targeted test cases.

### Extract action items

Use Gemini 4 Hydrogen to turn meeting text into tasks, owners, and deadlines, marking details absent from the source.

### Classify support requests

Ask Gemini 4 Hydrogen to assign supplied messages to defined categories and retain a supporting passage for each decision.

### Rewrite operational documents

Have Gemini 4 Hydrogen rewrite procedures for a specified audience while preserving exceptions, required steps, and terminology.

### Compare research notes

Give Gemini 4 Hydrogen source excerpts and request a comparison table that separates agreement, disagreement, and missing evidence.

## Overview

- [OpenRouter](https://spiral.ai/providers/openrouter)
- [All goose guides](https://spiral.ai/integrations/goose)

## Gemini 4 Hydrogen in other agents

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

## More goose guides

- [Gemini 4 Carbon Batch](https://spiral.ai/integrations/goose/gemini-4-carbon-batch)
- [Gemini 4 Hydrogen Vertex AI](https://spiral.ai/integrations/goose/gemini-4-hydrogen-vertex-ai)
- [Gemini 4 Carbon](https://spiral.ai/integrations/goose/gemini-4-carbon)
- [Gemini 4 Neon](https://spiral.ai/integrations/goose/gemini-4-neon)
- [Gemini 4 Argon](https://spiral.ai/integrations/goose/gemini-4-argon)
- [Gemini Flash Latest](https://spiral.ai/integrations/goose/gemini-flash-latest)

## Questions about Gemini 4 Hydrogen in goose

**Can goose use Gemini 4 Hydrogen?**

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

**How much does Gemini 4 Hydrogen cost in goose?**

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

**Do I need an OpenRouter account to use Gemini 4 Hydrogen in goose?**

No. Spiral runs Gemini 4 Hydrogen 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 Hydrogen in goose?**

About two minutes: add the extension, then sign in.

**Does goose wait while Gemini 4 Hydrogen runs?**

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

**What is Gemini 4 Hydrogen good at?**

It suits repository fixes, debugging, interactive web prototypes, and document tasks with explicit formatting requirements. Give it a concrete deliverable and clear acceptance criteria.

**How does Gemini 4 Hydrogen compare with Carbon and Argon?**

Google positions Hydrogen for everyday execution. Carbon and Argon target deeper, longer reasoning, including architectural judgment and difficult bugs.

**How much can Gemini 4 Hydrogen write?**

Google documents a default limit of 65,536 combined reasoning and output tokens per response. Longer generation uses continuation, and input, reasoning, and output must together fit within 1,048,576 tokens.

**When should I use extra-high reasoning?**

Reserve it for difficult coding or multistep problems that high reasoning does not solve. It uses more tokens and can overthink straightforward text or JSON extraction.

**Does lowering temperature make Gemini 4 Hydrogen more consistent?**

Google says Hydrogen ignores in-range custom temperature and sampling values. Specify the required format, constraints, and an example instead.

