- Go to https://chat.deepseek.com and sign in
- Open DevTools (F12) → Network tab → reload → click any request to
chat.deepseek.com - Copy the values:
| Source | Env var | Required | How to get |
|---|---|---|---|
Full Cookie header |
DEEPSEEK_COOKIE |
✅ | DevTools → Network → Request Headers → copy the entire Cookie: ... line |
authorization header |
DEEPSEEK_AUTH_TOKEN |
✅ | DevTools → Network → Request Headers → copy the authorization: ... value |
The
authorizationvalue looks likeBearer eyJhbGciOiJIUzI1NiIs.... Copy the entire value. The server auto-prependsBearerif missing fromDEEPSEEK_AUTH_TOKEN.
Or use Cookie-Editor extension to export all cookies at once.
| Model | Description |
|---|---|---|
| deepseek-v3 | Default model without extended thinking |
| deepseek-r1 | Default model with extended thinking |
| deepseek-v4 | Default model without extended thinking |
| deepseek-r4 | Default model with extended thinking |
DeepSeek has no provider-specific endpoints. Only the common OpenAI-compatible endpoints (/models, /chat/completions).
Beyond the common fields:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
search_enabled |
bool | ❌ | false |
Enable web search with citations (not yet functional in SDK) |
| Field | Type | Description |
|---|---|---|
choices[].message.reasoning_content |
string | Extended thinking trace (for R1/R4 models) |
citation |
object | Web search citation data (when search is available) |
title |
string | Auto-generated conversation title |
# Basic chat
curl -s http://localhost:8000/v1/deepseek/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v3",
"messages": [{"role": "user", "content": "Hello!"}]
}'
# Reasoning model (returns reasoning_content)
curl -s http://localhost:8000/v1/deepseek/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-r1",
"messages": [{"role": "user", "content": "Solve 2+2"}]
}'
# Expert model
curl -s http://localhost:8000/v1/deepseek/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4-expert",
"messages": [{"role": "user", "content": "Explain quantum computing"}]
}'
# Streaming
curl -s -N http://localhost:8000/v1/deepseek/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v3",
"messages": [{"role": "user", "content": "Count to 5"}],
"stream": true
}'