{
"model": "anthropic/claude-opus-4.5",
"messages": [
{
"role": "user",
"content": "今天天气怎么样"
}
],
"tools": [
{
"type": "web_search_20250305",
"name": "web_search"
}
],
"stream": false
}curl --location --request POST 'https://api.360.cn/v1/messages' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "anthropic/claude-opus-4.5",
"messages": [
{
"role": "user",
"content": "今天天气怎么样"
}
],
"tools": [
{
"type": "web_search_20250305",
"name": "web_search"
}
],
"stream": false
}'{
"id": "1c2a0834-05a9-11f1-99be-12ad98629e8e|1c2fb117-05a9-11f1-99be-12ad98629e8e|a24269f0cc9f34fba76f8c4183cd9b2a",
"content": [
{
"text": "今天(2月9日,周一)北京天气情况:\n\n- **天气**:多云\n- **温度**:-2℃ ~ 6℃\n- **当前温度**:3℃\n- **风力**:东南风 1级\n- **空气质量**:轻度污染(AQI 118),有霾\n\n**生活建议**:\n- 👔 **穿衣**:较冷,建议穿厚外套加毛衣\n- 🏃 **运动**:较适宜户外运动,但注意增减衣物\n- 🤧 **感冒**:昼夜温差大,易发感冒,注意防护\n- 🚗 **洗车**:较适宜,未来一天无雨\n\n整体来说今天天气还不错,但早晚温差较大,出门注意保暖!",
"type": "text"
}
],
"model": "ppinfra/claude-opus-4.5",
"role": "assistant",
"stop_reason": "end_turn",
"type": "message",
"usage": {
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"input_tokens": 1176,
"output_tokens": 250,
"server_tool_use": {
"web_search_requests": 1
}
}
}