---
title: Mistral (7B) Instruct API | Text Generation | ModelsLab
description: Open-source, 7B parameter instruct-tuned LLM with grouped-query and sliding-window attention for fast, efficient chat, coding, and reasoning—ideal for.
url: https://modelslab.com/models/mistral_ai/mistralai-Mistral-7B-Instruct-v0.1/api.md
canonical: https://modelslab.com/models/mistral_ai/mistralai-Mistral-7B-Instruct-v0.1/api.md
type: product
component: Playground/LLM/Index
generated_at: 2026-04-15T02:08:13.010081Z
---

Mistral (7B) Instruct
---

 [LLMs.txt](https://modelslab.com/models/mistral_ai/mistralai-Mistral-7B-Instruct-v0.1/llms.txt) [.md](https://modelslab.com/models/mistral_ai/mistralai-Mistral-7B-Instruct-v0.1.md)

mistralai-Mistral-7B-Instruct-v0.1 mistral\_ai Closed Source Model $0.200000 / call

Mistral (7B) 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 (7B) Instruct

mistral\_ai mistralai-Mistral-7B-Instruct-v0.1

Copy model ID

PricingInput $0.20 / 1M tokens

Output $0.20 / 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)

[G3](https://modelslab.com/models/google_deepmind/google-gemma-3n-E4B-it)[ModelsLab](https://modelslab.com/models/google_deepmind)

 [Gemma 3N E4B Instruct

Closed Source Model](https://modelslab.com/models/google_deepmind/google-gemma-3n-E4B-it)

[Q1](https://modelslab.com/models/together_ai/Qwen-Qwen3-1.7B-Base)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen3 1.7B Base

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen3-1.7B-Base)

[AA](https://modelslab.com/models/together_ai/arize-ai-qwen-2-1.5b-instruct)[Together AI](https://modelslab.com/models/together_ai)

 [Arize AI Qwen 2 1.5B Instruct

Closed Source Model](https://modelslab.com/models/together_ai/arize-ai-qwen-2-1.5b-instruct)

[ML](https://modelslab.com/models/meta/meta-llama-Meta-Llama-3.1-70B-Instruct-Turbo)[ModelsLab](https://modelslab.com/models/meta)

 [Meta Llama 3.1 70B Instruct Turbo

Closed Source Model](https://modelslab.com/models/meta/meta-llama-Meta-Llama-3.1-70B-Instruct-Turbo)

[MM](https://modelslab.com/models/together_ai/MiniMaxAI-MiniMax-M2.7)[Together AI](https://modelslab.com/models/together_ai)

 [MiniMax M2.7 FP4

Closed Source Model](https://modelslab.com/models/together_ai/MiniMaxAI-MiniMax-M2.7)

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

 [Qwen2.5 32B

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

[QQ](https://modelslab.com/models/open_router/qwen-qwen-turbo)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen-Turbo

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen-turbo)

[KK](https://modelslab.com/models/open_router/kwaipilot-kat-coder-pro-v2)[Open Router](https://modelslab.com/models/open_router)

 [Kwaipilot: KAT-Coder-Pro V2

Closed Source Model](https://modelslab.com/models/open_router/kwaipilot-kat-coder-pro-v2)

[MM](https://modelslab.com/models/open_router/mistralai-mixtral-8x22b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [Mistral: Mixtral 8x22B Instruct

Closed Source Model](https://modelslab.com/models/open_router/mistralai-mixtral-8x22b-instruct)

[NN](https://modelslab.com/models/together_ai/nvidia-NVIDIA-Nemotron-3-Nano-30B-A3B-BF16)[Together AI](https://modelslab.com/models/together_ai)

 [Nvidia Nemotron 3 Nano 30B A3b Bf16

Closed Source Model](https://modelslab.com/models/together_ai/nvidia-NVIDIA-Nemotron-3-Nano-30B-A3B-BF16)

[NA](https://modelslab.com/models/open_router/nex-agi-deepseek-v3.1-nex-n1)[Open Router](https://modelslab.com/models/open_router)

 [Nex AGI: DeepSeek V3.1 Nex N1

Closed Source Model](https://modelslab.com/models/open_router/nex-agi-deepseek-v3.1-nex-n1)

[ML](https://modelslab.com/models/open_router/meta-llama-llama-3.1-70b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [Meta: Llama 3.1 70B Instruct

Closed Source Model](https://modelslab.com/models/open_router/meta-llama-llama-3.1-70b-instruct)

[M8](https://modelslab.com/models/marin/marin-community-marin-8b-instruct)[ModelsLab](https://modelslab.com/models/marin)

 [Marin 8B Instruct

Closed Source Model](https://modelslab.com/models/marin/marin-community-marin-8b-instruct)

[DR](https://modelslab.com/models/deepseek/deepseek-ai-DeepSeek-R1-Distill-Qwen-1.5B)[ModelsLab](https://modelslab.com/models/deepseek)

 [DeepSeek R1 Distill Qwen 1.5B

Closed Source Model](https://modelslab.com/models/deepseek/deepseek-ai-DeepSeek-R1-Distill-Qwen-1.5B)

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

 [Qwen: Qwen3 VL 30B A3B Thinking

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

[BE](https://modelslab.com/models/open_router/baidu-ernie-4.5-21b-a3b-thinking)[Open Router](https://modelslab.com/models/open_router)

 [Baidu: ERNIE 4.5 21B A3B Thinking

Closed Source Model](https://modelslab.com/models/open_router/baidu-ernie-4.5-21b-a3b-thinking)

[![Seed 1.8](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/4c050f2a-27fd-40d1-9b1e-7bfc9557709f.webp)](https://modelslab.com/models/byteplus/seed-1.8)[Bytedance](https://modelslab.com/models/byteplus)

 [Seed 1.8

Closed Source Model](https://modelslab.com/models/byteplus/seed-1.8)

[AC](https://modelslab.com/models/open_router/anthropic-claude-3-haiku)[Open Router](https://modelslab.com/models/open_router)

 [Anthropic: Claude 3 Haiku

Closed Source Model](https://modelslab.com/models/open_router/anthropic-claude-3-haiku)

About Mistral (7B) Instruct
---

Open-source, 7B parameter instruct-tuned LLM with grouped-query and sliding-window attention for fast, efficient chat, coding, and reasoning—ideal for real-time apps, easy fine-tuning, and outperforms larger models.

### Technical Specifications

Model IDmistralai-Mistral-7B-Instruct-v0.1CategoryLLM ModelsTaskText GenerationPrice$0.200000 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 (7B) 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-Mistral-7B-Instruct-v0.1",
        "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/mistral_ai/mistralai-Mistral-7B-Instruct-v0.1/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

Mistral (7B) Instruct API costs $0.200000 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 (7B) Instruct](https://modelslab.com/mistral-7b-instruct) [Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Mistral Ai](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

Mistral (7B) Instruct FAQ
---

### What is Mistral (7B) Instruct?

Open-source, 7B parameter instruct-tuned LLM with grouped-query and sliding-window attention for fast, efficient chat, coding, and reasoning—ideal for real-time apps, easy fine-tuning, and outperforms larger models.

### How do I use the Mistral (7B) Instruct API?

You can integrate Mistral (7B) Instruct into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "mistralai-Mistral-7B-Instruct-v0.1" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Mistral (7B) Instruct cost?

Mistral (7B) Instruct costs $0.200000 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 (7B) Instruct model ID?

The model ID for Mistral (7B) Instruct is "mistralai-Mistral-7B-Instruct-v0.1". Use this ID in your API requests to specify this model.

### Does Mistral (7B) Instruct have a free tier?

Yes, ModelsLab offers a free tier that lets you try Mistral (7B) 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-15*