responses is OpenAI's most advanced model response generation interface, supporting richer interactive capabilities and tool integration.responses interface, please refer to the OpenAI Official Documentation.curl --location --request POST 'https://api.cometapi.com/v1/responses' \
--header 'Authorization: Bearer {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-4.1",
"input": "Tell me a three sentence bedtime story about a unicorn."
}'{
"id": "chatcmpl-AreYSBEwmzB0kY3GxzBEhE1Olct83",
"object": "chat.completion",
"created": 1737350640,
"model": "o3-pro",
"system_fingerprint": "fp_f3927aa00d",
"choices": [
{
"index": 0,
"message": {
"content": "Hello! How can I assist you today?",
"role": "assistant"
},
"finish_reason": "stop"
}
],
"usage": {
"completion_tokens": 9,
"completion_tokens_details": {},
"prompt_tokens": 9,
"prompt_tokens_details": {},
"total_tokens": 18
}
}