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

Gemini · LLMReleased 2025-08-13

How to Use Mistral Medium 3.1 in Gemini

Mistral Medium 3.1 suits coding, document questions, and structured extraction. It updates Mistral Medium 3 with improvements to tone and performance.

Prompts to try with Mistral Medium 3.1 in Gemini

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

Use Mistral Medium 3.1 to compare the two specification texts supplied in this conversation. Make a table of changed requirements, contradictions, and unanswered questions, with a supporting excerpt for each finding.

Mistral Medium 3.1Gemini
Try asking
  • Use Mistral Medium 3.1 to turn the order email supplied here into a JSON object containing the customer name, order reference, requested items, and delivery date. Use null for missing information and choose low randomness.

  • Use Mistral Medium 3.1 to explain the engineering problem supplied here to a new graduate. State the assumptions and units, work through the calculation, and identify steps I should verify with a calculator.

  • Use Mistral Medium 3.1 to translate the customer message supplied here into French, German, and Spanish. Preserve product names and numbers, follow the supplied glossary, and flag wording that has more than one interpretation.

  • Use Mistral Medium 3.1 to draft three replies to the customer question supplied here using only the accompanying policy text. Make one direct, one reassuring, and one formal; include the policy passage supporting each reply.

How to set up Mistral Medium 3.1 in Gemini

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

Use the Gemini connector

  1. Open Connected Apps

    On your computer, go to gemini.google.com. At the bottom, click Settings › Connected Apps. If you don't see Connected Apps, click Personal Intelligence first, then Connected Apps.

  2. Add Spiral as a custom app

    Under Custom apps, click Add a custom app and paste this MCP server URL:

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

    Follow the on-screen instructions. Spiral opens: sign in, pick the organization and click Authorize. No API key.

Use the Spiral skill

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

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

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

Mistral Medium 3.1 providers and prices

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

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

Settings you can ask for

Ask Gemini 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.1 is on its tool page: open its card above.

What can you do with Mistral Medium 3.1 in Gemini?

Turn supplied technical material into explanations, document answers, and multilingual drafts with Mistral Medium 3.1. State the audience and desired format, and ask for supporting passages when the answer depends on a document.

Review a code change

Give Mistral Medium 3.1 a diff and the intended behavior. Ask for concrete failure cases, a suggested correction, and tests that would expose the problem.

Turn a bug report into regression tests

Supply the failing behavior and relevant code. Request tests for the reported failure, boundary conditions, and the expected result after a fix.

Answer questions about technical documents

Provide the document text and ask targeted questions about requirements, exceptions, or dependencies. Request a supporting passage for each answer and an explicit acknowledgment of missing evidence.

Extract records from business text

Convert supplied order emails, service requests, or meeting notes into structured records. Define the required structure and use null for information the source does not contain.

Localize customer communications

Draft French, German, Spanish, or Italian versions of supplied customer messages. Provide a terminology guide and ask to preserve product names, numbers, and commitments.

Prepare support reply drafts

Combine a customer's message with the relevant policy text to draft a response. Ask for the supporting policy passage and flag questions the supplied information cannot answer.

Explain a technical calculation

Supply the problem, assumptions, and units. Request a proposed solution, intermediate calculations, and checks that a person or calculator can verify.

Compare requirements across documents

Provide two specification texts and ask for changed requirements, conflicts, and unanswered questions. Request short supporting excerpts so a reviewer can check each finding.

Questions about Mistral Medium 3.1 in Gemini

Can Gemini use Mistral Medium 3.1?

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

How much does Mistral Medium 3.1 cost in Gemini?

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 Gemini plan is separate.

Do I need an OpenRouter account to use Mistral Medium 3.1 in Gemini?

No. Spiral runs Mistral Medium 3.1 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.1 in Gemini?

About two minutes: open Connected Apps, then add Spiral as a custom app, then sign in to Spiral and approve.

Does Gemini wait while Mistral Medium 3.1 runs?

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

What is Mistral Medium 3.1 good at?

Coding and STEM reasoning are documented strengths. Practical tasks include reviewing code, explaining technical problems, and extracting structured information from supplied text.

How much text can Mistral Medium 3.1 handle?

Its context window is 131,072 tokens, commonly labeled 128k. Input and generated output share that space, so leave room for the answer when supplying long documents.

Can I rely on Mistral Medium 3.1 to return the exact JSON structure I need?

JSON mode ensures valid JSON but does not guarantee your required structure. Specify the expected format, prefer schema-constrained output when available, and validate the result before using it.

Can Mistral Medium 3.1 work in languages besides English?

Yes. Mistral's language documentation lists French, German, Spanish, Portuguese, Italian, Dutch, Polish, and Czech, among others; test your terminology and tone with representative examples.

Which temperature should I use for Mistral Medium 3.1?

Start around 0.2 for extraction and focused technical answers. Try around 0.7 when you want more variation in drafts; these are starting points from Mistral's general guidance.

Get started

Start using Mistral Medium 3.1 in Gemini

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

Paste this into Gemini:

Set up Gemini

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