跳转到主要内容
创建 Responses 响应
curl --request POST \
  --url https://xxx.wengaocloud.com/v1/responses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "gpt-4o-mini",
  "input": "写一段简短欢迎语"
}
'
{
  "id": "<string>",
  "object": "<string>",
  "output": [
    {}
  ],
  "usage": {
    "input_tokens": 123,
    "output_tokens": 123,
    "total_tokens": 123,
    "input_tokens_details": {}
  }
}

授权

Authorization
string
header
默认值:sk-your-api-key
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
model
string
必填
input
必填
stream
boolean
默认值:false

响应

Responses 响应对象。

id
string
object
string
output
object[]
usage
object