[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Mistral Large 2407](https://spiral.ai/integrations/opencode/mistral-large-2407)

# How to Use Mistral Large 2407 in opencode

Use Mistral Large 2407 for code generation, multilingual text, and structured extraction within a 128k context window. It explicitly names the 2407 release that the Mistral Large listing also describes.

|  |  |
| --- | --- |
| Model | Mistral Large 2407 |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.03204 per run at the default inputs. $2.60 per 1M input tokens, $7.80 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Mistral Large 2407 in opencode

- Use Mistral Large 2407 to compare the API documentation with the request handlers. List mismatches with file references, then patch the documentation to match the implemented behavior.
- Use Mistral Large 2407 to review the Python CSV importer. Add tests for missing headers, empty rows, and malformed dates, then fix any failures those tests reveal.
- Ask Mistral Large 2407 through Spiral to review the diff on this branch and list the three riskiest changes. Save the result in ./assets.
- Get a second opinion from Mistral Large 2407 on this function, then tell me what the call cost.
- Summarize these release notes with Mistral Large 2407 in five bullet points.

## How to set up Mistral Large 2407 in opencode

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

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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 Mistral Large 2407**: 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": "mistralai/mistral-large-2407",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: opencode finds Mistral Large 2407 on Spiral, shows the price and runs it.

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

## Mistral Large 2407 tools and prices

- [Mistral Large 2407](https://spiral.ai/tools/openrouter/mistralai/mistral-large-2407) (OpenRouter): Up to $0.03204 per run at the default inputs. $2.60 per 1M input tokens, $7.80 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| stop |  | — |  |
| tools |  | — |  |
| top_p | 0 to 1 | — |  |
| max_tokens | 1 to 104857 | — | The most output tokens to generate. |
| temperature | 0 to 2 | — |  |

## What can you do with Mistral Large 2407 in opencode?

Turn project code and documentation into targeted patches, test cases, and explanations with Mistral Large. Provide the relevant files and ask for evidence tied to the code before accepting a change.

### Compare policy documents

Give Mistral Large two policy texts and ask for changed obligations, exceptions, and deadlines. Require a section reference for every difference.

### Extract records from business text

Use Mistral Large to turn order emails or service requests into records with names, dates, requested actions, and supporting excerpts. Mark missing values explicitly.

### Triage multilingual support messages

Ask Mistral Large to label French, Spanish, and English inquiries by intent, summarize the issue in English, and draft a response in the customer's language.

### Review code changes

Have Mistral Large inspect a proposed change alongside its surrounding code. Request concrete failure cases and a small patch with tests that exercise the affected behavior.

### Answer questions from supplied documentation

Give Mistral Large selected documentation passages and ask a specific product question. Require citations to those passages and an explicit answer when the evidence is insufficient.

### Prepare a daily operations brief

Use Mistral Large to summarize supplied incident updates, group repeated issues, and separate confirmed resolutions from open questions. Include the source link for each incident.

### Check translated product copy

Ask Mistral Large to compare English product copy with French or Spanish translations. Flag changed quantities, omitted conditions, and inconsistent terminology before human review.

## Overview

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

## Mistral Large 2407 in other agents

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

## More opencode guides

- [Mistral Large](https://spiral.ai/integrations/opencode/mistral-large)
- [Mistral Large 3](https://spiral.ai/integrations/opencode/mistral-large-3)
- [Ministral 3 8B](https://spiral.ai/integrations/opencode/ministral-3-8b)
- [Mistral Large 4](https://spiral.ai/integrations/opencode/mistral-large-4)
- [Ministral 3 3B](https://spiral.ai/integrations/opencode/ministral-3-3b)
- [Mistral Medium 3](https://spiral.ai/integrations/opencode/mistral-medium-3)

## Questions about Mistral Large 2407 in opencode

**Can opencode use Mistral Large 2407?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Mistral Large 2407 like any built-in tool.

**How much does Mistral Large 2407 cost in opencode?**

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

**Do I need an OpenRouter account to use Mistral Large 2407 in opencode?**

No. Spiral runs Mistral Large 2407 on its own OpenRouter account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Mistral Large 2407 in opencode?**

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

**Does opencode wait while Mistral Large 2407 runs?**

Mistral Large 2407 runs in the background. opencode starts the run, checks on it and gives you the text, json when it's ready.

**Are Mistral Large and Mistral Large 2407 different models?**

Both listings describe Mistral Large 2, version 2407. Mistral Large 3 is a later model with a 256k context window, compared with the 128k documented for 2407.

**What should I use Mistral Large for?**

Useful starting points include multilingual document analysis, coding assistance, and extracting structured information from text. Give it a concrete task, the relevant source material, and an example of the answer you want.

**Can Mistral Large work with languages other than English?**

Yes. Both 2407 and Large 3 support dozens of languages, including French and Spanish. State the desired output language and identify any names or technical terms that must stay unchanged.

**How should I prompt Mistral Large?**

Separate the task, source material, constraints, and expected answer format into clear sections. Include a completed example when formatting matters, and specify what it should return when the source lacks an answer.

**How should I use Mistral Large for long documents?**

Ask a focused question and require section references or short supporting excerpts. For large extraction jobs, request only the records you need and check a sample against the original text.

