responses接口(原生)
Developing
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/jsonRequired
{
"model": "gpt-4.1",
"input": "1+2 等于多少.",
"stream":false
}
Request Code Samples
curl --location --request POST '/v1/responses' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-4.1",
"input": "1+2 等于多少.",
"stream":false
}'
Responses
application/json Modified at 2026-01-29 12:24:51