跳转到主要内容
POST
/
v1
/
responses
cURL
curl --request POST \
  --url https://proxy.innk.cc/v1/responses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "gpt-4.1",
  "input": "Hello, how are you?"
}
'
{}
目前仅支持OpenAI模型,完整文档请参考OpenAI API Reference

授权

Authorization
string
header
必填

身份验证标头格式为 Bearer <API_KEY>,其中 <API_KEY> 是您的API令牌。

请求体

application/json
model
string
必填

模型名称

示例:

"gpt-4.1"

input
string
必填

消息内容

示例:

"Hello, how are you?"

stream
boolean
默认值:false

是否流式返回

响应

200 - application/json

Model response

The response is of type object.