How to Use Gemini 4 Hydrogen Vertex AI in Gemini
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.
Prompts to try with Gemini 4 Hydrogen Vertex AI in Gemini
Copy an example into Gemini, or ask in your own words.
Use Gemini 4 Hydrogen to rewrite the announcement above as a 150-word customer email. Keep every date and commitment, use a calm tone, and state the main change first.
Use Gemini 4 Hydrogen to turn the notes above into a study guide. Include five key ideas, one example per idea, and five questions with answers.
Use Gemini 4 Hydrogen with low reasoning to label each message above as bug report, feature request, or question. Include the phrase that supports each label.
Use Gemini 4 Hydrogen to explain the code pasted above to a beginner. Walk through one example input and identify where an error could occur.
Use Gemini 4 Hydrogen to rewrite the explanation above for a nontechnical manager. Keep it under 200 words and preserve the stated limitations.
How to set up Gemini 4 Hydrogen Vertex AI in Gemini
Pick the way that suits you. Each takes about two minutes.
Use the Gemini connector
- Open Connected Apps
On your computer, go to gemini.google.com. At the bottom, click Settings › Connected Apps. If you don't see Connected Apps, click Personal Intelligence first, then Connected Apps.
- Add Spiral as a custom app
Under Custom apps, click Add a custom app and paste this MCP server URL:
https://api.spiral.ai/mcp
- Sign in to Spiral and approve
Follow the on-screen instructions. Spiral opens: sign in, pick the organization and click Authorize. No API key.
Use the Spiral skill
- Send Gemini this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run Gemini 4 Hydrogen Vertex AI
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": "vertex", "model": "google/gemini-4-hydrogen", "input": { "messages": [ { "role": "system" } ] } }'
Then paste one of the prompts above: Gemini finds Gemini 4 Hydrogen Vertex AI on Spiral, shows the price and runs it.
Gemini 4 Hydrogen Vertex AI providers and prices
Spiral runs Gemini 4 Hydrogen Vertex AI through Vertex AI. Open a card for today's price, with every fee included.
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
Ask Gemini for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Seed | a whole number | ||
| Max tokens | 1 to 65536 | The most output tokens to generate. | |
| Reasoning effort | low, medium, or high | high | How much the model reasons. |
Every API field of Gemini 4 Hydrogen is on its tool page: open its card above.
What can you do with Gemini 4 Hydrogen Vertex AI in Gemini?
Turn rough notes into clear writing, explanations, and labeled feedback. Give Gemini 4 Hydrogen the source text, intended audience, and exact shape of the answer.
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.
More on Gemini 4 Hydrogen Vertex AI and Gemini
Gemini 4 Hydrogen Vertex AI in other agents
Questions about Gemini 4 Hydrogen Vertex AI in Gemini
Can Gemini use Gemini 4 Hydrogen Vertex AI?
Yes. Add Spiral to Gemini as an MCP server, and Gemini can find and run Gemini 4 Hydrogen Vertex AI like any built-in tool.
How much does Gemini 4 Hydrogen Vertex AI cost in Gemini?
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 Gemini plan is separate.
Do I need a Vertex AI account to use Gemini 4 Hydrogen Vertex AI in Gemini?
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 Gemini?
About two minutes: open Connected Apps, then add Spiral as a custom app, then sign in to Spiral and approve.
Does Gemini wait while Gemini 4 Hydrogen Vertex AI runs?
Gemini 4 Hydrogen Vertex AI runs in the background. Gemini 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.
Start using Gemini 4 Hydrogen Vertex AI in Gemini
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Gemini:
set up https://spiral.ai/SKILL.md


