Example
json
{
"type": "response.done",
"event_id": "event_CCXHxcMy86rrKhBLDdqCh",
"response": {
"object": "realtime.response",
"id": "resp_CCXHw0UJld10EzIUXQCNh",
"status": "completed",
"status_details": null,
"output": [
{
"id": "item_CCXHwGjjDUfOXbiySlK7i",
"type": "message",
"status": "completed",
"role": "assistant",
"content": [
{
"type": "output_audio",
"transcript": "Loud and clear! I can hear you perfectly. How can I help you today?"
}
]
}
],
"conversation_id": "conv_CCXHsurMKcaVxIZvaCI5m",
"output_modalities": [
"audio"
],
"max_output_tokens": "inf",
"audio": {
"output": {
"format": {
"type": "audio/pcm",
"rate": 24000
},
"voice": "alloy"
}
},
"usage": {
"total_tokens": 253,
"input_tokens": 132,
"output_tokens": 121,
"input_token_details": {
"text_tokens": 119,
"audio_tokens": 13,
"image_tokens": 0,
"cached_tokens": 64,
"cached_tokens_details": {
"text_tokens": 64,
"audio_tokens": 0,
"image_tokens": 0
}
},
"output_token_details": {
"text_tokens": 30,
"audio_tokens": 91
}
},
"metadata": null
}
}response.output_item.added
Returned when a new Item is created during Response generation.