DEV Community

举起尾巴
举起尾巴

Posted on

Access DeepSeek, Qwen, and Kimi with One API Key — and Pay 40% Less

This post shows how to call DeepSeek, Qwen, Kimi, GLM, and more through a single API key using RouteAI — an aggregation layer that routes to official Alibaba Cloud / Tencent Cloud endpoints at a discount. No need to create multiple cloud accounts.

Step 1 — Install the SDK

pip install openai

Step 2 — Initialize the client

Point base_url to RouteAI's endpoint, set your RouteAI key, and use the model ID directly (e.g. qwen3.7-plusdeepseek-v4-flashkimi-k2.6). Everything else — streaming, function calling, extended params like enable_thinking — works identically to the OpenAI SDK.

Current pricing highlights:

  • DeepSeek V4 Flash: $0.12/M input (official: $0.20)
  • Qwen3.7 Plus: $0.24/M (official: $0.40)
  • Qwen3.5 Flash: $0.06/M (official: $0.10)
  • Kimi K2.6: $1.004/M (official: $1.34)

All usage is tracked in one dashboard. No more logging into three separate cloud consoles to reconcile billing.

Top comments (0)