[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [Llama 3.1 Euryale 70B v2.2](https://spiral.ai/integrations/claude-code/llama-3-1-euryale-70b-v2-2)

# How to Use Llama 3.1 Euryale 70B v2.2 in Claude Code

Llama 3.1 Euryale 70B v2.2 is built for creative roleplay and fiction. Compared with Euryale 70B v2.1, its training adds conversations intended to improve continuity across turns.

|  |  |
| --- | --- |
| Model | Llama 3.1 Euryale 70B v2.2 |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.004566 per run at the default inputs. $1.105 per 1M input tokens, $1.105 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Llama 3.1 Euryale 70B v2.2 in Claude Code

- Use Llama 3.1 Euryale 70B v2.2 to draft 12 greeting lines for the harbor merchant using this project's character notes. Keep each line under 20 words and flag any lore assumptions for review.
- Read this project's quest outline, then use Llama 3.1 Euryale 70B v2.2 to draft a 400-word encounter with the missing cartographer. End with three player choices and stop before choosing one.
- Use Llama 3.1 Euryale 70B v2.2 to rewrite the tavern dialogue in this project so the innkeeper sounds guarded and impatient. Preserve every clue and quest condition; show the proposed text before editing.
- Use Llama 3.1 Euryale 70B v2.2 with temperature 1.2 and min_p 0.2 to draft three 150-word openings for this project's lighthouse encounter. Keep the location and cast fixed, but vary the source of tension.
- Use Llama 3.1 Euryale 70B v2.2 to draft eight exchanges between the rival explorers described in this project's lore. Give each a different speaking rhythm and leave the expedition's outcome unresolved.

## How to set up Llama 3.1 Euryale 70B v2.2 in Claude Code

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

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

1. **Send Claude 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 Llama 3.1 Euryale 70B v2.2**: 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": "sao10k/l3.1-euryale-70b",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Claude Code finds Llama 3.1 Euryale 70B v2.2 on Spiral, shows the price and runs it.

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

## Llama 3.1 Euryale 70B v2.2 tools and prices

- [Sao10K: Llama 3.1 Euryale 70B v2.2](https://spiral.ai/tools/openrouter/sao10k/l3.1-euryale-70b) (OpenRouter): Up to $0.004566 per run at the default inputs. $1.105 per 1M input tokens, $1.105 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 | — |  |
| max_tokens | 1 to 16384 | — | The most output tokens to generate. |

## What can you do with Llama 3.1 Euryale 70B v2.2 in Claude Code?

Turn your game's character notes into dialogue drafts and branching scenes with Euryale 70B v2.2. Have your coding agent compare the drafts with the project's lore before adding them.

### Game character dialogue

Draft a shopkeeper's greeting, bargaining exchange, and farewell using a defined personality and knowledge of the player.

### Interactive fiction

Write a scene that ends at a decision point, then continue from the reader's chosen action.

### Tabletop roleplay

Rehearse an encounter with a suspicious innkeeper or rival explorer, leaving the player's decisions to the player.

### Character voice exploration

Give three characters the same uncomfortable news and draft a distinct reaction for each.

### Scene rewrites

Rewrite a confrontation from another character's viewpoint while keeping the events and ending fixed.

### Serialized fiction drafts

Draft the next short installment from an approved recap, character notes, and a specific unresolved conflict.

### Dialogue rehearsal

Explore a fictional conversation over several exchanges before adapting it into a script or comic.

## Overview

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

## Llama 3.1 Euryale 70B v2.2 in other agents

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

## More Claude Code guides

- [Llama 3.1 8B Instruct](https://spiral.ai/integrations/claude-code/llama-3-1-8b-instruct)
- [Llama 3.3 70B Instruct](https://spiral.ai/integrations/claude-code/llama-3-3-70b-instruct)
- [Llama 3.1 70B Instruct](https://spiral.ai/integrations/claude-code/llama-3-1-70b-instruct)
- [Llama 4 Maverick](https://spiral.ai/integrations/claude-code/llama-4-maverick)
- [Llama 3 8B Lunaris](https://spiral.ai/integrations/claude-code/llama-3-8b-lunaris)
- [Llama 4 Scout](https://spiral.ai/integrations/claude-code/llama-4-scout)

## Questions about Llama 3.1 Euryale 70B v2.2 in Claude Code

**Can Claude Code use Llama 3.1 Euryale 70B v2.2?**

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Llama 3.1 Euryale 70B v2.2 like any built-in tool.

**How much does Llama 3.1 Euryale 70B v2.2 cost in Claude Code?**

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

**Do I need an OpenRouter account to use Llama 3.1 Euryale 70B v2.2 in Claude Code?**

No. Spiral runs Llama 3.1 Euryale 70B v2.2 on its own OpenRouter account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Llama 3.1 Euryale 70B v2.2 in Claude Code?**

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

**Does Claude Code wait while Llama 3.1 Euryale 70B v2.2 runs?**

Llama 3.1 Euryale 70B v2.2 runs in the background. Claude Code starts the run, checks on it and gives you the text, json when it's ready.

**What is Euryale 70B v2.2 best used for?**

Creative roleplay is its stated focus. Try character conversations, scene drafts, and interactive fiction.

**What changed from Euryale 70B v2.1?**

The maker added conversation instruction data aimed at improving coherence across turns. That is a training goal, so check continuity in your own scenes.

**How much text can Euryale 70B v2.2 handle?**

OpenRouter lists a 131,072-token context window and up to 16,384 completion tokens. For longer fiction, request one scene at a time.

**Which sampling settings should I try?**

The maker recommends temperature 1.2 and minimum token probability 0.2. Treat those as starting values and compare results using the same scene brief.

**What weakness should I watch for?**

The maker reports occasional erratic responses and recommends regeneration. Review each continuation before accepting it into your story.

