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

Grok Build · LLMReleased 2024-04-17

How to Use Mixtral 8x22B Instruct in Grok Build

Mixtral 8x22B Instruct suits coding, math, and document questions across five supported languages. Unlike Mixtral 8x22B Base, it is fine-tuned to follow instructions.

Prompts to try with Mixtral 8x22B Instruct in Grok Build

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

Use Mixtral 8x22B Instruct to review the current diff for missing null checks and boundary errors. Cite the affected functions, explain each suspected failure, and propose a focused regression test.

Mixtral 8x22B InstructGrok Build
Try asking
  • Use Mixtral 8x22B Instruct to trace the authentication flow through this project's files. Explain where credentials are checked, how failures propagate, and which conclusions need more evidence.

  • Use Mixtral 8x22B Instruct to draft tests for the project's percentage-change helper. Cover zero baselines, negative values, and rounding, and show the arithmetic behind each expected result.

  • Use Mixtral 8x22B Instruct to translate the project's English help text into French, German, Italian, and Spanish. Preserve interpolation tokens, product names, and existing key names.

  • Use Mixtral 8x22B Instruct to compare the README with the implementation. Report unsupported claims with file references, suggest corrected wording, and keep the answer under 800 words.

How to set up Mixtral 8x22B Instruct in Grok Build

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

Use Spiral's MCP server

  1. Add the server

    Add --scope project to add Spiral to the current repository only. No header and no client ID or secret: Grok registers itself with Spiral.

    grok mcp add --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start grok and run /mcps. Select Spiral and press i. Your browser opens: sign in to Spiral, pick the organization and click Authorize. No API key.

  3. Check it
    grok mcp doctor spiral

Use the Spiral skill

  1. Send Grok Build 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 Mixtral 8x22B Instruct

    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/mixtral-8x22b-instruct",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

Then paste one of the prompts above: Grok Build finds Mixtral 8x22B Instruct on Spiral, shows the price and runs it.

Mixtral 8x22B Instruct providers and prices

Spiral runs Mixtral 8x22B Instruct through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
Mistral: Mixtral 8x22B Instruct
mistralai/mixtral-8x22b-instruct

Settings you can ask for

Ask Grok Build for any of these in your prompt.

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

The most output tokens to generate.

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

Every API field of Mistral: Mixtral 8x22B Instruct is on its tool page: open its card above.

What can you do with Mixtral 8x22B Instruct in Grok Build?

Turn project code and documentation into explanations, test drafts, and answers about implementation details with Mixtral 8x22B Instruct. Give it the relevant files and a concrete deliverable, such as a patch proposal or a list of edge cases.

Explain unfamiliar code

Ask for a walkthrough of a function, its assumptions, and likely failure cases. Supply the surrounding code so the explanation has enough context.

Draft regression tests

Provide a bug report and the affected function, then request tests for the reported failure and nearby edge cases.

Answer questions about long documents

Supply policy or product documentation and ask for answers with supporting passages. Keep the text and requested answer within the 64K-token context budget.

Draft multilingual support replies

Use supplied product policies to draft replies in English, French, Italian, German, or Spanish. Specify the response language and preserve product names.

Extract records from text

Turn meeting notes or support messages into consistent records. Provide an example record and instructions for missing values.

Work through calculations

Ask for formulas, substitutions, units, and intermediate results when checking percentage changes or operational calculations.

Classify incoming requests

Define categories such as billing, access, and product questions, then supply labeled examples. Request a category and supporting excerpt for each message.

Questions about Mixtral 8x22B Instruct in Grok Build

Can Grok Build use Mixtral 8x22B Instruct?

Yes. Add Spiral to Grok Build as an MCP server, and Grok Build can find and run Mixtral 8x22B Instruct like any built-in tool.

How much does Mixtral 8x22B Instruct cost in Grok Build?

Up to $0.03204 per run at the default inputs. $2.60 per 1M input tokens, $7.80 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 Build plan is separate.

Do I need an OpenRouter account to use Mixtral 8x22B Instruct in Grok Build?

No. Spiral runs Mixtral 8x22B Instruct on its own OpenRouter account. You sign in to Spiral once and never paste a key.

How long does it take to set up Mixtral 8x22B Instruct in Grok Build?

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

Does Grok Build wait while Mixtral 8x22B Instruct runs?

Mixtral 8x22B Instruct runs in the background. Grok Build starts the run, checks on it and gives you the text, json when it's ready.

What is Mixtral 8x22B good at?

Coding, mathematics, multilingual text, and questions about long documents are documented strengths. Try it for code explanations, calculation walkthroughs, or extracting answers from supplied text.

Which languages does Mixtral 8x22B support?

Mistral names English, French, Italian, German, and Spanish. Specify the language you want in the answer, especially when your source text mixes languages.

How much text can Mixtral 8x22B handle?

Its context window is 64K tokens. Budget for the source text, conversation, and generated answer together; that window is not a promise of a 64K-token answer.

How does Mixtral 8x22B Instruct differ from Mixtral 8x22B Base?

Mixtral 8x22B Instruct is fine-tuned to follow instructions. Choose it for requests that specify a task, audience, or answer format.

How should I prompt Mixtral 8x22B?

State the task, supply the relevant text, and define the answer format. Include a worked example when you need consistent labels, extracted records, or a particular writing style.

Get started

Start using Mixtral 8x22B Instruct in Grok Build

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

Paste this into Grok Build:

Set up Grok Build

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