Run in Apifox
Alibabaの最新オープンソースモデル 以下のモデルをサポート: qwen2.5-vl-72b-instruct qwen2.5-vl-7b-instruct qwen2.5-vl-3b-instruct qwen2.5-vl-32b-instruct Request Body Params application/json
{
"model" : "qwen2.5-vl-72b-instruct" ,
"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-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "qwen2.5-vl-72b-instruct",
"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-26 03:34:02