Responses 格式

OpenAI Responses 介面,支援多輪上下文、內建工具與推理模型。相容 /v1/responses。

相容 OpenAI Responses API。使用平臺權杖作為 api_keybase_url 設為 https://api.covanexus.com/v1 即可呼叫。

POST /v1/responses https://api.covanexus.com
Authorization
內容

Authorization

Authorization BearerAuth

Authorization Bearer <token>

使用 Bearer Token 認證。格式:Authorization: Bearer $COVA_NEXUS_API_KEY

in: 標頭

請求內容

application/json

model* string
模型識別碼
input? string | array[object]
輸入內容。可為純文本字串,或訊息物件陣列(含 role 與 content)
instructions? string
系統級指令(等價於 system 提示)
max_output_tokens? integer
最大輸出 Token 數
temperature? number
取樣溫度
top_p? number
核取樣引數
stream? boolean
是否流式輸出(SSE 事件流)
Default false
tools? array[object]
可用工具清單(Function Calling / 內建工具)
tool_choice? string | object
工具選擇策略
reasoning? object
推理設定(用於推理模型,如 {"effort":"medium"}
previous_response_id? string
上一次響應的 ID,用於多輪上下文串聯
truncation? string
上下文截斷策略
Value in "auto" | "disabled"

回應內容

狀態碼型別
200application/json
400application/json
429application/json
curl -X POST "https://api.covanexus.com/v1/responses" \
  -H "Authorization: Bearer $COVA_NEXUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-4o",
  "input": "請用一句話介紹你自己"
}'
200
400
429
{
  "id": "resp_xxx",
  "object": "response",
  "created_at": 0,
  "model": "gpt-4o",
  "status": "completed",
  "output": [
    {
      "id": "msg_xxx",
      "type": "message",
      "status": "completed",
      "role": "assistant",
      "content": [
        {
          "type": "output_text",
          "text": "string"
        }
      ]
    }
  ],
  "usage": {
    "prompt_tokens": 0,
    "completion_tokens": 0,
    "total_tokens": 0
  }
}

BearerAuth