Skip to main content
Represents a streamed chunk returned when streaming the responses API, based on the provided input.
event: response.created
data: {
  "type": "response.created",
  "sequence_number": 0,
  "response": {
    "id": "resp_4b71d12c86d94e719c7e3984a7bb7941",
    "object": "response",
    "created_at": 1735722153,
    "status": "in_progress",
    "output": []
  }
}

event: response.in_progress
data: {
  "type": "response.in_progress",
  "sequence_number": 1,
  "response": {
    "id": "resp_4b71d12c86d94e719c7e3984a7bb7941",
    "object": "response",
    "created_at": 1735722153,
    "status": "in_progress",
    "output": []
  }
}

event: response.output_item.added
data: {
  "type": "response.output_item.added",
  "sequence_number": 2,
  "output_index": 0,
  "item": {
    "id": "msg_4b71d12c86d94e719c7e3984a7bb7941",
    "type": "message",
    "status": "in_progress",
    "role": "assistant",
    "content": []
  }
}

event: response.content_part.added
data: {
  "type": "response.content_part.added",
  "sequence_number": 3,
  "item_id": "msg_4b71d12c86d94e719c7e3984a7bb7941",
  "output_index": 0,
  "content_index": 0,
  "part": { "type": "output_text", "text": "" }
}

event: response.output_text.delta
data: {
  "type": "response.output_text.delta",
  "sequence_number": 4,
  "item_id": "msg_4b71d12c86d94e719c7e3984a7bb7941",
  "output_index": 0,
  "content_index": 0,
  "delta": "Hello"
}

...

event: response.output_text.done
data: {
  "type": "response.output_text.done",
  "sequence_number": 6,
  "item_id": "msg_4b71d12c86d94e719c7e3984a7bb7941",
  "output_index": 0,
  "content_index": 0,
  "text": "Hello there, how may I assist you today?"
}

event: response.content_part.done
data: {
  "type": "response.content_part.done",
  "sequence_number": 7,
  "item_id": "msg_4b71d12c86d94e719c7e3984a7bb7941",
  "output_index": 0,
  "content_index": 0,
  "part": {
    "type": "output_text",
    "text": "Hello there, how may I assist you today?"
  }
}

event: response.output_item.done
data: {
  "type": "response.output_item.done",
  "sequence_number": 8,
  "output_index": 0,
  "item": {
    "id": "msg_4b71d12c86d94e719c7e3984a7bb7941",
    "type": "message",
    "status": "completed",
    "role": "assistant",
    "content": [
      {
        "type": "output_text",
        "text": "Hello there, how may I assist you today?"
      }
    ]
  }
}

event: response.completed
data: {
  "type": "response.completed",
  "sequence_number": 9,
  "response": {
    "id": "resp_4b71d12c86d94e719c7e3984a7bb7941",
    "object": "response",
    "created_at": 1735722153,
    "status": "completed",
    "output": [
      {
        "id": "msg_4b71d12c86d94e719c7e3984a7bb7941",
        "type": "message",
        "status": "completed",
        "role": "assistant",
        "content": [
          {
            "type": "output_text",
            "text": "Hello there, how may I assist you today?"
          }
        ]
      }
    ],
    "usage": {
      "input_tokens": 9,
      "input_tokens_details": { "cached_tokens": 0 },
      "output_tokens": 11,
      "output_tokens_details": { "reasoning_tokens": 0 },
      "total_tokens": 20
    }
  }
}

Events

event: response.created chunk object

type
string
required
The type of the event. Always response.created.
response
object
required
The response that was created.
sequence_number
integer
required
The sequence number for this event.

event: response.in_progress chunk object

type
string
required
The type of the event. Always response.in_progress.
response
object
required
The response that is in progress.
sequence_number
integer
required
The sequence number of this event.

event: response.completed chunk object

type
string
required
The type of the event. Always response.completed.
response
object
required
Properties of the completed response.
sequence_number
integer
required
The sequence number for this event.

