Authorization: Bearer ********************{
"model": "模型名称",
"messages": [
{
"role": "可选角色(如 user 等)",
"content": [
{
"type": "可选类型",
"text": "可选文本内容",
"file": "可选文件路径",
"image_url": "可选图片 URL"
}
]
}
],
"temperature": 0.8,
"top_p": 0.9,
"max_tokens": 2048,
"stream": false,
"top_k": 10,
"tools": {
"工具相关参数": "工具参数值"
},
"thinking": {
"type": "enabled",
"budget_tokens": 1500
}
}curl --location --request POST 'https://ai.kaiho.cc/v1/messages' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "模型名称",
"messages": [
{
"role": "可选角色(如 user 等)",
"content": [
{
"type": "可选类型",
"text": "可选文本内容",
"file": "可选文件路径",
"image_url": "可选图片 URL"
}
]
}
],
"temperature": 0.8,
"top_p": 0.9,
"max_tokens": 2048,
"stream": false,
"top_k": 10,
"tools": {
"工具相关参数": "工具参数值"
},
"thinking": {
"type": "enabled",
"budget_tokens": 1500
}
}'{}