R1
DeepSeekReleased Jan 20, 2025
DeepSeek R1 is here: Performance on par with [OpenAI o1](/openai/o1), but open-sourced and with fully open reasoning tokens. It's 671B parameters in size, with 37B active in an inference pass....
- Context window
- 164K tokens
- Max output
- 16K tokens
- Input
- text
- Output
- text
- Tokenizer
- DeepSeek
- Knowledge cutoff
- Jul 31, 2024
- Released
- Jan 20, 2025
- Reasoning
- always on
Pricing
Per 1M tokens. The provider price and our flat 3% fee are separate columns — what you pay is their sum.
| Per 1M tokens | Provider | + 3% fee | You pay |
|---|---|---|---|
| Input | $0.700 | $0.021 | $0.721 |
| Output | $2.50 | $0.075 | $2.58 |
Benchmarks
Artificial Analysis
- Intelligence index
- 18.5
- Coding index
- 24.6
- Agentic index
- 3.1
Supported parameters
- frequency_penalty
- include_reasoning
- max_completion_tokens
- max_tokens
- presence_penalty
- reasoning
- repetition_penalty
- response_format
- seed
- stop
- structured_outputs
- temperature
- tool_choice
- tools
- top_k
- top_p
Call it
OpenAI-compatible: point your SDK at api.openkey.ai/v1 and use model deepseek/deepseek-r1.
curl https://api.openkey.ai/v1/chat/completions \
-H "Authorization: Bearer $OPENKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek/deepseek-r1",
"messages": [{"role": "user", "content": "Hello"}]
}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.openkey.ai/v1",
api_key=os.environ["OPENKEY_API_KEY"],
)
completion = client.chat.completions.create(
model="deepseek/deepseek-r1",
messages=[{"role": "user", "content": "Hello"}],
)
print(completion.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.openkey.ai/v1",
apiKey: process.env.OPENKEY_API_KEY,
});
const completion = await client.chat.completions.create({
model: "deepseek/deepseek-r1",
messages: [{ role: "user", content: "Hello" }],
});
console.log(completion.choices[0].message.content);Questions
- How much does R1 cost via API?
- Through OpenKey, R1 costs $0.721 per 1M input tokens and $2.58 per 1M output tokens. That is the provider price ($0.700 / $2.50) plus a flat 3% fee — nothing else.
- What is R1's context window?
- R1 accepts up to 164K tokens of context and returns up to 16K tokens per request.
- Is R1 OpenAI-compatible?
- Yes. Send requests to OpenKey's /v1/chat/completions endpoint with model "deepseek/deepseek-r1" using any OpenAI SDK — only the base URL and API key change.
- What inputs does R1 support?
- R1 accepts text input and produces text output. Its knowledge cutoff is Jul 31, 2024.
More from DeepSeek
All DeepSeek models →DeepSeek V4 Flash
DeepSeek V4 Flash is an efficiency-optimized Mixture-of-Experts model from DeepSeek with 284B total parameters and 13B activated parameters, supporting a 1M-token context window. It is designed for fast inference and...
ctx 1.0Min $0.093out $0.185
DeepSeek V4 Pro
DeepSeek V4 Pro is a large-scale Mixture-of-Experts model from DeepSeek with 1.6T total parameters and 49B activated parameters, supporting a 1M-token context window. It is designed for advanced reasoning, coding,...
ctx 1.0Min $0.448out $0.896
DeepSeek V3.2
DeepSeek-V3.2 is a large language model designed to harmonize high computational efficiency with strong reasoning and agentic tool-use performance. It introduces DeepSeek Sparse Attention (DSA), a fine-grained sparse attention mechanism...
ctx 131Kin $0.236out $0.353
DeepSeek V3.2 Exp
DeepSeek-V3.2-Exp is an experimental large language model released by DeepSeek as an intermediate step between V3.1 and future architectures. It introduces DeepSeek Sparse Attention (DSA), a fine-grained sparse attention mechanism...
ctx 164Kin $0.278out $0.422