API 端点
对话补全
POST /v1/chat/completions
POST
对话补全
Documentation Index
Fetch the complete documentation index at: https://docs.seeoneapi.com/llms.txt
Use this file to discover all available pages before exploring further.
请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | string | 是 | 模型 ID,如 claude-sonnet-4-20250514 |
messages | array | 是 | 消息数组 |
max_tokens | integer | 否 | 最大输出 Token 数 |
temperature | number | 否 | 采样温度,0-2,默认 1 |
top_p | number | 否 | 核采样参数,0-1 |
stream | boolean | 否 | 是否流式输出,默认 false |
stop | string/array | 否 | 停止生成的标记 |
消息格式
system、user、assistant。
请求示例
响应示例
流式输出
设置stream: true 后,响应通过 Server-Sent Events (SSE) 返回:
对话补全