DeepSeek
Open-source reasoning models with strong math and coding capabilities.
Overview
DeepSeek is a Chinese AI company specializing in open-source large language models with excellent mathematical and coding capabilities at competitive pricing.
Official Website: https://www.deepseek.com API Documentation: https://api-docs.deepseek.com
Key Features
- Open-Source Reasoning — Visible thinking processes for complex problems
- High Cost Efficiency — Competitive pricing for high-volume applications
- Strong Math & Coding — Excellent at mathematical reasoning and code generation
- Function Calling — Tool use support
Usage Example
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.yuhuanstudio.com/v1"
)
response = client.chat.completions.create(
model="model-id",
messages=[
{"role": "user", "content": "Write a Python quicksort"}
]
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
apiKey: "YOUR_API_KEY",
baseURL: "https://api.yuhuanstudio.com/v1",
});
const response = await client.chat.completions.create({
model: "model-id",
messages: [{ role: "user", content: "Write a Python quicksort" }],
});
console.log(response.choices[0].message.content);curl https://api.yuhuanstudio.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "model-id",
"messages": [{"role": "user", "content": "Write a Python quicksort"}]
}'Reasoning Models
Some DeepSeek models expose the thinking process:
{
"choices": [{
"message": {
"role": "assistant",
"content": "The answer is 42",
"reasoning_content": "Let me think through this step by step..."
}
}]
}Available Models
Use the Models API to query available models:
curl https://api.yuhuanstudio.com/v1/models?provider=deepseek \
-H "Authorization: Bearer YOUR_API_KEY"Models and pricing are synced automatically from DeepSeek. Check the dashboard for current availability and rates.
Official Resources
How is this guide?