stream=true 时返回 SSE 事件流。{
"model": "gpt-4o",
"input": [
{
"role": "user",
"content": "用一句话介绍 2-API"
}
],
"stream": false
}curl --location 'https://2-api.com/v1/responses' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-4o",
"input": [
{
"role": "user",
"content": "用一句话介绍 2-API"
}
],
"stream": false
}'{
"id": "resp_xxx",
"object": "response",
"created_at": 1717400000,
"model": "gpt-4o",
"output": [
{}
],
"usage": {
"prompt_tokens": 28,
"completion_tokens": 18,
"total_tokens": 46
}
}