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

Google Antigravity · LLM

How to Use Gemini 4 Hydrogen in Google Antigravity

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.

Prompts to try with Gemini 4 Hydrogen in Google Antigravity

Copy an example into Google Antigravity, or ask in your own words.

Use Gemini 4 Hydrogen to investigate this repository's failing tests, make the smallest justified fix, and report the tests actually run.

Gemini 4 HydrogenGoogle Antigravity
Try asking
  • 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 Google Antigravity

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

Use Spiral's MCP server

  1. Open the MCP config

    * Antigravity App: click Customizations, then Installed. In the MCP Servers section, click Copy Config File Path and open that file. * Antigravity IDE: click … at the top of the agent side panel, select MCP Servers, then Manage MCP Servers › View raw config. * Antigravity CLI: edit ~/.gemini/config/mcp_config.json.

  2. Add the server

    Add Spiral under mcpServers:

    {
      "mcpServers": {
        "spiral": {
          "serverUrl": "https://api.spiral.ai/mcp"
        }
      }
    }
  3. Sign in

    In the Antigravity App, open Customizations › Installed. Under MCP Servers, click Authenticate next to Spiral. Sign in to Spiral, pick the organization and click Authorize. Copy the authorization code the browser shows, paste it into Enter authorization code and click Submit. No API key.

Use the Spiral skill

  1. Send Google Antigravity 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 Hydrogen

    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-hydrogen:batch",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

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

Gemini 4 Hydrogen providers and prices

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

OpenRouterLLM
Google: Gemini 4 Hydrogen (batch)
google/gemini-4-hydrogen:batch

Settings you can ask for

Ask Google Antigravity 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, high, or xhighmedium

How much the model reasons.

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

What can you do with Gemini 4 Hydrogen in Google Antigravity?

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.

Questions about Gemini 4 Hydrogen in Google Antigravity

Can Google Antigravity use Gemini 4 Hydrogen?

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

How much does Gemini 4 Hydrogen cost in Google Antigravity?

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 Google Antigravity plan is separate.

Do I need an OpenRouter account to use Gemini 4 Hydrogen in Google Antigravity?

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 Google Antigravity?

About two minutes: open the MCP config, then add the server, then sign in.

Does Google Antigravity wait while Gemini 4 Hydrogen runs?

Gemini 4 Hydrogen runs in the background. Google Antigravity 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.

Get started

Start using Gemini 4 Hydrogen in Google Antigravity

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

Paste this into Google Antigravity:

Set up Google Antigravity

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