# Mistral: Saba

Generate and analyse text with Mistral: Saba from OpenRouter through one Spiral API key. It runs in the background and returns text and structured JSON. Pay as you go, with no subscription.

- Provider: OpenRouter
- Category: LLM
- Runs: In the background
- Returns: text, json
- Released: 2025-02-17
- Tool id: `openrouter` / `mistralai/mistral-saba`
- Page: https://spiral.ai/tools/openrouter/mistralai/mistral-saba

## Pricing

Up to $0.003205 per run at the default inputs. $0.26 per 1M input tokens, $0.78 per 1M output tokens.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 30 minutes
- Longest run, end to end: 225 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `messages` (required) | JSON |  | — | The conversation so far, oldest first. |
| `seed` | number (whole) |  | — |  |
| `stop` | JSON |  | — |  |
| `tools` | JSON |  | — |  |
| `top_p` | number | 0 to 1 | — |  |
| `max_tokens` | number (whole) | 1 to 26214 | — | The most output tokens to generate. |
| `temperature` | number | 0 to 2 | — |  |
| `tool_choice` | JSON |  | — |  |
| `response_format` | JSON |  | — |  |
| `presence_penalty` | number | -2 to 2 | — |  |
| `frequency_penalty` | number | -2 to 2 | — |  |

## How to use Mistral: Saba

From your AI agent, the command line or your own code. One Spiral account runs it every way.

### Use Spiral's MCP server

1. **Add Spiral's MCP server**: Any MCP client takes https://api.spiral.ai/mcp with your API key as a Bearer token. In Claude Code:

```bash
claude mcp add spiral --transport http https://api.spiral.ai/mcp \
  --header "Authorization: Bearer $SPIRAL_API_KEY"
```

2. **Ask for Mistral: Saba**: Your agent finds it on Spiral, shows the price and runs it.

```
Use Mistral: Saba from OpenRouter on Spiral.
```

### Use the Spiral skill

1. **Send your agent 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.

3. **Ask for Mistral: Saba**: Your agent finds it on Spiral, shows the price and runs it.

```
Use Mistral: Saba from OpenRouter on Spiral.
```

### 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
```

2. **Run Mistral: Saba**: Waits for the result and saves the run and its files under .spiral/runs.

```bash
spiral runs create \
  --provider openrouter \
  --model mistralai/mistral-saba \
  --input '{
    "messages": [
      {
        "role": "system"
      }
    ]
  }' \
  --wait --save
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Mistral: Saba**: 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-saba",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=openrouter&model=mistralai%2Fmistral-saba

## Use Mistral: Saba in your AI agent

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

## Provider

- [OpenRouter](https://spiral.ai/providers/openrouter)

## Related tools

- [Mistral: Mistral Nemo](https://spiral.ai/tools/openrouter/mistralai/mistral-nemo)
- [Mistral: Mistral Small 3](https://spiral.ai/tools/openrouter/mistralai/mistral-small-24b-instruct-2501)
- [Mistral: Mistral Medium 3.1](https://spiral.ai/tools/openrouter/mistralai/mistral-medium-3.1)
- [Mistral: Mistral Small 4](https://spiral.ai/tools/openrouter/mistralai/mistral-small-2603)
- [Mistral: Mistral Medium 3.5](https://spiral.ai/tools/openrouter/mistralai/mistral-medium-3-5)
- [Mistral: Mistral Small 3.1 24B](https://spiral.ai/tools/openrouter/mistralai/mistral-small-3.1-24b-instruct)

## Common questions

### Mistral: Saba

**How much does Mistral: Saba cost?**

Up to $0.003205 per run at the default inputs. $0.26 per 1M input tokens, $0.78 per 1M output tokens. It is paid from your prepaid Spiral balance as you use it, with no subscription.

**How long does Mistral: Saba take to run?**

It runs in the background: the request returns a run id at once, and you poll `GET /v1/runs/{id}` or name a webhook to hear when it finishes. A run can take at most 225 minutes, end to end.

**What input does Mistral: Saba take?**

It needs `messages`. It also takes 10 optional fields: `seed`, `stop`, `tools` and 7 more. Each field's type, allowed values and default are listed on this page.

**What does Mistral: Saba return?**

A finished run returns text and json output. Each output up to 5 GB is stored as a copy; a larger output comes back as the provider's own link where the provider gives one, and otherwise that output is not delivered and you are not charged for it; a run with nothing delivered fails as too large, without a charge.

**What are the limits of Mistral: Saba?**

Longest queue wait: 1 hour; largest inline input: 1 MB; largest input file: 2 GB.

**How do I use Mistral: Saba through an API?**

Send `POST /v1/runs` with `"provider": "openrouter"`, `"model": "mistralai/mistral-saba"` and its input, using one Spiral API key.

**How do I see what a run of Mistral: Saba will cost before I start it?**

Send the same request to `POST /v1/estimate`: it prices that exact input without running it.

**What happens if a run of Mistral: Saba fails?**

Only for work the provider billed. A run that fails before the provider does billable work is not charged, and its hold goes back to your balance; a failure the provider bills for is charged for the work the provider billed, at the tool's price. Each failed run's error says why it failed and what it was charged.

**Do I need an account with OpenRouter to use Mistral: Saba?**

No. Spiral runs it on its own OpenRouter account and charges your Spiral balance.

**Can my AI agent use Mistral: Saba?**

Yes. Any agent connected to Spiral's MCP server, CLI or agent skill runs it with the same API key, and there are guides for using it from Amp, ChatGPT, Claude, Claude Code, Cline, Codex, Cursor, Devin, dots, Factory Droid, Gemini, Gemini CLI, Google Antigravity, goose, Grok, Grok Build, Hermes, Instinct, Manus, Muse, Muse Code, n8n, Notion, OpenClaw, opencode, Perplexity, Raycast, VS Code, Windsurf and Zapier.

**Can I cap what an agent spends on Mistral: Saba?**

Yes. Give each agent its own API key with a spend cap: a run whose estimate would pass the cap is refused before it starts.

