[Integrations](https://spiral.ai/integrations) › [Gemini](https://spiral.ai/integrations/gemini) › [Hermes 4 405B](https://spiral.ai/integrations/gemini/hermes-4-405b)

# How to Use Hermes 4 405B in Gemini

Hermes 4 405B suits math, code analysis, structured JSON, and character-driven writing. It scores higher than Hermes 4 70B on Nous Research's AIME 2025 and LiveCodeBench tests with reasoning enabled.

|  |  |
| --- | --- |
| Model | Hermes 4 405B |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.01602 per run at the default inputs. $1.30 per 1M input tokens, $3.90 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Hermes 4 405B in Gemini

- Use Hermes 4 405B with reasoning enabled to check this probability problem and my proposed answer. Give the corrected result, a brief explanation, and one check on the calculation.
- Use Hermes 4 405B to explain the science passage below to a high school student. Stay within the passage's claims and finish with three practice questions and answers.
- Use Hermes 4 405B to turn the meeting notes below into JSON containing decisions, owners, and deadlines. Use null when an owner or deadline is missing.
- Use Hermes 4 405B to write a 600-word scene between a cautious archivist and an impatient explorer. Give each a distinct voice and end with an unresolved disagreement.
- Use Hermes 4 405B to compare the two proposals below against my criteria. Separate evidence from assumptions and list the questions I should ask before deciding.

## How to set up Hermes 4 405B in Gemini

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

### Use the Gemini connector

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

2. **Add Spiral as a custom app**: Under Custom apps, click Add a custom app and paste this MCP server URL:

```text
https://api.spiral.ai/mcp
```

3. **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

1. **Send Gemini 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 Hermes 4 405B**: 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": "nousresearch/hermes-4-405b",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

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

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

## Hermes 4 405B tools and prices

- [Nous: Hermes 4 405B](https://spiral.ai/tools/openrouter/nousresearch/hermes-4-405b) (OpenRouter): Up to $0.01602 per run at the default inputs. $1.30 per 1M input tokens, $3.90 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| stop |  | — |  |
| top_k | 0 to … | — |  |
| top_p | 0 to 1 | — |  |
| logprobs |  | — |  |
| reasoning |  | — | Reasoning effort; reasoning tokens count toward max_tokens. |

## What can you do with Hermes 4 405B in Gemini?

Work through a calculation, compare supplied arguments, or develop a character's voice with Hermes 4. State the desired answer format and provide reference text for claims that need checking.

### Review an algorithm

Provide a function, its intended behavior, and failing examples. Ask for likely defects, a proposed correction, and tests that distinguish the corrected behavior.

### Check a calculation

Supply the quantities, units, assumptions, and proposed result. Request an independent calculation with a short explanation and a list of missing information.

### Extract records from text

Turn supplied support messages or meeting notes into JSON matching a defined schema. Specify required keys and use null for information the source does not contain.

### Repair malformed JSON

Provide a broken JSON object and its intended schema. Request corrected JSON plus a separate account of any ambiguous values that require review.

### Draft character dialogue

Define each character's motives, knowledge, and speaking style. Request a scene that advances a specific conflict while keeping the voices distinct.

### Develop a long-form draft

Supply an outline, audience, source material, and target length. Draft one section at a time, then review continuity and repeated points.

### Explain a science concept

Ask for an explanation at a named reading level, followed by worked examples and practice questions. Supply reference material when factual precision matters.

### Compare written proposals

Provide the proposals and evaluation criteria. Request a comparison that separates stated evidence, assumptions, and unanswered questions.

## Overview

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

## Hermes 4 405B in other agents

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

## More Gemini guides

- [Grok Latest](https://spiral.ai/integrations/gemini/grok-latest)
- [Hy-MT2-1.8B](https://spiral.ai/integrations/gemini/hy-mt2-1-8b)
- [Grok 4.7](https://spiral.ai/integrations/gemini/grok-4-7)
- [Hy-MT2-30B-A3B](https://spiral.ai/integrations/gemini/hy-mt2-30b-a3b)
- [Grok 4.6](https://spiral.ai/integrations/gemini/grok-4-6)
- [Hy-MT2-7B](https://spiral.ai/integrations/gemini/hy-mt2-7b)

## Questions about Hermes 4 405B in Gemini

**Can Gemini use Hermes 4 405B?**

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

**How much does Hermes 4 405B cost in Gemini?**

Up to $0.01602 per run at the default inputs. $1.30 per 1M input tokens, $3.90 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 an OpenRouter account to use Hermes 4 405B in Gemini?**

No. Spiral runs Hermes 4 405B on its own OpenRouter account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Hermes 4 405B 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 Hermes 4 405B runs?**

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

**What is Hermes 4 good at?**

Nous highlights math, science, instruction following, structured JSON, roleplay, and long-form writing. Useful starting tasks include explaining a calculation, extracting records into a schema, and drafting dialogue with a defined character voice.

**When should I use reasoning?**

Use reasoning for difficult math and code problems. In Nous Research's tests, Hermes 4 405B scored 78.1 on AIME 2025 with reasoning enabled, compared with 10.6 without it.

**Can Hermes 4 produce structured JSON?**

Yes. It was trained to follow JSON schemas and repair malformed objects. Supply the schema, define how missing values should appear, and validate the result before using it.

**What sampling settings should I start with?**

Nous recommends temperature 0.6, top_p 0.95, and top_k 20. Use these as a baseline when comparing prompts on the same tasks.

**How much text can Hermes 4 405B handle?**

Its published configuration specifies 131,072 token positions. That is configured context capacity, not a guarantee that it will write a response that long.

