Spiral gives your agent every tool with one account. Browse the tools →

VS Code · LLMReleased 2025-01-30

How to Use Mistral Small 3 in VS Code

Use Mistral Small 3 for multilingual support replies, text classification, and JSON extraction. Its 32k context is smaller than Mistral Small 3.1's 128k window.

Prompts to try with Mistral Small 3 in VS Code

Copy an example into VS Code, or ask in your own words.

Use Mistral Small 3 to explain the function under my cursor, including its inputs, return value, side effects, and two edge cases. Read only the function and its direct dependencies.

Mistral Small 3VS Code
Try asking
  • Use Mistral Small 3 at temperature 0.15 to review my current diff for incorrect conditionals and missing error handling. Return findings with file paths, line numbers, and supporting code.

  • Use Mistral Small 3 to draft tests for the selected parser using the project's existing test framework. Cover empty input, malformed input, and one valid example, then run the relevant tests.

  • Use Mistral Small 3 to classify the issues in the selected project document as bug, feature request, documentation, or unclear. Return JSON with the issue title, category, and one supporting quote.

  • Use Mistral Small 3 to translate the selected English interface strings into French and German. Preserve interpolation tokens and translation keys, follow the existing locale structure, and check the resulting syntax.

How to set up Mistral Small 3 in VS Code

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

Use Spiral's MCP server

  1. Add the hosted server

    Use Add to VS Code on the console's Agents & MCP page, or run:

    code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
  2. Sign in

    VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

Use the Spiral skill

  1. Send VS 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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Mistral Small 3

    One request; the result comes back by polling or a webhook.

    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-small-24b-instruct-2501",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

Then paste one of the prompts above: VS Code finds Mistral Small 3 on Spiral, shows the price and runs it.

Mistral Small 3 providers and prices

Spiral runs Mistral Small 3 through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
Mistral: Mistral Small 3
mistralai/mistral-small-24b-instruct-2501

Settings you can ask for

Ask VS Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number
Min p0 to 1
Top ka whole number from 0
Top p0 to 1
Max tokens1 to 16384

The most output tokens to generate.

Temperature0 to 2
Presence penalty-2 to 2
Frequency penalty-2 to 2
Repetition penalty0 to 2

Every API field of Mistral: Mistral Small 3 is on its tool page: open its card above.

What can you do with Mistral Small 3 in VS Code?

Turn selected project code into explanations, small patches, and structured issue summaries. Give Mistral Small 3 a focused task and check proposed changes with the project's existing tools.

Support reply drafts

Draft an answer from a customer's message and the relevant policy excerpt. Require the draft to identify questions the policy does not answer.

Feedback classification

Label customer feedback by topic and sentiment. Define the allowed labels and request one supporting phrase for each decision.

Structured text extraction

Turn order messages or intake notes into JSON records. Specify the required keys and use null when the source omits a value.

Multilingual customer communication

Translate support replies between supported languages while preserving product names, identifiers, and the meaning of policy terms.

Document and meeting digests

Summarize selected document text or meeting notes into decisions, action items, and open questions. Keep the supplied material within the 32k context window.

Focused code assistance

Explain a function, suggest a small patch, or draft tests from relevant code excerpts. Check generated changes with the project's existing tools.

Questions about Mistral Small 3 in VS Code

Can VS Code use Mistral Small 3?

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Mistral Small 3 like any built-in tool.

How much does Mistral Small 3 cost in VS Code?

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

Do I need an OpenRouter account to use Mistral Small 3 in VS Code?

No. Spiral runs Mistral Small 3 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 Small 3 in VS Code?

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

Does VS Code wait while Mistral Small 3 runs?

Mistral Small 3 runs in the background. VS Code starts the run, checks on it and gives you the text, json when it's ready.

What is Mistral Small 3 good for?

Start with support replies, text classification, multilingual assistance, and structured extraction. Mistral specifically identifies customer service and sentiment and feedback analysis as practical uses.

How much context can Mistral Small 3 handle?

Mistral Small 3 has a 32k context window. Keep document selections and conversation history focused; the 128k window belongs to Mistral Small 3.1.

Which languages does Mistral Small 3 support?

The model card lists dozens of supported languages, including English, French, German, Spanish, Italian, and Chinese. State the target language and intended audience when requesting a translation or reply.

Can Mistral Small 3 return JSON?

Yes, its model card documents JSON output and native function calling. For extraction, specify the exact keys, allowed labels, and how to represent missing information.

What temperature should I start with?

Start around 0.15, the value in Mistral Small 3's published generation configuration. Pair it with a narrow task and a clear response format.

Get started

Start using Mistral Small 3 in VS Code

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into VS Code:

Set up VS Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options