{"slug": "call-deepseek-glm-kimi-and-minimax-through-one-openai-compatible-endpoint", "title": "Call DeepSeek, GLM, Kimi and MiniMax through one OpenAI-compatible endpoint", "summary": "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.", "body_md": "*Disclosure: I work on Ling World Lingshu, the service described in this post.*\n\nIf 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.\n\n``` python\nfrom openai import OpenAI\n\nclient = OpenAI(\n    api_key=\"sk-YOUR_KEY\",\n    base_url=\"https://ai.lingapp.io/v1\",\n)\n\nstream = client.chat.completions.create(\n    model=\"flash-std\",\n    messages=[{\"role\": \"user\", \"content\": \"Explain SSE in two sentences.\"}],\n    stream=True,\n    stream_options={\"include_usage\": True},\n)\nfor chunk in stream:\n    if chunk.choices:\n        print(chunk.choices[0].delta.content or \"\", end=\"\")\n```\n\nKeep the `if chunk.choices` check. Because the request sets `include_usage`, the last chunk carries token usage and has an empty `choices` list.\n\nPrices are USD per million tokens, as listed on 2 December 2026.\n\n| Model | Model ID | Input | Cached input | Output | \n|---|---|---|---|---|\n| DeepSeek V4.1 Flash | `flash-std` | 0.083 | 0.005 | 0.34 | \n| GLM 5.3 Flash | `plus-std` | 0.104 | 0.0442 | 0.48 | \n| Kimi K3.1 Pro | `kimi` | 1.00 | 0.18 | 5.00 | \n| MiniMax M3.1 Flash | `minimax-flash` | 0.10 | 0.01 | 0.40 | \n\nThe `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.\n\nThe 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`:\n\n```\nexport ANTHROPIC_BASE_URL=https://ai.lingapp.io\nexport ANTHROPIC_AUTH_TOKEN=sk-YOUR_KEY\n```\n\n`Retry-After` header. The chat limit is 40 requests per minute per source IP.\nRunnable 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).", "url": "https://wpnews.pro/news/call-deepseek-glm-kimi-and-minimax-through-one-openai-compatible-endpoint", "canonical_source": "https://dev.to/lingworld_lingshu/call-deepseek-glm-kimi-and-minimax-through-one-openai-compatible-endpoint-14mn", "published_at": "2026-12-01 20:07:20+00:00", "updated_at": "2026-12-01 20:14:03.624208+00:00", "lang": "en", "topics": ["ai-products", "ai-tools", "large-language-models", "developer-tools", "ai-infrastructure"], "entities": ["Ling World Lingshu", "DeepSeek", "GLM", "Kimi", "MiniMax", "Claude Code", "Anthropic", "OpenAI"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/call-deepseek-glm-kimi-and-minimax-through-one-openai-compatible-endpoint", "markdown": "https://wpnews.pro/news/call-deepseek-glm-kimi-and-minimax-through-one-openai-compatible-endpoint.md", "text": "https://wpnews.pro/news/call-deepseek-glm-kimi-and-minimax-through-one-openai-compatible-endpoint.txt", "jsonld": "https://wpnews.pro/news/call-deepseek-glm-kimi-and-minimax-through-one-openai-compatible-endpoint.jsonld"}}