Skip to main content
POST

授权

Authorization
string
header
必填

在请求头中传入 Authorization: Bearer <token>

请求体

application/json
model
enum<string>
必填
可用选项:
MiniMax-M2.5-highspeed
messages
object[]
必填
temperature
number
默认值:0.7
必填范围: 0 <= x <= 1
top_p
number
默认值:0.95
必填范围: 0 <= x <= 1
max_tokens
integer
必填范围: 1 <= x <= 2048
stream
boolean
默认值:true
stop

响应

调用成功。非流式返回 OpenAI 兼容 JSON;流式返回 OpenAI 兼容 SSE 事件流。

id
string
object
string
created
integer
model
string
choices
object[]
usage
object