创建网络搜索
POST/v1/responses 创建响应
POST /responses
使用 Vortap Responses API 创建一次模型响应。部分模型仅支持 Responses 格式,例如 o3-pro、codex-mini-latest。
完整请求地址:
https://www.vortapapi.com/v1/responses
请求头
| 名称 | 必填 | 说明 |
|---|---|---|
Content-Type | 是 | 请求体格式,通常为 application/json |
Accept | 是 | 期望返回的数据格式,通常为 application/json |
Authorization | 否 | API 密钥认证,格式为 Bearer sk-*** |
响应示例
{
"id": "chatcmpl-123",
"object": "chat.completion",
"created": 1677652288,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "\n\nHello there, how may I assist you today?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 12,
"total_tokens": 21
}
}