[Integrations](https://spiral.ai/integrations) › [Gemini CLI](https://spiral.ai/integrations/gemini-cli) › [Magnum v4 72B](https://spiral.ai/integrations/gemini-cli/magnum-v4-72b)

# How to Use Magnum v4 72B in Gemini CLI

Magnum v4 72B targets creative prose and character roleplay. It fine-tunes Qwen2.5-72B-Instruct toward Claude 3 Sonnet and Opus prose, giving it a specific writing focus.

|  |  |
| --- | --- |
| Model | Magnum v4 72B |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.026739 per run at the default inputs. $3.25 per 1M input tokens, $6.50 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Magnum v4 72B in Gemini CLI

- Use Magnum v4 72B to read this project's character notes and draft eight greetings for a suspicious innkeeper. Keep each under 25 words and explain which established trait it reflects.
- Use Magnum v4 72B to find a dialogue scene in this project and propose a 400-word rewrite with distinct voices. Preserve the existing plot facts and show the draft before editing.
- Use Magnum v4 72B to draft a 300-word opening for this project's game using its setting notes. End at the player's first decision without choosing for them.
- Use Magnum v4 72B to read the project's quest notes and write three 150-word encounter introductions. Give each a different immediate conflict while preserving the established setting.
- Use Magnum v4 72B to compare two 250-word drafts of a scene based on this project's character notes. Start with temperature 0.7, top_k 20, and top_p 0.8; judge voice and repetition.

## How to set up Magnum v4 72B in Gemini CLI

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

### Use Spiral's MCP server

1. **Add the server**: Or add it to `~/.gemini/settings.json` yourself:

```bash
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `gemini` and run:

```text
/mcp auth spiral
```

3. **Check it**: In Gemini CLI, run `/mcp`. From your shell:

```bash
gemini mcp list
```

### Use the Spiral skill

1. **Send Gemini CLI 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 Magnum v4 72B**: 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": "anthracite-org/magnum-v4-72b",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Gemini CLI finds Magnum v4 72B on Spiral, shows the price and runs it.

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

## Magnum v4 72B tools and prices

- [Magnum v4 72B](https://spiral.ai/tools/openrouter/anthracite-org/magnum-v4-72b) (OpenRouter): Up to $0.026739 per run at the default inputs. $3.25 per 1M input tokens, $6.50 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| stop |  | — |  |
| min_p | 0 to 1 | — |  |
| top_k | 0 to … | — |  |
| top_p | 0 to 1 | — |  |
| logprobs |  | — |  |

## What can you do with Magnum v4 72B in Gemini CLI?

Draft dialogue and narrative text for your project with Magnum v4 72B. Use the project's character notes to guide the writing.

### Game character dialogue

Draft a suspicious innkeeper's greetings, evasions, and confession.

### Interactive fiction

Write a scene that pauses for the player's next decision.

### Short story drafts

Turn a premise into a scene with a clear viewpoint.

### Dialogue revisions

Rewrite an exchange so each speaker has a distinct voice.

### Tabletop encounters

Prepare an NPC's motives, dialogue, and reactions to player choices.

### Serialized fiction

Draft the next scene from a continuity brief and unresolved conflict.

## Overview

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

## Magnum v4 72B in other agents

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

## More Gemini CLI guides

- [LongCat 2.0](https://spiral.ai/integrations/gemini-cli/longcat-2-0)
- [Mi:dm K 3.0 Pro](https://spiral.ai/integrations/gemini-cli/mi-dm-k-3-0-pro)
- [Llama Guard 4 12B](https://spiral.ai/integrations/gemini-cli/llama-guard-4-12b)
- [MiMo V2.6 Pro](https://spiral.ai/integrations/gemini-cli/mimo-v2-6-pro)
- [Llama 4 Scout](https://spiral.ai/integrations/gemini-cli/llama-4-scout)
- [MiMo V2.6 Pro UltraSpeed](https://spiral.ai/integrations/gemini-cli/mimo-v2-6-pro-ultraspeed)

## Questions about Magnum v4 72B in Gemini CLI

**Can Gemini CLI use Magnum v4 72B?**

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Magnum v4 72B like any built-in tool.

**How much does Magnum v4 72B cost in Gemini CLI?**

Up to $0.026739 per run at the default inputs. $3.25 per 1M input tokens, $6.50 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 CLI plan is separate.

**Do I need an OpenRouter account to use Magnum v4 72B in Gemini CLI?**

No. Spiral runs Magnum v4 72B on its own OpenRouter account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Magnum v4 72B in Gemini CLI?**

About two minutes: add the server, then sign in, then check it.

**Does Gemini CLI wait while Magnum v4 72B runs?**

Magnum v4 72B runs in the background. Gemini CLI starts the run, checks on it and gives you the text, json when it's ready.

**What should I use Magnum v4 72B for?**

Start with fiction, dialogue, and character roleplay. Its stated focus is prose quality.

**Is Magnum v4 72B based on Claude?**

Its base is Qwen2.5-72B-Instruct. Claude 3 Sonnet and Opus prose provided the writing target.

**How should I prompt Magnum v4 72B for roleplay?**

Specify the character, situation, and voice. Ask it to leave your character's decisions and dialogue to you.

**How much context does Magnum v4 72B document?**

Its published configuration specifies 32,768 positions. For extended stories, keep a short continuity brief alongside the current scene.

**Which sampling settings should I try first?**

Try the maker's published values: temperature 0.7, top-k 20, and top-p 0.8. Compare drafts using the same scene before changing one setting at a time.

