cd /news/ai-products/call-deepseek-glm-kimi-and-minimax-t… · home › topics › ai-products › article
[ARTICLE · art-179707] src=dev.to ↗ pub= topic=ai-products verified=true sentiment=· neutral

Call DeepSeek, GLM, Kimi and MiniMax through one OpenAI-compatible endpoint

A developer on the Ling World Lingshu team released a service that routes DeepSeek, GLM, Kimi and MiniMax models through a single OpenAI Chat Completions-compatible endpoint, eliminating the need for separate accounts, keys and bills per vendor. The gateway also supports the Anthropic Messages format at /v1/messages, letting Claude Code point at it via ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN. Listed pricing ranges from $0.083 per million input tokens for DeepSeek V4.1 Flash (flash-std) to $5.00 per million output tokens for Kimi K3.1 Pro, with each model offering a 1-million-token context window and a chat limit of 40 requests per minute per source IP.

key takeaway

A single OpenAI-compatible base_url and key can route requests across DeepSeek, GLM, Kimi and MiniMax by swapping model IDs like flash-std and kimi, with the same key also working against the Anthropic Messages format for Claude Code.

by read2 min views7 publishedDec 1, 2026

Disclosure: I work on Ling World Lingshu, the service described in this post.

If your app uses more than one Chinese model family, you normally end up with one account, one key and one bill per vendor. Ling World Lingshu (ai.lingapp.io) puts DeepSeek, GLM, Kimi and MiniMax behind a single endpoint that speaks the OpenAI Chat Completions format. This post shows what you change and what to expect.

from openai import OpenAI

client = OpenAI(
    api_key="sk-YOUR_KEY",
    base_url="https://ai.lingapp.io/v1",
)

stream = client.chat.completions.create(
    model="flash-std",
    messages=[{"role": "user", "content": "Explain SSE in two sentences."}],
    stream=True,
    stream_options={"include_usage": True},
)
for chunk in stream:
    if chunk.choices:
        print(chunk.choices[0].delta.content or "", end="")

Keep the if chunk.choices check. Because the request sets include_usage, the last chunk carries token usage and has an empty choices list.

Prices are USD per million tokens, as listed on 2 December 2026.

Model Model ID Input Cached input Output
DeepSeek V4.1 Flash flash-std 0.083 0.005 0.34
GLM 5.3 Flash plus-std 0.104 0.0442 0.48
Kimi K3.1 Pro kimi 1.00 0.18 5.00
MiniMax M3.1 Flash minimax-flash 0.10 0.01 0.40

The flash-std and kimi prices are promotional at the time of writing, so check the pricing page before you budget. Each model has a context window of 1 million tokens. GET /v1/models returns the models your key can use.

The same key works with the Anthropic Messages format at /v1/messages. For Claude Code, set two environment variables and choose a model ID such as flash-std:

export ANTHROPIC_BASE_URL=https://ai.lingapp.io
export ANTHROPIC_AUTH_TOKEN=sk-YOUR_KEY

Retry-After header. The chat limit is 40 requests per minute per source IP. Runnable versions of these snippets are in the examples repository. Full details are in the API docs and the FAQ.

── more in #ai-products 4 stories · sorted by recency
── more on @ling world lingshu 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/call-deepseek-glm-ki…] indexed:0 read:2min 2026-12-01 · —