Authorization: Bearer ********************{
"model": "claude-opus-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-opus-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_01NedBwEXZfH6FyGRoky6rDB",
"model": "claude-opus-4-6",
"object": "chat.completion",
"created": 1772683945,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "## 图片内容描述\n\n这是一张**扁平化风格的办公场景插画**,主要内容包括:\n\n### 人物\n- **左侧女性**:身穿白色衬衫和白色阔腿裤,脚踩黑色高跟鞋,手持一台蓝色笔记本电脑,短发,站立姿态。\n- **右侧男性**:身穿深蓝色上衣和深色长裤,坐在椅子上,面前桌子上放着一台打开的蓝色笔记本电脑,正在办公。\n\n### 场景环境\n- **背景**是一个现代化办公室,有大窗户、窗帘、书架(上面放着绿色和蓝色的书籍/文件夹)。\n- 左下角有一株**装饰性蓝色植物**。\n\n### 图标元素\n- 几个**绿色定位标记(📍)**散落在画面中,暗示位置/远程办公概念。\n- 右上角有一个**绿色WiFi信号图标**,暗示网络连接/远程协作。\n\n### 整体风格\n- 采用**蓝紫色渐变背景**,色调以蓝色、白色和绿色为主。\n- 整体传达的是**现代办公、远程协作、互联网工作**的主题,常用于科技公司、SaaS产品或远程办公相关的宣传素材。",
"reasoning_content": "The user is asking what's in the image."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 1585,
"completion_tokens": 457,
"total_tokens": 2042,
"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
}
}