简体中文
cURL
curl --request POST \ --url https://api.evolink.ai/v1/chat/completions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "model": "gpt-5.2", "messages": [ { "role": "user", "content": "你好,介绍一下 GPT-5.2 的新特性" } ] } '
{ "id": "chatcmpl-20251010015944503180122WJNB8Eid", "model": "gpt-5.2", "object": "chat.completion", "created": 1760032810, "choices": [ { "index": 0, "message": { "role": "assistant", "content": "你好!很高兴能向你介绍 GPT-5.2。\n\nGPT-5.2 是下一代大型语言模型,拥有更强的推理和理解能力..." }, "finish_reason": "stop" } ], "usage": { "prompt_tokens": 13, "completion_tokens": 1891, "total_tokens": 1904, "prompt_tokens_details": { "cached_tokens": 0, "text_tokens": 13, "audio_tokens": 0, "image_tokens": 0 }, "completion_tokens_details": { "text_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 1480 }, "input_tokens": 0, "output_tokens": 0, "input_tokens_details": null } }
##所有接口均需要使用Bearer Token进行认证##
获取 API Key :
访问 API Key 管理页面 获取您的 API Key
使用时在请求头中添加:
Authorization: Bearer YOUR_API_KEY
对话模型名称
gpt-5.2
"gpt-5.2"
对话消息列表
1
显示 子属性
[ { "role": "user", "content": "你好,介绍一下 GPT-5.2 的新特性" }]
对话生成成功
对话完成的唯一标识符
"chatcmpl-20251010015944503180122WJNB8Eid"
实际使用的模型名称
响应类型
chat.completion
"chat.completion"
创建时间戳
1760032810
对话生成的选择列表
Token 使用统计信息