Authorization: Bearer ********************{
"model": "claude-sonnet-4-6",
"max_tokens": 2000,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "图片中有啥内容"
},
{
"type": "image_url",
"image_url": {
"url": "https://s2.loli.net/2024/02/01/QSWVdw9bX56gj7O.jpg"
}
}
]
}
],
"thinking": {
"type": "enabled",
"budget_tokens": 1024
},
"temperature": 0.8,
"steam": false
}curl --location --request POST 'https://api.toiotech.com/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "claude-sonnet-4-6",
"max_tokens": 2000,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "图片中有啥内容"
},
{
"type": "image_url",
"image_url": {
"url": "https://s2.loli.net/2024/02/01/QSWVdw9bX56gj7O.jpg"
}
}
]
}
],
"thinking": {
"type": "enabled",
"budget_tokens": 1024
},
"temperature": 0.8,
"steam": false
}'{
"id": "msg_bdrk_01AAeUa96RHLu3FyrJuxGXQS",
"model": "claude-sonnet-4-6",
"object": "chat.completion",
"created": 1772684024,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "## 图片内容描述\n\n这是一张**扁平化风格的办公场景插画**,主要包含以下元素:\n\n### 👥 人物\n- **一位女性**:站立,穿白色职业装,手持平板电脑/文件夹\n- **一位男性**:坐在办公桌前,穿深蓝色衬衫,正在使用笔记本电脑\n\n### 🏢 场景元素\n- 办公桌、办公椅\n- 背景有窗户、书架(放有文件夹)\n- 装饰性植物叶片\n- 室内办公环境\n\n### 📍 科技元素\n- 两个绿色的**定位图标(Location Pin)**,分别悬浮在两人附近\n- 右上角有一个绿色的 **WiFi 信号图标**\n\n### 🎨 视觉风格\n- 整体色调以**蓝紫色渐变**为主\n- 扁平化矢量插画风格\n- 背景为不规则的云朵/气泡形状\n\n### 💡 主题寓意\n整体画面传达的是**现代办公、远程协作、位置共享或网络连接**等相关概念,常用于科技、办公软件或企业服务类宣传素材。",
"reasoning_content": "The image shows an office/workplace illustration."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 1585,
"completion_tokens": 402,
"total_tokens": 1987,
"prompt_tokens_details": {
"cached_tokens": 0,
"text_tokens": 0,
"audio_tokens": 0,
"image_tokens": 0,
"video_tokens": 0
},
"completion_tokens_details": {
"text_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0
},
"output_tokens_details": {
"text_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0
},
"input_tokens": 0,
"output_tokens": 0,
"input_tokens_details": null,
"claude_cache_creation_5_m_tokens": 0,
"claude_cache_creation_1_h_tokens": 0
}
}