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

# How to Use Gemini 4 Hydrogen Vertex AI in goose

Gemini 4 Hydrogen handles everyday coding, debugging, and agent tasks that need quick iteration. Use it for focused repository edits, codebase questions, and writing with specific tone and format requirements.

|  |  |
| --- | --- |
| Model | Gemini 4 Hydrogen Vertex AI |
| Available through | Vertex AI |
| Category | LLM |
| Price | Up to $0.040005 per run at the default inputs. $1.95 per 1M input tokens, $0.0975 per 1M cached input tokens, $2.4375 per 1M cache write tokens, $9.75 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 Vertex AI in goose

- Use Gemini 4 Hydrogen with high reasoning to investigate the failing test in this project. Reproduce the failure, fix its cause, and report the checks you ran.
- Use Gemini 4 Hydrogen to trace login through this repository. Identify the entry point, validation, session creation, and error paths, citing the relevant files.
- Use Gemini 4 Hydrogen to add pagination to the existing results endpoint. Follow the project's conventions and verify empty results, the first page, and the final page.
- Use Gemini 4 Hydrogen to review the current diff for behavior changes and likely regressions. Tie each finding to a concrete execution path.
- Use Gemini 4 Hydrogen to explain the parser in this project. Show its input assumptions, failure behavior, and three examples drawn from the existing tests.

## How to set up Gemini 4 Hydrogen Vertex AI 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 Vertex AI**: 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-hydrogen",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

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

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

## Gemini 4 Hydrogen Vertex AI tools and prices

- [Gemini 4 Hydrogen](https://spiral.ai/tools/vertex/google/gemini-4-hydrogen) (Vertex AI): Up to $0.040005 per run at the default inputs. $1.95 per 1M input tokens, $0.0975 per 1M cached input tokens, $9.75 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 Hydrogen Vertex AI in goose?

Turn a bug report or scoped requirement into a code change you can review and test. Give Gemini 4 Hydrogen the relevant project context and a concrete acceptance check.

### Repair a reproducible bug

Give Gemini 4 Hydrogen the failure, relevant code, and expected behavior. Ask for a focused patch and a check that reproduces the original problem.

### Understand an unfamiliar codebase

Trace a request through the relevant functions and identify where validation, state changes, and error handling happen.

### Make a scoped code change

Describe one behavior to change, supply the affected code, and request an implementation that follows the existing conventions.

### Rewrite customer communications

Turn a rough announcement into a concise email with a specified tone, length, and set of facts to preserve.

### Create study material

Turn supplied notes into a study guide with definitions, examples, and questions tied to the source material.

### Label incoming feedback

Classify messages using a fixed label set and include a short supporting excerpt for each decision.

## Overview

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

## Gemini 4 Hydrogen Vertex AI in other agents

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

## More goose guides

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

## Questions about Gemini 4 Hydrogen Vertex AI in goose

**Can goose use Gemini 4 Hydrogen Vertex AI?**

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

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

Up to $0.040005 per run at the default inputs. $1.95 per 1M input tokens, $0.0975 per 1M cached input tokens, $2.4375 per 1M cache write tokens, $9.75 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 a Vertex AI account to use Gemini 4 Hydrogen Vertex AI in goose?**

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

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

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

Gemini 4 Hydrogen Vertex AI 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 useful for?**

Use it for iterative coding, debugging, codebase questions, and writing with detailed instructions. Tasks with a clear target and a result you can check make practical starting points.

**How much context and output can Gemini 4 Hydrogen handle?**

Input and output share a 1,048,576-token context limit. A single foreground segment allows up to 65,536 output tokens, including reasoning and function calls, so leave room beyond the text you want returned.

**When should I use more reasoning?**

Use low reasoning for straightforward work such as labeling short messages. Use high reasoning for debugging or problems with several dependent steps.

**How should I prompt Gemini 4 Hydrogen?**

State the task, provide the relevant context, and define the desired format and tone. For example, request a short comparison table with explicit criteria instead of asking for a general overview.

**Can Gemini 4 Hydrogen classify text using my labels?**

Yes. Supply the allowed labels and explain how to distinguish them; structured output can constrain responses to those labels.

