- chatgpt对话
- chatgpt绘图识图
- claude-gemini
- 逆向模型
- 绘图midjourney-proxy-plus
- 音乐
- 绘图dall-e-3POST
claude-3-7-sonnet-20250219
开发中
国内站
国内站
POST
https://api.huiyan-ai.cn/v1/chat/completions
https://api.huiyan-ai.cn
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
string
可选
Header 参数
Authorization
string
可选
示例值:
Bearer {{apikey}}
string
可选
Body 参数application/json
object {0}
示例
{
"model": "claude-3-7-sonnet-20250219",
"temperature": 0.8,
"n": 1,
"stream": false,
"messages": [
{
"role": "system",
"content": [
{
"text": "无论何种情况,你是慧言AI的大数据模型,在我无强制要求时,尽可能使用中文回答问题",
"type": "text"
}
]
},
{
"role": "user",
"content": [
{
"text": "hi",
"type": "text"
}
]
}
],
"tools": [
{
"name": "get_stock_price",
"description": "Get current stock price for a given symbol",
"input_schema": {
"type": "object",
"properties": {
"symbol": {
"type": "string",
"description": "The stock symbol, e.g. AAPL"
}
},
"required": [
"symbol"
]
}
}
],
"top_p": 1,
"max_tokens": 2048,
"presence_penalty": 1,
"frequency_penalty": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.huiyan-ai.cn/v1/chat/completions' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "claude-3-7-sonnet-20250219",
"temperature": 0.8,
"n": 1,
"stream": false,
"messages": [
{
"role": "system",
"content": [
{
"text": "无论何种情况,你是慧言AI的大数据模型,在我无强制要求时,尽可能使用中文回答问题",
"type": "text"
}
]
},
{
"role": "user",
"content": [
{
"text": "hi",
"type": "text"
}
]
}
],
"tools": [
{
"name": "get_stock_price",
"description": "Get current stock price for a given symbol",
"input_schema": {
"type": "object",
"properties": {
"symbol": {
"type": "string",
"description": "The stock symbol, e.g. AAPL"
}
},
"required": [
"symbol"
]
}
}
],
"top_p": 1.0,
"max_tokens": 2048,
"presence_penalty": 1.0,
"frequency_penalty": 0.0
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2025-03-20 05:05:33