We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

Mistral: Mixtral 8x22B Instruct

mistralai/mixtral-8x22b-instruct
TextInput: text · fileTools66KAdded Apr 17, 2024

Try Mistral: Mixtral 8x22B Instruct now

Runs on your balance at the prices above. New accounts start with free usage.

One API. Every model.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign in

Session cost $0.00

Mistral: Mixtral 8x22B Instruct at a glance

  • Input price is 344% higher than the median of 434 Text models.
  • Context window of 65,536 tokens, enough for long documents and multi-turn conversations.
  • Supports tool (function) calling for agents and integrations.
  • Supports structured JSON output with a schema.
  • A typical request (1,000 input / 500 output tokens) costs about $0.02.

About Mistral: Mixtral 8x22B Instruct

Mistral: Mixtral 8x22B Instruct is a text model from Mistral, released by the provider on 17 April 2024. It is the official instruct fine-tuned version of Mixtral 8x22B, a sparse mixture-of-experts design that uses 39B active parameters out of 141B. The instruct tuning adapts the base model for following directions and answering requests directly, which is what most application developers want when they call a model through an API.

The model takes text and file inputs and returns text. Its context window is 65,536 tokens, and the maximum output is 52,428 tokens, so long inputs and long generations are both possible within the same request. The knowledge cutoff is 31 January 2024, which means anything after that date is outside what the model was trained on. Mistral highlights strong math and coding as particular strengths of this model, alongside cost efficiency for its size.

Those capabilities point to a fairly wide set of practical uses. The long context suits working over large documents, whether that means summarizing a long report, extracting structured details from a file, or answering questions against a body of text supplied in the prompt. The math and coding strengths make it a reasonable fit for code assistance, such as explaining or generating code, and for quantitative tasks that need step-by-step reasoning. Because it accepts files as input, it can be used in pipelines where documents are passed in directly rather than pasted as plain text. Tool calling and structured outputs also make it suitable for agent-style workflows and for producing responses that downstream code can parse.

You call it through api14's OpenAI-compatible API using the model id "mistralai/mixtral-8x22b-instruct". The supported request parameters are frequency_penalty, max_tokens, presence_penalty, response_format, seed, stop, structured_outputs, temperature, tool_choice, tools and top_p. In practice that covers the usual sampling controls (temperature, top_p, penalties, seed, stop), output length via max_tokens, response shaping via response_format and structured_outputs, and function calling via tools and tool_choice. If you already have code written against the OpenAI chat completions shape, switching to this model is mostly a matter of changing the model id.

One thing to keep in mind is the knowledge cutoff of 31 January 2024, so questions about later events will not be answered from training data and may need retrieval or prompt-supplied context. The model is text-only on the output side, so tasks that require generating images or audio are out of scope. If your workload depends on very recent information or on modalities beyond text and file input, another model may fit better.

How to call the Mistral: Mixtral 8x22B Instruct API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "mistralai/mixtral-8x22b-instruct".
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api14.com/api/v1",
  apiKey: process.env.API14_API_KEY,
});

const result = await client.chat.completions.create({
  "model": "mistralai/mixtral-8x22b-instruct",
  "messages": [
    {
      "role": "user",
      "content": "Explain vector databases in two sentences."
    }
  ]
});
console.log(result.choices[0].message.content);

Supported parameters

frequency_penaltymax_tokenspresence_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_p

Specifications

Context length
65,536
Max output
52,428
Input
text, file
Output
text
Knowledge cutoff
2024-01-31

Requests on api14 · last 7 days

10-1610-1710-1810-1910-2010-2110-22

Mistral: Mixtral 8x22B Instruct: frequently asked questions

How much does the Mistral: Mixtral 8x22B Instruct API cost?
Mistral: Mixtral 8x22B Instruct costs Input $7.00 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of Mistral: Mixtral 8x22B Instruct?
Mistral: Mixtral 8x22B Instruct reads up to 65,536 tokens per request: prompt, history and documents together. It writes up to 52,428 output tokens per response.
What can Mistral: Mixtral 8x22B Instruct do?
Mistral: Mixtral 8x22B Instruct accepts text, file and returns text. It supports tool calling, structured JSON output.
How do I call Mistral: Mixtral 8x22B Instruct from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "mistralai/mixtral-8x22b-instruct". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to Mistral: Mixtral 8x22B Instruct?
Comparable Text models at a similar price: SpaceXAI: Grok 4.7, Sakana: Fugu Max, Qwen: Qwen3.8 Max (0902). Each runs through the same API key, so switching is one string.

Mistral: Mixtral 8x22B Instruct community

New topic

This community has no topics yet. Open the first one about Mistral: Mixtral 8x22B Instruct.