Intelligence
Index v5.0
Custom pricing for production workloads
Small 4 on AIMLAPI.
mistralai/mistral-small-2603https://api.aimlapi.com/v1Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.
Agentic and multi-step workflows
Reliable tool-calling and instruction-following suit agent loops that plan, call tools, and iterate.
Complex reasoning
Extended reasoning improves reliability on multi-step math, logic, and technical analysis.
Long-document analysis
Summarize and extract from contracts, papers, and reports without aggressive chunking.
General chat assistant: Mistral Small 4 is documented as suited to general chat assistant use cases, and the provider material also describes it as intended for enterprises seeking general chat assistants.
Document parsing and extraction: It is documented as suitable for document understanding, document parsing and extraction, and data extraction from documents and images.
Coding agent: The model is documented as suited to coding tasks, coding agent workflows, and SWE automation or codebase exploration.
Research assistant: It is documented as suited to research tasks, including math and research use cases for researchers.
See how Small 4 compares in intelligence, generation speed, cost per task and latency. Data retrieved Nov 3, 2026.
Compare 16 models available on AI/ML API across 5 independent benchmarks.
Expert-written questions across academic subjects.
Graduate-level science questions written to resist web search.
Agentic tasks completed in a command-line environment.
Reasoning across long documents of about 100k tokens.
Python coding tasks drawn from scientific research.
| Usage | Price | Unit |
|---|---|---|
| Input | $0.1984 | 1M tokens |
| Output | $0.7935 | 1M tokens |
| Cached input | $0.0159 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $0.1984 | $0.7935 | |
| $0.2116 | $0.7935 | |
| $0.4655 | $2.33 | |
| $1.36 | $4.18 | |
| $1.59 | $7.93 |
Give your agent the model details, code and documentation.
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "mistralai/mistral-small-2603",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "mistralai/mistral-small-2603",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "mistralai/mistral-small-2603",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Small 4 has a 262,144 tokens context window.
Small 4 takes image, text as input and returns text.
Use mistralai/mistral-small-2603 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
Small 4 costs $0.1984 input and $0.7935 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Yes, Small 4 can stream responses as they are generated.
Yes, Small 4 accepts image input alongside text.
Small 4 was built by Mistral AI.
Yes, Small 4 supports function calling, parallel tool calls, and structured outputs.