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

Grok · LLMReleased 2025-05-07

How to Use Mistral Medium 3 in Grok

Mistral Medium 3 suits code review, STEM explanations, and questions over supplied text. It is the May 2025 model with a 128k context window, so leave room for the answer when providing long material.

Prompts to try with Mistral Medium 3 in Grok

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

Use Mistral Medium 3 to explain the code in this conversation. Describe its inputs, outputs, and three edge cases, then show one worked example.

Mistral Medium 3Grok
Try asking
  • Use Mistral Medium 3 to check the calculation in this conversation. Explain each step, track the units, and separate stated facts from assumptions.

  • Use Mistral Medium 3 to answer my questions using only the policy text in this conversation. Include a short supporting excerpt for each answer and say when the text does not answer a question.

  • Use Mistral Medium 3 to turn these meeting notes into JSON records with an action, owner, and due date. Use null for missing details and keep the generation randomness low.

  • Use Mistral Medium 3 to draft a French reply to the customer message in this conversation using the supplied policy. Preserve product names and list any wording that needs a terminology check.

How to set up Mistral Medium 3 in Grok

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

Use the Grok connector

  1. Add a custom connector

    In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

    https://api.spiral.ai/mcp
  2. Sign in to Spiral and approve

    Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

  3. Check that it is connected

    Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

Use the Spiral skill

  1. Send Grok 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 Medium 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-medium-3",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

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

Mistral Medium 3 providers and prices

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

OpenRouterLLM
Mistral: Mistral Medium 3
mistralai/mistral-medium-3

Settings you can ask for

Ask Grok for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number
Top p0 to 1
Max tokens1 to 104857

The most output tokens to generate.

Temperature0 to 2
Presence penalty-2 to 2
Frequency penalty-2 to 2

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

What can you do with Mistral Medium 3 in Grok?

Get explanations of code, technical calculations, and supplied documentation with Mistral Medium 3. Include the source text and ask for supporting excerpts wherever accuracy depends on that text.

Review a proposed code change

Ask Mistral Medium 3 to inspect a diff for logic errors and missing edge cases. Request a concrete failure example for each finding.

Draft tests from requirements

Give Mistral Medium 3 a function contract and ask for normal, boundary, and invalid-input tests with expected results.

Explain a technical calculation

Provide the formula, quantities, and units. Ask Mistral Medium 3 to explain the calculation and identify assumptions that need checking.

Answer questions from supplied documentation

Give Mistral Medium 3 relevant text and ask it to support each answer with a short source excerpt. Require it to identify unanswered questions.

Extract records from business text

Ask Mistral Medium 3 to turn support messages or meeting notes into JSON records. Define missing values and include a completed example.

Prepare multilingual support drafts

Ask Mistral Medium 3 to draft French, German, or Spanish replies from supplied policy text. Provide approved terminology and review the translation before sending.

Explain results returned by a tool

Pass a completed lookup result to Mistral Medium 3 and ask for a plain-English explanation that preserves the returned values and identifies missing information.

Questions about Mistral Medium 3 in Grok

Can Grok use Mistral Medium 3?

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

How much does Mistral Medium 3 cost in Grok?

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

Do I need an OpenRouter account to use Mistral Medium 3 in Grok?

No. Spiral runs Mistral Medium 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 Medium 3 in Grok?

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

Does Grok wait while Mistral Medium 3 runs?

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

What is Mistral Medium 3 good at?

Mistral identifies coding and STEM as particular strengths. Try it for reviewing a function, explaining a technical calculation, or drafting tests from a specification.

How much text can Mistral Medium 3 handle?

Its context window is 128k tokens. Input and output share that budget, so reserve space for the answer instead of filling the window with source material.

Can I trust an answer because it is valid JSON?

Check the contents against the source material. Mistral's guidance recommends evaluating generated answers for faithfulness to documents, even when the output has the requested structure.

How should I prompt Mistral Medium 3 for extraction?

State what to extract, define how to represent missing information, and include a completed example. For JSON output, explicitly request JSON and describe the required structure.

Which setting matters most for focused answers?

Start with a low temperature, such as 0.2, for extraction or code review. Higher values, such as 0.7, make output more random and can suit drafting alternatives.

Get started

Start using Mistral Medium 3 in Grok

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

Paste this into Grok:

Set up Grok

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