Skip to main content
POST
/
v1
/
chat
/
completions
对话补全
curl --request POST \
  --url https://aiapi.xiaoliu.fun/v1/chat/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "messages": [
    {
      "role": "<string>",
      "content": "<string>"
    }
  ],
  "style": "openai",
  "stream": true
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required

模型名称

messages
object[]
required
style
enum<string>
default:openai

接口风格,支持 OpenAI、Claude、Gemini

Available options:
openai,
claude,
gemini
stream
boolean

是否流式

Response

200

成功响应 (流式)