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

> Source: <https://dev.to/lingworld_lingshu/call-deepseek-glm-kimi-and-minimax-through-one-openai-compatible-endpoint-14mn>
> Published: 2026-12-01 20:07:20+00:00

**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.

*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](https://ai.lingapp.io/en/)) 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.

``` python
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](https://ai.lingapp.io/en/pricing) 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](https://github.com/lingworld-lingshu/lingshu-examples). Full details are in the [API docs](https://ai.lingapp.io/en/docs) and the [FAQ](https://ai.lingapp.io/en/faq).
