Speed
Output tokens / second
Custom pricing for production workloads
DeepSeek Reasoner V3.1 excels in reasoning tasks with advanced chain-of-thought processing and the latest improvements in parameter activation.
deepseek/deepseek-r1https://api.aimlapi.com/v1What is DeepSeek Reasoner V3.1 API?
DeepSeek Reasoner V3.1 excels in reasoning tasks with advanced chain-of-thought processing and the latest improvements in parameter activation.
Where to Use DeepSeek Reasoner V3.1
Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.
Software development: DeepSeek-R1 is documented as suitable for generating code snippets, debugging existing code, code reviews, and architecture planning.
Mathematics and scientific reasoning: It is documented as useful for complex math problem-solving, scientific reasoning, and other step-by-step reasoning tasks.
Content creation and summarization: It is documented as suited to generating written content, editing, and summarizing existing material, including long-document analysis and summarization.
Customer support and assistant workflows: It is documented as usable for customer service chatbots and for agent/workflow automation that requires multi-step planning and tool orchestration.
See how DeepSeek Reasoner V3.1 compares in generation speed and latency. Data retrieved Nov 3, 2026.
Output tokens / second
Compare 7 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.529 | 1M tokens |
| Output | $2.27 | 1M tokens |
| Cached input | $0.529 | 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.529 | $2.27 | |
| $0.3 | $1.2 | |
| $0.3 | $1.2 | |
| $0.44 | $1.32 | |
| $0.39 | $1.56 |
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": "deepseek/deepseek-r1",
"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": "deepseek/deepseek-r1",
"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": "deepseek/deepseek-r1",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());DeepSeek Reasoner V3.1 has a 128,000 tokens context window and can return up to 64,000 tokens.
DeepSeek Reasoner V3.1 takes text as input and returns text.
Use deepseek/deepseek-r1 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
DeepSeek Reasoner V3.1 costs $0.529 input and $2.27 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Yes, DeepSeek Reasoner V3.1 can stream responses as they are generated.
DeepSeek Reasoner V3.1 was built by DeepSeek.
It is designed for reasoning-heavy tasks that benefit from chain-of-thought processing before generating a response.