deepseek-chat (general conversation) and deepseek-reasoner (deep reasoning) models##All APIs require Bearer Token authentication##
Get API Key:
Visit API Key Management Page to get your API Key
Add to request header:
Authorization: Bearer YOUR_API_KEYChat model name
deepseek-chat: General conversation modeldeepseek-reasoner: Deep reasoning model, excels at math, coding and complex logical reasoningNote: deepseek-reasoner does not support temperature, top_p, tools, tool_choice, response_format parameters. Passing these will be rejected by upstream
deepseek-chat, deepseek-reasoner "deepseek-chat"
Conversation message list, supports multi-turn conversation
Different roles have different field structures, select the corresponding role to view
1Thinking mode control (Beta)
Details:
deepseek-reasoner modelFrequency penalty parameter to reduce repetitive content
Details:
-2 <= x <= 20
Maximum number of tokens to generate
Details:
x >= 14096
Presence penalty parameter to encourage new topics
Details:
-2 <= x <= 20
Specify response format
Details:
{"type": "json_object"} to enable JSON modeStop sequences. The model will stop generating when encountering these strings
Details:
Whether to stream the response
true: Stream via SSE (Server-Sent Events), returning content in real-time chunksfalse: Wait for the complete response before returningfalse
Streaming response options
Only effective when stream=true
Sampling temperature, controls output randomness
Details:
0 <= x <= 21
Nucleus Sampling parameter
Details:
Tip: Avoid adjusting both temperature and top_p simultaneously
0 <= x <= 11
Tool definition list for Function Calling
Details:
128Controls tool calling behavior
Options:
none: Do not call any toolsauto: Model decides whether to call toolsrequired: Force the model to call one or more toolsDefault: none when no tools provided, auto when tools are provided
none, auto, required Whether to return token log probabilities
Details:
true, the response will include log probability information for each tokenReturn log probabilities of the top N most likely tokens
Details:
logprobs to be set to true[0, 20]0 <= x <= 20Chat completion generated successfully
Unique identifier for the chat completion
"930c60df-bf64-41c9-a88e-3ec75f81e00e"
Actual model name used
"deepseek-chat"
Response type
chat.completion "chat.completion"
Creation timestamp
1770617860
List of chat completion choices
Token usage statistics
System fingerprint identifier
"fp_eaab8d114b_prod0820_fp8_kvcache"