mixrouter
  1. qwen
mixrouter
  • mixrouter接口说明
  • 已支持的模型列表
  • 大模型官方文档
  • gemini
    • openai格式
      • openai格式
      • gemini-开启thinking
    • google原生格式
      • google格式
  • anthropic
    • openai格式
      POST
    • anthropic格式
      POST
  • openai
    • chat/completions
      POST
    • 流式/chat/completions
      POST
    • responses
      POST
  • deepseek
    • chat/completions
      POST
  • qwen
    • chat/completions(开启thinking)
      POST
    • chat/completions
      POST
  • 豆包
    • chat/completions
      POST
    • 提交视频生成任务
      POST
    • 获取视频生成任务结果
      GET
  1. qwen

chat/completions

POST
https://api.mixrouter.com/v1/chat/completions

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/jsonRequired

Example
{
    "model": "qwen3-max",
    "messages": [
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "1+2+3+。。。。+100=?"
                }
            ]
        }
    ]
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mixrouter.com/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "qwen3-max",
    "messages": [
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "1+2+3+。。。。+100=?"
                }
            ]
        }
    ]
}'

Responses

🟢200Success
application/json
Body

Example
{
    "choices": [
        {
            "finish_reason": "stop",
            "index": 0,
            "message": {
                "content": "这是一个经典的等差数列求和问题。\n\n数列:1 + 2 + 3 + … + 100\n\n这是一个首项 \\( a = 1 \\),末项 \\( l = 100 \\),项数 \\( n = 100 \\) 的等差数列。\n\n等差数列求和公式为:\n\n\\[\nS = \\frac{n(a + l)}{2}\n\\]\n\n代入数值:\n\n\\[\nS = \\frac{100(1 + 100)}{2} = \\frac{100 \\times 101}{2} = 50 \\times 101 = 5050\n\\]\n\n所以,\n\n**1 + 2 + 3 + … + 100 = 5050**。",
                "role": "assistant"
            }
        }
    ],
    "created": 1765533376,
    "id": "chatcmpl-7c273072-cc0d-4d23-883a-1a3f99ad295a",
    "model": "qwen3-max",
    "object": "chat.completion",
    "usage": {
        "completion_tokens": 176,
        "prompt_tokens": 22,
        "prompt_tokens_details": {
            "cached_tokens": 0
        },
        "total_tokens": 198
    }
}
Modified at 2025-12-12 09:55:40
Previous
chat/completions(开启thinking)
Next
chat/completions
Built with