Run in Apifox
Alibaba's latest open source model** Supports the following models: **qwen2.5-72b-instruct qwen2.5-32b-instruct qwen2.5-14b-instruct qwen2.5-3b-instruct qwen2.5-math-72b-instruct(Mathematical models) qwen2.5-coder-7b-instruct(programming models) qwen2.5-coder-32b-instruct(programming models) qwen-2.5-omni-7b (requires streaming output enabled) Request Body Params application/json
{
"model" : "qwen2.5-72b-instruct" ,
"messages" : [ { "role" : "user" , "content" : "Hello!" } ]
}
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": "qwen2.5-72b-instruct",
"messages": [{"role": "user", "content": "Hello!"}]
}'
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-27 06:07:36