Responses 请求/响应示例 基础文本请求 plaintext curl X POST H "Authorization: Bearer ${YOURAPPKEY}" H "ContentType: application/json" d '{ "model": "qwen3.7max", "instructions": "You are a helpful assistant.", "input": "简单介绍向量数据库的用途" }' 多轮对话请求 plaintext curl X POST H "Authorization: Bearer ${YOURAPPKEY}" H "ContentType: application/json" d '{ "model": "qwen3.7max", "previousresponseid": "respxxxxxxxxxxxx", "input": "再展开说说其中的近似最近邻检索" }' 多模态请求 plaintext curl X POST H "Authorization: Bearer ${YOURAPPKEY}" H "ContentType: application/json" d '{ "model": "Qwen3OmniFlash", "input": [ { "type": "message", "role": "user", "content": [ { "type": "inputimage", "imageurl": " "detail": "auto" }, { "type": "inputtext", "text": "这是什么" } ] } ] }' 函数调用请求 plaintext curl X POST H "Authorization: Bearer ${YOURAPPKEY}" H "ContentType: application/json" d '{ "model": "qwen3.7max", "input": "厦门今天天气怎么样?", "tools": [ { "type": "function", "name": "getweather", "description": "查询指定城市的实时天气", "parameters": { "type": "object", "properties": { "city": { "type": "string", "description": "城市名称" } }, "required": ["city"] }, "strict": true } ], "toolchoice": "auto" }' 工具结果回传(将上一轮 output 中的 functioncall 条目与执行结果一并作为 input): plaintext curl X POST H "Authorization: Bearer ${YOURAPPKEY}" H "ContentType: application/json" d '{ "model": "qwen3.7max", "previousresponseid": "respxxxxxxxxxxxx", "input": [ { "type": "functioncalloutput", "callid": "callxxxxxxxxxxxx", "output": "{"temperature":"26℃","weather":"多云"}" } ] }'
来自: