Authorization: Bearer ********************{
"model": "computer-use-preview",
"tools": [
{
"type": "computer_use_preview",
"display_width": 1024,
"display_height": 768,
"environment": "browser"
}
],
"input": [
{
"role": "user",
"content": [
{
"type": "input_text",
"text": "Check the latest OpenAI news on [bing.com](http://bing.com)."
}
]
}
],
"reasoning": {
"summary": "concise"
},
"truncation": "auto"
}curl --location --request POST 'https://nxaiapp.com/v1//responses' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "computer-use-preview",
"tools": [
{
"type": "computer_use_preview",
"display_width": 1024,
"display_height": 768,
"environment": "browser"
}
],
"input": [
{
"role": "user",
"content": [
{
"type": "input_text",
"text": "Check the latest OpenAI news on [bing.com](http://bing.com)."
}
]
}
],
"reasoning": {
"summary": "concise"
},
"truncation": "auto"
}'{
"id": "resp_1234567890abcdef",
"object": "computer_use.response",
"created": 1735700000,
"model": "computer-use-preview",
"response": {
"role": "assistant",
"content": [
{
"type": "text",
"text": "OpenAI 最新新闻摘要(来自必应搜索):1. OpenAI 发布 GPT-4o Mini 轻量化版本,推理速度提升 30%;2. OpenAI 宣布与微软扩大云服务合作,拓展亚太地区算力节点。"
},
{
"type": "computer_use_preview",
"logs": [
{
"timestamp": 1735700001,
"action": "browser_navigate",
"details": {
"url": "http://bing.com",
"status": "success",
"display_size": {
"width": 1024,
"height": 768
}
}
},
{
"timestamp": 1735700005,
"action": "browser_search",
"details": {
"query": "latest OpenAI news",
"result_count": 28
}
},
{
"timestamp": 1735700010,
"action": "text_extract",
"details": {
"source_url": "https://openai.com/blog/gpt-4o-mini",
"extracted_text_length": 1280
}
}
]
}
]
},
"usage": {
"prompt_tokens": 89,
"completion_tokens": 345,
"tool_usage_tokens": 120,
"total_tokens": 554
}
}