Chat(Pixtral-Large-2411multimodal)
Run in Apifox
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 sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--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 Generate Code
{
"id" : "chatcmpl-123" ,
"object" : "chat.completion" ,
"created" : 1677652288 ,
"choices" : [
{
"index" : 0 ,
"message" : {
"role" : "assistant" ,
"content" : "\n\nHello there, how may I assist you today?"
} ,
"finish_reason" : "stop"
}
] ,
"usage" : {
"prompt_tokens" : 9 ,
"completion_tokens" : 12 ,
"total_tokens" : 21
}
}
Modified at 2025-03-19 05:52:14