[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [Claude Haiku 4.5](https://spiral.ai/integrations/muse-code/claude-haiku-4-5)

# How to Use Claude Haiku 4.5 in Muse Code

Claude Haiku 4.5 suits focused coding, quick support replies, and parallel subtasks. Anthropic reports coding performance similar to Claude Sonnet 4, with more than twice the speed.

|  |  |
| --- | --- |
| Model | Claude Haiku 4.5 |
| Available through | Anthropic |
| Category | LLM |
| Price | Up to $0.026715 per run at the default inputs. $1.30 per 1M input tokens, $0.13 per 1M cached input tokens, $1.625 per 1M cache write tokens, $2.60 per 1M 1-hour cache write 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 Claude Haiku 4.5 in Muse Code

- Use Claude Haiku 4.5 to investigate the failing test in this project. Explain the cause, make the smallest fix that restores the expected behavior, and run the relevant tests.
- Use Claude Haiku 4.5 to add keyboard submission to the search form in this project. Preserve existing mouse behavior, prevent empty searches, and verify both paths.
- Use Claude Haiku 4.5 to refactor the duplicated validation logic in this project into one shared function. Preserve existing behavior and run the affected tests.
- Use Claude Haiku 4.5 to review this project's diff for incorrect boundary handling. Report each finding with a file location, a concrete failing input, and a proposed correction.
- Use Claude Haiku 4.5 to implement the next bounded task in this project's written plan. Follow its acceptance criteria, test the change, and report what remains unresolved.

## How to set up Claude Haiku 4.5 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 Claude Haiku 4.5**: 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": "anthropic",
    "model": "anthropic/claude-haiku-4.5",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

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

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

## Claude Haiku 4.5 tools and prices

- [Claude Haiku 4.5](https://spiral.ai/tools/anthropic/anthropic/claude-haiku-4.5) (Anthropic): Up to $0.026715 per run at the default inputs. $1.30 per 1M input tokens, $0.13 per 1M cached input tokens, $1.625 per 1M cache write tokens, $2.60 per 1M 1-hour cache write tokens, $6.50 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| stop |  | — |  |
| tools |  | — |  |
| top_p | 0 to 1 | — |  |
| max_tokens | 1 to 64000 | — | 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). |
| temperature | 0 to 1 | — |  |
| tool_choice |  | — |  |

## What can you do with Claude Haiku 4.5 in Muse Code?

Claude Haiku 4.5 can turn a defined bug or small feature into a patch you can test. Give it the relevant project files, expected behavior, and a clear stopping point.

### Fix a specific bug

Give Claude Haiku 4.5 a reproducible failure and expected behavior. Ask for a focused patch and a regression check.

### Prototype a small feature

Use Claude Haiku 4.5 to implement one defined interaction, such as form validation, with explicit acceptance criteria.

### Draft support replies

Provide the customer's question and relevant policy text. Request a short answer that quotes the policy and flags missing information.

### Prepare a daily digest

Turn supplied updates into decisions, blockers, and next actions. Require a source reference for each item.

### Translate support messages

Specify the source language, target language, and terms to preserve. Review the result against your terminology guide.

### Extract details from text

Request dates, owners, and commitments from supplied correspondence. Include an output example and require null for missing details.

### Answer questions from reference text

Supply the relevant documentation and require supporting quotes. Ask Claude Haiku 4.5 to say when the text does not answer the question.

### Delegate a bounded coding task

Assign one defined change from a larger implementation plan, with its scope and completion criteria written out.

## Overview

- [Anthropic Claude](https://spiral.ai/providers/anthropic)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## Claude Haiku 4.5 in other agents

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

## More Muse Code guides

- [Claude Fable Latest](https://spiral.ai/integrations/muse-code/claude-fable-latest)
- [Claude Haiku 5.5](https://spiral.ai/integrations/muse-code/claude-haiku-5-5)
- [Claude Fable 5.2](https://spiral.ai/integrations/muse-code/claude-fable-5-2)
- [Claude Haiku Latest](https://spiral.ai/integrations/muse-code/claude-haiku-latest)
- [Claude Fable 5.1](https://spiral.ai/integrations/muse-code/claude-fable-5-1)
- [Claude Opus 4.5](https://spiral.ai/integrations/muse-code/claude-opus-4-5)

## Questions about Claude Haiku 4.5 in Muse Code

**Can Muse Code use Claude Haiku 4.5?**

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

**How much does Claude Haiku 4.5 cost in Muse Code?**

Up to $0.026715 per run at the default inputs. $1.30 per 1M input tokens, $0.13 per 1M cached input tokens, $1.625 per 1M cache write tokens, $2.60 per 1M 1-hour cache write 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 Muse Code plan is separate.

**Do I need an Anthropic account to use Claude Haiku 4.5 in Muse Code?**

No. Spiral runs Claude Haiku 4.5 on its own Anthropic account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Claude Haiku 4.5 in Muse Code?**

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

**Does Muse Code wait while Claude Haiku 4.5 runs?**

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

**What is Claude Haiku 4.5 good at?**

Claude Haiku 4.5 is a practical choice for focused coding, pair programming, and short customer support exchanges. Anthropic reports coding performance similar to Claude Sonnet 4, with more than twice the speed.

**How much text can Claude Haiku 4.5 handle?**

Claude Haiku 4.5 has a 200,000-token context window and can generate up to 64,000 output tokens. Treat those as limits, and request the length your task needs.

**Does Claude Haiku 4.5 know about recent events?**

Its reliable knowledge cutoff is February 2025. For later events, supply current source material and ask it to base its answer on that evidence.

**Can Claude Haiku 4.5 work in languages other than English?**

Yes. Name the source and target languages explicitly, and test the language pairs and terminology your task needs.

**How should I prompt Claude Haiku 4.5?**

State the task, constraints, and required output format directly. Add representative examples when consistent formatting or tone matters.

