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

Factory Droid · LLMReleased 2025-08-13

How to Use Mistral Medium 3.1 in Factory Droid

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 Factory Droid

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

Use Mistral Medium 3.1 to review the current diff against the project's requirements. Report concrete correctness problems with file references, a failing example, and a proposed fix; separate confirmed problems from suspicions.

Mistral Medium 3.1Factory Droid
Try asking
  • Use Mistral Medium 3.1 to inspect the failing test and the code it exercises. Explain the likely cause, propose the smallest patch, and add a regression test that fails before the patch.

  • Use Mistral Medium 3.1 to compare the API implementation with the specification in this repository. Return JSON containing discrepancies, supporting file references, and suggested tests. Use temperature 0.2.

  • Use Mistral Medium 3.1 to review this project's calculation code for unit conversions and boundary conditions. Show a worked example for each suspected error and add tests for the confirmed cases.

  • Use Mistral Medium 3.1 to draft French and German versions of the customer-facing strings in this project. Follow the existing glossary, preserve interpolation tokens, and flag ambiguous source text for review.

How to set up Mistral Medium 3.1 in Factory Droid

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

Use Spiral's MCP server

  1. Add the server

    Droid saves it to your user config, ~/.factory/mcp.json, so it works in every project.

    droid mcp add spiral https://api.spiral.ai/mcp --type http
  2. Sign in

    Start droid, type /mcp, select spiral and authenticate it. Sign in to Spiral in the browser and click Authorize. No API key.

  3. Check it

    Spiral shows as connected. needs authentication means the sign-in did not finish: run /mcp again.

    droid mcp list

Use the Spiral skill

  1. Send Factory Droid 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: Factory Droid 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 Factory Droid 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 Factory Droid?

Turn project code and technical requirements into review findings, proposed fixes, and regression tests with Mistral Medium 3.1. Give it the relevant files and expected behavior, then ask for a small change with evidence you can check.

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 Factory Droid

Can Factory Droid use Mistral Medium 3.1?

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

How much does Mistral Medium 3.1 cost in Factory Droid?

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

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

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 Factory Droid?

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

Does Factory Droid wait while Mistral Medium 3.1 runs?

Mistral Medium 3.1 runs in the background. Factory Droid 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 Factory Droid

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

Paste this into Factory Droid:

Set up Factory Droid

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