Response object (streaming) id string The message ID of the event. code string The error code. This field is empty if the call is successful. messagestring The detailed error message. This field is ignored if the request is successful. event string The event type, which indicates the current status of the response. Common event data sequence_number integer The serial number of the event, which starts from 0 and increments. type string The event type. The value is the same as the event field. Detailed event types Overall response lifecycle events response.created: Indicates that the response has been created. response.in_progress: Indicates that the response is being processed. response.completed: The response is complete. Common data responseobject The response object, which contains detailed information about the response*.* Sub-properties id string The unique ID of the response. statusstring The final status of the response. objectstring The object type. The value is always "response". created_atinteger The Unix timestamp (in seconds) when the response was created.
output array A list of output content.
Sub-properties output messageobject A message object that contains the model's output content. Sub-properties idstring The unique ID of the output item. type string The type of the output item.
"reasoning": The model's thought process.
"message": The final reply.
role string The role of the message. contentarray A list of output content parts. Sub-properties type string The type of the content part. For example, "output_text" indicates a text part. textstring The text content. annotationsarray A list of annotations. statusstring The current status of the response. Content construction events response.output_item.added: Indicates that an output item has been added. Sub-properties output_indexinteger The index of the item in the output array. itemobject The newly added output item object. Sub-properties output messageobject A message object that contains the model's output content. Sub-properties idstring The unique ID of the output item. type string The type of the output item.
"reasoning": The model's thought process.
"message": The final reply.
role string The role of the message. contentarray A list of content parts. statusstring The current status of the response. response.output_item.done: The output item is complete. Sub-properties output_indexinteger The index of the completed item in the output array. itemobject The complete output item object. Sub-properties idstring The unique ID of the output item. type string The type of the output item.
"reasoning": The model's thought process.
"message": The final reply.
role string The role of the message. contentarray A list of output content parts. Sub-properties type string The type of the content part. For example, "output_text" indicates a text part. textstring The text content. annotationsarray A list of annotations. statusstring The current status of the response. response.content_part.added: Indicates that a new content block, such as text or an image, has been generated within an output item, such as a message. Sub-properties output_indexinteger The index in the response.output array. content_indexinteger The index in the item.content array. item_idstring The ID of the associated output item. partobject The newly added content part object. Sub-properties type string The type of the content part. For example, "output_text" indicates a text part. text string The text content. annotationsarray A list of annotations. response.content_part.done: The content part is complete. Sub-properties output_indexinteger The index in the response.output array. content_indexinteger The index in the item.content array. item_idstring The ID of the associated output item. partobject The newly added content part object. Sub-properties type string The type of the content part. For example, "output_text" indicates a text part. text string The text content. annotationsarray A list of annotations. Text stream events response.output_text.delta: A text increment of the output content. Sub-properties delta string An incremental chunk of the output text. output_indexinteger The index in the response.output array. content_indexinteger The index in the item.content array. item_idstring The ID of the associated output item. response.output_text.done: The output text is complete. Sub-properties text string The complete output text content. output_indexinteger The index in the response.output array. content_indexinteger The index in the item.content array. item_idstring The ID of the associated output item. response.reasoning_text.delta: A text increment of the reasoning process. Sub-properties delta string An incremental chunk of the reasoning text. output_indexinteger The index in the response.output array. content_indexinteger The index in the item.content array. item_idstring The ID of the associated output item. response.reasoning_text.done: The streaming output of the reasoning process is complete. Sub-properties text string The complete reasoning process. output_indexinteger The index in the response.output array. content_indexinteger The index in the item.content array. item_idstring The ID of the associated output item. | id:1 | event:response.created | :HTTP_STATUS/200 | data:{"sequence_number":0,"type":"response.created","response":{"output":[],"parallel_tool_calls":false,"created_at":1760076609,"tool_choice":"auto","model":"","id":"508f1306-3760-49da-9e43-380fd952c297","tools":[],"object":"response","status":"queued"}}
id:2 | event:response.in_progress | :HTTP_STATUS/200 | data:{"sequence_number":1,"type":"response.in_progress","response":{"output":[],"parallel_tool_calls":false,"created_at":1760076609,"tool_choice":"auto","model":"","id":"508f1306-3760-49da-9e43-380fd952c297","tools":[],"object":"response","status":"in_progress"}}
id:3 | event:response.output_item.added | :HTTP_STATUS/200 | data:{"sequence_number":2,"item":{"id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","role":"assistant","type":"message","content":[],"status":"in_progress"},"output_index":0,"type":"response.output_item.added"}
id:4 | event:response.content_part.added | :HTTP_STATUS/200 | data:{"sequence_number":3,"output_index":0,"type":"response.content_part.added","content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","part":{"type":"output_text","annotations":[],"text":""}}
id:5 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":4,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":"Hello","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:6 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":5,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":"! I am ","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:7 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":6,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":"Qwen","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:8 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":7,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":", a large-scale","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:9 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":8,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":" language model developed by Alibaba Cloud.","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:10 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":9,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":" I can answer questions and create","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:11 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":10,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":" text, such as writing stories,","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:12 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":11,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":" official documents,","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:13 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":12,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":" emails,","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:14 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":13,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":" scripts, logical reasoning,","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:15 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":14,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":" programming, and more. I can also express opinions","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:16 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":15,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":" and play games. I support","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:17 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":16,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":" multiple languages, including but not limited to","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:18 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":17,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":" Chinese, English, German","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:19 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":18,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":", French, and Spanish","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:20 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":19,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":" to meet international","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:21 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":20,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":" usage needs. I","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:22 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":21,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":" am good at handling various tasks","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:23 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":22,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":", whether it's answering questions in professional fields","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:24 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":23,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":" or consulting on","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:25 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":24,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":" daily life issues","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:26 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":25,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":", I will do my best to help","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:27 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":26,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":". My goal is to become","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:28 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":27,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":" your most reliable intelligent","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:29 | event:response.output_text.delta | :HTTP_STATUS/200 | data:{"sequence_number":28,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","delta":" partner!","output_index":0,"type":"response.output_text.delta","logprobs":[]}
id:30 | event:response.output_text.done | :HTTP_STATUS/200 | data:{"sequence_number":29,"content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","text":"Hello! I am Qwen, a large-scale language model developed by Alibaba Cloud. I can answer questions and create text, such as writing stories, official documents, emails, and scripts, performing logical reasoning, programming, and more. I can also express opinions and play games. I support multiple languages, including but not limited to Chinese, English, German, French, and Spanish, to meet international usage needs. I am good at handling various tasks, whether it's answering questions in professional fields or consulting on daily life issues, I will do my best to help. My goal is to become your most reliable intelligent partner!","output_index":0,"type":"response.output_text.done","logprobs":[]}
id:31 | event:response.content_part.done | :HTTP_STATUS/200 | data:{"sequence_number":30,"output_index":0,"type":"response.content_part.done","content_index":0,"item_id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","part":{"type":"output_text","annotations":[],"text":"Hello! I am Qwen, a large-scale language model developed by Alibaba Cloud. I can answer questions and create text, such as writing stories, official documents, emails, and scripts, performing logical reasoning, programming, and more. I can also express opinions and play games. I support multiple languages, including but not limited to Chinese, English, German, French, and Spanish, to meet international usage needs. I am good at handling various tasks, whether it's answering questions in professional fields or consulting on daily life issues, I will do my best to help. My goal is to become your most reliable intelligent partner!"}}
id:32 | event:response.output_item.done | :HTTP_STATUS/200 | data:{"sequence_number":31,"item":{"id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","role":"assistant","type":"message","content":[{"type":"output_text","annotations":[],"text":"Hello! I am Qwen, a large-scale language model developed by Alibaba Cloud. I can answer questions and create text, such as writing stories, official documents, emails, and scripts, performing logical reasoning, programming, and more. I can also express opinions and play games. I support multiple languages, including but not limited to Chinese, English, German, French, and Spanish, to meet international usage needs. I am good at handling various tasks, whether it's answering questions in professional fields or consulting on daily life issues, I will do my best to help. My goal is to become your most reliable intelligent partner!"}],"status":"completed"},"output_index":0,"type":"response.output_item.done"}
id:33 | event:response.completed | :HTTP_STATUS/200 | data:{"sequence_number":32,"type":"response.completed","response":{"output":[{"id":"msg_8087bfdd-ba53-45db-b309-6a3b92ca4f3e","role":"assistant","type":"message","content":[{"type":"output_text","annotations":[],"text":"Hello! I am Qwen, a large-scale language model developed by Alibaba Cloud. I can answer questions and create text, such as writing stories, official documents, emails, and scripts, performing logical reasoning, programming, and more. I can also express opinions and play games. I support multiple languages, including but not limited to Chinese, English, German, French, and Spanish, to meet international usage needs. I am good at handling various tasks, whether it's answering questions in professional fields or consulting on daily life issues, I will do my best to help. My goal is to become your most reliable intelligent partner!"}],"status":"completed"}],"parallel_tool_calls":false,"created_at":1760076609,"tool_choice":"auto","model":"","id":"508f1306-3760-49da-9e43-380fd952c297","tools":[],"object":"response","status":"completed"}}
|