models
DeepSeek Chat
DeepSeek Chat — cost-effective MoE model for general-purpose reasoning and coding.
DeepSeek Chat (V3) is a general-purpose Mixture-of-Experts model from DeepSeek, pre-trained on nearly 15 trillion tokens. It delivers strong performance across reasoning, math, and code generation tasks at a fraction of the cost of comparable frontier models.
Quick Reference
| Property | Value |
|---|---|
| Model ID | deepseek/deepseek-chat |
| Context window | 128,000 tokens |
| Max output | 8,192 tokens |
| Streaming | ✓ |
| Function calling | ✓ |
| Structured output | ✓ |
| Batch API | ✓ |
Pricing
| Type | Price |
|---|---|
| Input | $0.04 / 1M tokens / 1M tokens |
| Output | $0.06 / 1M tokens / 1M tokens |
Strengths
- Cost-effective — Frontier-level performance at competitive pricing
- Reasoning — Strong analytical and logical capabilities
- Math — Solid mathematical problem solving
- Coding — Reliable code generation for common tasks
Example
from openai import OpenAI
client = OpenAI(
base_url="https://api.atrouter.cn/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="deepseek/deepseek-chat",
messages=[
{"role": "user", "content": "Write a Python function to find the longest common subsequence of two strings."}
],
temperature=0.3
)
print(response.choices[0].message.content)Related
- DeepSeek V4 Pro — Latest flagship model
- DeepSeek Reasoner — Specialized reasoning model
- Model Overview — All available models