Ministral 8B

API ID: mistralai/ministral-8b

Input Price
$0.10
/1M tokens
Output Price
$0.10
/1M tokens

About Ministral 8B

Ministral 8B is an 8B parameter model featuring a unique interleaved sliding-window attention pattern for faster, memory-efficient inference. Designed for edge use cases, it supports up to 128k context length and excels in knowledge and reasoning tasks. It outperforms peers in the sub-10B category, making it perfect for low-latency, privacy-first applications.

๐Ÿ’ฐ
Price Ranking
#638 lowest price among 1240 Chat models

Model Specifications

Context Length
128k
Max Output
โ€”
Release Date
2024-10-17
Capabilities
chat
Input Modalities
text
Output Modalities
text

Best For

  • Conversations, content writing, general assistance

Consider Alternatives For

  • Image understanding (needs vision capability)

๐Ÿ’ฐ Real-World Cost Examples

Estimated monthly costs for common use cases

Personal AI Assistant
$0.07
/month
50 conversations/day, ~500 tokens each
Customer Service Bot
$2.40
/month
1000 tickets/day, ~800 tokens each

Mistral Model Lineup

Compare all models from Mistral to find the best fit

Model Input Output Context Capabilities
Ministral 8B Current Free Free 128k chat
Pixtral 12B Free Free 4k chat vision
Mistral 7B Instruct v0.3 Free Free 33k chat
Mistral 7B Instruct Free Free 33k chat
Mixtral 8x22B (base) Free Free 66k chat
Mixtral 8x22B (base) Free Free 66k chat

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

Zhipu Ai GLM 4 32B
Input: $0.10
Output: $0.10
Context: 33k
Microsoft Phi 4
Input: $0.06
Output: $0.14
Context: 16k
Google Gemma 3 12B
Input: $0.05
Output: $0.15
Context: 131k
Rekaai Reka Edge
Input: $0.10
Output: $0.10
Context: 16k

๐Ÿš€ Quick Start

Get started with Ministral 8B API

OpenAI-compatible SDK
from openai import OpenAI

client = OpenAI(
    base_url="https://api.provider.com/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="mistralai/ministral-8b",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)
print(response.choices[0].message.content)