[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [Aion 2.0](https://spiral.ai/integrations/muse-code/aion-2-0)

# How to Use Aion 2.0 in Muse Code

Aion 2.0 is built for character roleplay and fiction that needs tension, crises, and conflict. It adapts DeepSeek V3.2 for storytelling, including mature and darker themes.

|  |  |
| --- | --- |
| Model | Aion 2.0 |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.008557 per run at the default inputs. $1.04 per 1M input tokens, $2.08 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Aion 2.0 in Muse Code

- Use Aion 2.0 to draft a confrontation for the characters defined in this project's story files. Follow the existing dialogue format, keep each character's stated motives, and give me three player choices with different consequences.
- Use Aion 2.0 to revise the opening encounter in this project's narrative files. Introduce a deadline and a conflict between two characters without changing established facts. Show the proposed text before editing.
- Use Aion 2.0 to write 12 short dialogue exchanges for the shopkeeper described in the character files. Make the shopkeeper conceal a debt while trying to sell damaged goods. Match the project's dialogue syntax.
- Use Aion 2.0 to draft three alternate endings for the quest in this project's story files. Make each ending resolve the central conflict at a different personal cost. Keep each ending under 250 words.
- Use Aion 2.0 to draft a 600-word scene from the project's outline with reasoning enabled. Preserve the listed content boundaries, reveal one secret, and stop before the protagonist makes the final choice.

## How to set up Aion 2.0 in Muse Code

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

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse Code 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 Aion 2.0**: 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": "aion-labs/aion-2.0",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Muse Code finds Aion 2.0 on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## Aion 2.0 tools and prices

- [AionLabs: Aion-2.0](https://spiral.ai/tools/openrouter/aion-labs/aion-2.0) (OpenRouter): Up to $0.008557 per run at the default inputs. $1.04 per 1M input tokens, $2.08 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| tools |  | — |  |
| top_p | 0 to 1 | — |  |
| reasoning |  | — | Reasoning effort; reasoning tokens count toward max_tokens. |
| max_tokens | 1 to 32768 | — | The most output tokens to generate. |
| temperature | 0 to 2 | — |  |
| tool_choice |  | — |  |

## What can you do with Aion 2.0 in Muse Code?

Aion 2.0 can supply dialogue, character encounters, and branching scenes for narrative projects. Have your coding agent use the project's story files to define the requested text and where it belongs.

### Character roleplay

Give Aion 2.0 a character's goals, secrets, and speaking style, then play through a conversation with competing interests.

### Branching game dialogue

Ask Aion 2.0 to draft dialogue choices that lead to different conflicts and consequences in an interactive story.

### Tabletop encounters

Have Aion 2.0 turn a location and several opposing motives into an encounter with a dilemma players can act on.

### Suspense scene revisions

Give Aion 2.0 a scene and ask for a revision that raises pressure through a deadline, withheld information, or a costly choice.

### Serial fiction drafts

Use Aion 2.0 to draft the next installment from a recap, established character goals, and a specific unresolved conflict.

### Morally difficult character decisions

Ask Aion 2.0 to write a scene where two defensible goals collide, with clear boundaries for any darker material.

## Overview

- [OpenRouter](https://spiral.ai/providers/openrouter)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## Aion 2.0 in other agents

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

## More Muse Code guides

- [bible-api.com random Bible verse](https://spiral.ai/integrations/muse-code/bible-api-com-random-bible-verse)
- [Aion 3.0](https://spiral.ai/integrations/muse-code/aion-3-0)
- [bible-api.com Bible translations](https://spiral.ai/integrations/muse-code/bible-api-com-bible-translations)
- [Aion 3.0 Mini](https://spiral.ai/integrations/muse-code/aion-3-0-mini)
- [bible-api.com Bible passage](https://spiral.ai/integrations/muse-code/bible-api-com-bible-passage)
- [Aion 3.5](https://spiral.ai/integrations/muse-code/aion-3-5)

## Questions about Aion 2.0 in Muse Code

**Can Muse Code use Aion 2.0?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run Aion 2.0 like any built-in tool.

**How much does Aion 2.0 cost in Muse Code?**

Up to $0.008557 per run at the default inputs. $1.04 per 1M input tokens, $2.08 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Muse Code plan is separate.

**Do I need an OpenRouter account to use Aion 2.0 in Muse Code?**

No. Spiral runs Aion 2.0 on its own OpenRouter account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Aion 2.0 in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while Aion 2.0 runs?**

Aion 2.0 runs in the background. Muse Code starts the run, checks on it and gives you the text, json when it's ready.

**What is Aion 2.0 best suited for?**

Character roleplay and fiction, especially scenes driven by competing goals, escalating pressure, or a crisis. Aion Labs identifies narrative tension and conflict as particular strengths.

**Can Aion 2.0 write darker fiction?**

Yes. Aion Labs highlights its treatment of mature and darker themes. Specify the tone and content boundaries you want before asking for a scene.

**How much text can Aion 2.0 handle?**

Its context window is 131,072 tokens, and its maximum completion is 32,768 tokens. Treat these as token limits, rather than fixed word or page counts.

**Why can an Aion 2.0 answer be shorter than the output limit?**

Reasoning and the visible answer use the same completion budget. Leave room for both when requesting a long scene or chapter.

**Should I keep reasoning enabled for Aion 2.0?**

Keep it enabled as a starting point. Aion Labs says its models are tuned for reasoning and warns that disabling it can degrade output.