event: response.failed chunk object

type
string
required
The type of the event. Always response.failed.
response
object
required
The response that failed.
sequence_number
integer
required
The sequence number of this event.

event: response.incomplete chunk object

type
string
required
The type of the event. Always response.incomplete.
response
object
required
The response that was incomplete.
sequence_number
integer
required
The sequence number of this event.

event: response.output_item.added chunk object

type
string
required
The type of the event. Always response.output_item.added.
output_index
integer
required
The index of the output item that was added.
item
object
required
The output item that was added.
sequence_number
integer
required
The sequence number of this event.

event: response.output_item.done chunk object

type
string
required
The type of the event. Always response.output_item.done.
output_index
integer
required
The index of the output item that was marked done.
item
object
required
The output item that was marked done.
sequence_number
integer
required
The sequence number of this event.

event: response.content_part.added chunk object

type
string
required
The type of the event. Always response.content_part.added.
item_id
string
required
The ID of the output item that the content part was added to.
output_index
integer
required
The index of the output item that the content part was added to.
content_index
integer
required
The index of the content part that was added.
part
object
required
The content part that was added.
sequence_number
integer
required
The sequence number of this event.

event: response.content_part.done chunk object

type
string
required
The type of the event. Always response.content_part.done.
item_id
string
required
The ID of the output item that the content part was added to.
output_index
integer
required
The index of the output item that the content part was added to.
content_index
integer
required
The index of the content part that is done.
part
object
required
The content part that is done.
sequence_number
integer
required
The sequence number of this event.

event: response.output_text.delta chunk object

type
string
required
The type of the event. Always response.output_text.delta.
item_id
string
required
The ID of the output item that the text delta was added to.
output_index
integer
required
The index of the output item that the text delta was added to.
content_index
integer
required
The index of the content part that the text delta was added to.
delta
string
required
The text delta that was added.
sequence_number
integer
required
The sequence number for this event.

event: response.output_text.done chunk object

type
string
required
The type of the event. Always response.output_text.done.
item_id
string
required
The ID of the output item that the text content is finalized.
output_index
integer
required
The index of the output item that the text content is finalized.
content_index
integer
required
The index of the content part that the text content is finalized.
text
string
required
The text content that is finalized.
sequence_number
integer
required
The sequence number for this event.

event: response.function_call_arguments.delta chunk object

type
string
required
The type of the event. Always response.function_call_arguments.delta.
item_id
string
required
The ID of the output item that the function-call arguments delta is added to.
output_index
integer
required
The index of the output item that the function-call arguments delta is added to.
delta
string
required
The function-call arguments delta that is added.
sequence_number
integer
required
The sequence number of this event.

event: response.function_call_arguments.done chunk object

type
string
required
The type of the event. Always response.function_call_arguments.done.
item_id
string
required
The ID of the item.
output_index
integer
required
The index of the output item.
arguments
string
required
The function-call arguments.
name
string
required
The name of the function that was called.
sequence_number
integer
required
The sequence number of this event.

event: response.reasoning_text.delta chunk object

type
string
required
The type of the event. Always response.reasoning_text.delta.
item_id
string
required
The ID of the item this reasoning text delta is associated with.
output_index
integer
required
The index of the output item this reasoning text delta is associated with.
content_index
integer
required
The index of the reasoning content part this delta is associated with.
delta
string
required
The text delta that was added to the reasoning content.
sequence_number
integer
required
The sequence number of this event.

event: response.reasoning_text.done chunk object

type
string
required
The type of the event. Always response.reasoning_text.done.
item_id
string
required
The ID of the item this reasoning text is associated with.
output_index
integer
required
The index of the output item this reasoning text is associated with.
content_index
integer
required
The index of the reasoning content part.
text
string
required
The full text of the completed reasoning content.
sequence_number
integer
required
The sequence number of this event.
Last modified on July 10, 2026