https://help.aliyun.com/zh/dashscope/developer-reference/api-details
post https://dashscope.aliyuncs.com/api/v1/services/aigc/text-generation/generation Content-Type: application/json Authorization: Bearer {{(funcall (plist-get (car (auth-source-search :host “dashscope.aliyuncs.com” :max 1)) :secret))}}
{ “model”: “qwen-turbo”, “input”:{ “messages”:[ { “role”: “system”, “content”: “You are a helpful assistant.” }, { “role”: “user”, “content”: “介绍下 Emacs 的历史” } ] }, “parameters”: { } }
POST https://dashscope.aliyuncs.com/api/v1/tokenizer Content-Type: application/json Authorization: Bearer {{(funcall (plist-get (car (auth-source-search :host “dashscope.aliyuncs.com” :max 1)) :secret))}}
{ “model”: “qwen-plus”, “input”:{ “messages”:[ { “role”: “user”, “content”: “北京有哪些好玩地方?” }, { “role”: “assistant”, “content”: “故宫、颐和园、天坛等都是可以去游玩的景点哦。” }, { “role”: “user”, “content”: “帮我安排一些行程” } ] }, “parameters”: { } }
template https://dashscope.aliyuncs.com/api/v1/services/aigc/text-generation/generation Content-Type: application/json Authorization: Bearer {{(funcall (plist-get (car (auth-source-search :host “dashscope.aliyuncs.com” :max 1)) :secret))}}
POST /
{ “model”: “qwen-turbo”, “input”:{ “messages”:[ { “role”: “user”, “content”: “介绍下你自己” } ] }, “parameters”: { } }
POST /
{ “model”: “qwen-plus”, “input”:{ “messages”:[ { “role”: “user”, “content”: “介绍下你自己” } ] }, “parameters”: { } }
POST /
{ “model”: “qwen-max”, “input”:{ “messages”:[ { “role”: “user”, “content”: “介绍下你自己” } ] }, “parameters”: { } }
POST /
{ “model”: “qwen-turbo”, “input”:{ “messages”:[ { “role”: “user”, “content”: “请介绍下 Lua 的历史” } ] }, “parameters”: { “seed”: 111205 } }
template https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation Content-Type: application/json Authorization: Bearer {{(funcall (plist-get (car (auth-source-search :host “dashscope.aliyuncs.com” :max 1)) :secret))}}
post /
{ “model”: “qwen-vl-plus”, “input”: { “messages”: [ { “role”: “user”, “content”: [ { “image”: “http://xuchunyang-oss.domain-4-testing.com/hua-ling-VV62v9KELCo-unsplash.jpg” }, { “text”: “介绍下这张图片” } ] } ] }, “parameters”: { } }
post /
{ “model”: “qwen-vl-plus”, “input”: { “messages”: [ { “role”: “user”, “content”: [ { “image”: “http://xuchunyang-oss.domain-4-testing.com/ansie-potgieter-GV2LxPJArgQ-unsplash.jpg” }, { “text”: “介绍下这张图片” } ] } ] }, “parameters”: { } }
post /
{ “model”: “qwen-vl-plus”, “input”: { “messages”: [ { “role”: “user”, “content”: [ { “image”: “https://imagecloud.thepaper.cn/thepaper/image/288/63/268.jpg?x-oss-process=image/resize,w_332” }, { “text”: “介绍下这张图片” } ] } ] }, “parameters”: { } }