mixrouter
  1. deepseek
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. deepseek

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":"deepseek-chat",
    "messages":[
        {
            "role":"user",
            "content":[
                {
                    "type":"text",
                    "text":"1+2+3+。。。。+100=?"
                }
            ]
        }
    ],
    "thinking":{
        "type":"enabled"
    }
}

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":"deepseek-chat",
    "messages":[
        {
            "role":"user",
            "content":[
                {
                    "type":"text",
                    "text":"1+2+3+。。。。+100=?"
                }
            ]
        }
    ],
    "thinking":{
        "type":"enabled"
    }
}'

Responses

🟢200Success
application/json
Body

Example
{
    "id": "0c0533f6-417f-4160-87b9-a1c3eba2432f",
    "object": "chat.completion",
    "created": 1765529467,
    "model": "deepseek-reasoner",
    "choices": [
        {
            "index": 0,
            "message": {
                "role": "assistant",
                "content": "5050",
                "reasoning_content": "We are asked: \"1+2+3+。。。。+100=?\" This is the sum of integers from 1 to 100. The ellipsis is written with Chinese dots \"。。。。\". So we need to compute the sum.\n\nThe formula for the sum of the first n natural numbers is S = n(n+1)/2. For n=100, S = 100*101/2 = 50*101 = 5050.\n\nThus, the answer is 5050.\n\nWe should output the answer clearly. The question is in Chinese, but the answer is a number. We can respond with just the number or a short explanation. Since it's a simple arithmetic problem, likely just the answer is expected.\n\nBut since the instruction says \"You are an AI assistant that responds to the user's questions,\" I'll provide a concise response.\n\nFinal answer: 5050."
            },
            "logprobs": null,
            "finish_reason": "stop"
        }
    ],
    "usage": {
        "prompt_tokens": 15,
        "completion_tokens": 186,
        "total_tokens": 201,
        "prompt_tokens_details": {
            "cached_tokens": 0
        },
        "completion_tokens_details": {
            "reasoning_tokens": 183
        },
        "prompt_cache_hit_tokens": 0,
        "prompt_cache_miss_tokens": 15
    },
    "system_fingerprint": "fp_eaab8d114b_prod0820_fp8_kvcache"
}
Modified at 2025-12-12 08:54:49
Previous
responses
Next
chat/completions(开启thinking)
Built with