Chat(Pixtral-Large-2411multimodal)
This example is to demonstrate how to use the pixtral-large-2411 model to analyze images. Request
Body Params application/json
{
"model": "pixtral-large-2411",
"stream": false,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "这张图片有什么"
},
{
"type": "image_url",
"image_url": {
"url": "https://s2.loli.net/2024/02/01/QSWVdw9bX56gj7O.jpg"
}
}
]
}
]
}
Request Code Samples
curl --location --request POST 'https://api.302.ai/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "pixtral-large-2411",
"stream": false,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "这张图片有什么"
},
{
"type": "image_url",
"image_url": {
"url": "https://s2.loli.net/2024/02/01/QSWVdw9bX56gj7O.jpg"
}
}
]
}
]
}'
Responses
application/json {
"id": "336f88541e074f3d931d1bea3a1b019f",
"created": 1769415867,
"model": "pixtral-large-2411",
"usage": {
"prompt_tokens": 2351,
"total_tokens": 2680,
"completion_tokens": 329,
"num_cached_tokens": 0
},
"object": "chat.completion",
"choices": [
{
"index": 0,
"finish_reason": "stop",
"message": {
"role": "assistant",
"tool_calls": null,
"content": "这张图片描绘了一个现代办公室环境,两个人物在进行工作。\n\n- 左边的人物是一位女性,穿着职业装,包括白色衬衫、深色裤子和高跟鞋。她手持一份蓝色文件夹,似乎正与另一个人交流或展示信息。\n- 右边的人物是一位男性,穿着休闲一些的服装,包括深色上衣和牛仔裤。他坐在办公桌前,手里有一台笔记本电脑,显得专注于工作。\n- 办公桌上有一个绿色地图图标,表明他们可能正在处理与地理位置相关的任务或数据。\n- 背景中有一个书架,上面放着各种文件夹和书籍,表明这是一个有组织的工作空间。整体氛围看起来专业且现代化,强调团队合作和信息共享。\n\n图片的整体风格是卡通化的,使用了鲜艳的蓝色和紫色调,增添了视觉上的吸引力。"
}
}
]
}
Modified at 2026-01-21 06:41:52