Skip to main content
POST
Chat completions
在调试面板里填入你的令牌即可发送真实请求,按正常调用计费。

授权

Authorization
string
header
必填

请求体

application/json
model
string
必填

Model ID. See the models page.

示例:

"deepseek-v4-flash"

messages
object[]
必填
示例:
stream
boolean
默认值:false

Return server-sent events.

temperature
number
必填范围: 0 <= x <= 2
max_tokens
integer
tools
object[]

OpenAI-style function tools.

response_format
object

e.g. {"type": "json_object"}

响应

Completion

id
string
model
string
choices
object[]
usage
object