---
title: Mistral: Mixtral 8x7B Instruct | Text Generation | ModelsLab
description: High-performance LLM with 7B parameters, offering efficient text generation and conversation capabilities, ideal for real-time applications.
url: https://modelslab.com/models/mistralai/mistralai-mixtral-8x7b-instruct/api.md
canonical: https://modelslab.com/models/mistralai/mistralai-mixtral-8x7b-instruct/api.md
type: product
component: Playground/LLM/Index
generated_at: 2026-04-25T20:15:13.942629Z
---

Mistral: Mixtral 8x7B Instruct
---

 [LLMs.txt](https://modelslab.com/models/open_router/mistralai-mixtral-8x7b-instruct/llms.txt) [.md](https://modelslab.com/models/mistralai/mistralai-mixtral-8x7b-instruct.md)

mistralai-mixtral-8x7b-instruct mistralai Closed Source Model $0.540000 / call

Mistral: Mixtral 8x7B Instruct
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### Mistral: Mixtral 8x7B Instruct

mistralai mistralai-mixtral-8x7b-instruct

Copy model ID

PricingInput $0.54 / 1M tokens

Output $0.54 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[Q1](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-14B)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen2.5 14B

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-14B)

[ML](https://modelslab.com/models/together_ai/togethercomputer-meta-llama-3.1-8B-Instruct-AWQ-INT4)[Together AI](https://modelslab.com/models/together_ai)

 [Meta Llama 3.1 8B Instruct Awq Int4

Closed Source Model](https://modelslab.com/models/together_ai/togethercomputer-meta-llama-3.1-8B-Instruct-AWQ-INT4)

[Q7](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-7B-Instruct)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen2.5 7B Instruct

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-7B-Instruct)

[G2](https://modelslab.com/models/together_ai/google-gemma-2-27b-it)[Together AI](https://modelslab.com/models/together_ai)

 [Gemma-2 Instruct (27B)

Closed Source Model](https://modelslab.com/models/together_ai/google-gemma-2-27b-it)

[ML](https://modelslab.com/models/open_router/meta-llama-llama-4-maverick)[Open Router](https://modelslab.com/models/open_router)

 [Meta: Llama 4 Maverick

Closed Source Model](https://modelslab.com/models/open_router/meta-llama-llama-4-maverick)

[R1](https://modelslab.com/models/perplexity_ai/perplexity-ai-r1-1776)[ModelsLab](https://modelslab.com/models/perplexity_ai)

 [R1 1776

Closed Source Model](https://modelslab.com/models/perplexity_ai/perplexity-ai-r1-1776)

[AA](https://modelslab.com/models/open_router/aion-labs-aion-rp-llama-3.1-8b)[Open Router](https://modelslab.com/models/open_router)

 [AionLabs: Aion-RP 1.0 (8B)

Closed Source Model](https://modelslab.com/models/open_router/aion-labs-aion-rp-llama-3.1-8b)

[L4](https://modelslab.com/models/meta/meta-llama-Llama-4-Scout-17B-16E-Instruct)[ModelsLab](https://modelslab.com/models/meta)

 [Llama 4 Scout Instruct (17Bx16E)

Closed Source Model](https://modelslab.com/models/meta/meta-llama-Llama-4-Scout-17B-16E-Instruct)

[IL](https://modelslab.com/models/open_router/inclusionai-ling-2.6-flash-free)[Open Router](https://modelslab.com/models/open_router)

 [inclusionAI: Ling-2.6-flash (free)

Closed Source Model](https://modelslab.com/models/open_router/inclusionai-ling-2.6-flash-free)

[L4](https://modelslab.com/models/meta/meta-llama-Llama-4-Maverick-17B-128E-Instruct-FP8)[ModelsLab](https://modelslab.com/models/meta)

 [Llama 4 Maverick Instruct (17Bx128E)

Closed Source Model](https://modelslab.com/models/meta/meta-llama-Llama-4-Maverick-17B-128E-Instruct-FP8)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-next-80b-a3b-thinking)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 Next 80B A3B Thinking

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-next-80b-a3b-thinking)

[OG](https://modelslab.com/models/open_router/openai-gpt-4o-2024-08-06)[Open Router](https://modelslab.com/models/open_router)

 [OpenAI: GPT-4o (2024-08-06)

Closed Source Model](https://modelslab.com/models/open_router/openai-gpt-4o-2024-08-06)

[QQ](https://modelslab.com/models/alibaba_cloud/qwen-qwen3.5-27b)[Alibaba](https://modelslab.com/models/alibaba_cloud)

 [Qwen: Qwen3.5-27B

Closed Source Model](https://modelslab.com/models/alibaba_cloud/qwen-qwen3.5-27b)

[QV](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-VL-72B-Instruct)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen2.5-VL (72B) Instruct

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-VL-72B-Instruct)

[NN](https://modelslab.com/models/together_ai/nvidia-NVIDIA-Nemotron-3-Super-120B-A12B-BF16)[Together AI](https://modelslab.com/models/together_ai)

 [Nvidia Nemotron 3 Super 120B A12b Bf16

Closed Source Model](https://modelslab.com/models/together_ai/nvidia-NVIDIA-Nemotron-3-Super-120B-A12B-BF16)

[PS](https://modelslab.com/models/open_router/perplexity-sonar)[Open Router](https://modelslab.com/models/open_router)

 [Perplexity: Sonar

Closed Source Model](https://modelslab.com/models/open_router/perplexity-sonar)

[LL](https://modelslab.com/models/open_router/liquid-lfm-2-24b-a2b)[Open Router](https://modelslab.com/models/open_router)

 [LiquidAI: LFM2-24B-A2B

Closed Source Model](https://modelslab.com/models/open_router/liquid-lfm-2-24b-a2b)

[G4](https://modelslab.com/models/together_ai/zai-org-GLM-4.7)[Together AI](https://modelslab.com/models/together_ai)

 [GLM 4.7 Fp8

Closed Source Model](https://modelslab.com/models/together_ai/zai-org-GLM-4.7)

About Mistral: Mixtral 8x7B Instruct
---

Mixtral 8x7B Instruct is a pretrained generative Sparse Mixture of Experts, by Mistral AI, for chat and instruction use. Incorporates 8 experts (feed-forward networks) for a total of 47 billion...

### Technical Specifications

Model IDmistralai-mixtral-8x7b-instructCategoryLLM ModelsTaskText GenerationPrice$0.540000 per million tokensAddedJuly 22, 2025

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate Mistral: Mixtral 8x7B Instruct into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "mistralai-mixtral-8x7b-instruct",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

View the [full API documentation](https://modelslab.com/models/mistralai/mistralai-mixtral-8x7b-instruct/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

Mistral: Mixtral 8x7B Instruct API costs $0.540000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Learn more about Mistral: Mixtral 8x7B Instruct](https://modelslab.com/mistral-mixtral-8x7b-instruct) [Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Mistralai](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

Mistral: Mixtral 8x7B Instruct FAQ
---

### What is Mistral: Mixtral 8x7B Instruct?

Mixtral 8x7B Instruct is a pretrained generative Sparse Mixture of Experts, by Mistral AI, for chat and instruction use. Incorporates 8 experts (feed-forward networks) for a total of 47 billion...

### How do I use the Mistral: Mixtral 8x7B Instruct API?

You can integrate Mistral: Mixtral 8x7B Instruct into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "mistralai-mixtral-8x7b-instruct" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Mistral: Mixtral 8x7B Instruct cost?

Mistral: Mixtral 8x7B Instruct costs $0.540000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the Mistral: Mixtral 8x7B Instruct model ID?

The model ID for Mistral: Mixtral 8x7B Instruct is "mistralai-mixtral-8x7b-instruct". Use this ID in your API requests to specify this model.

### Does Mistral: Mixtral 8x7B Instruct have a free tier?

Yes, ModelsLab offers a free tier that lets you try Mistral: Mixtral 8x7B Instruct and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-04-26*