LiteLLM-compatible API

Plug one OpenAI-compatible endpoint into LiteLLM

LiteLLM speaks OpenAI by default. Register this gateway as an OpenAI-compatible provider — one base URL, one key — and route GPT, Claude, Gemini, Kimi, GLM and DeepSeek through your existing LiteLLM setup.

This gateway as a LiteLLM provider vs. wiring each provider

LiteLLM can talk to many providers, but each needs its own credentials and config. Pointing it at one compatible gateway collapses that to a single entry.

This gateway in LiteLLMPer-provider in LiteLLM
Provider entries to configureOne OpenAI-compatible entryOne block per provider with separate keys
Credentials to rotateA single keyA key per upstream provider
Model routingSwitch by model string under one base URLMap each model to its provider config
Chinese modelsKimi, Qwen, GLM, DeepSeek on the same entrySeparate setup, some not natively supported
BillingPrepaid CNY credits, no expiryEach provider billed separately
Provider-native quirksCommon OpenAI surfaceFull per-provider parameter support

Who this is for

A good fit if you

  • Already run LiteLLM (library or proxy) and want fewer provider configs
  • Want one key and base URL to cover frontier and Chinese models
  • Prefer rotating a single credential over many provider keys
  • Want prepaid credits instead of several metered bills

Not the right fit if you

  • Need LiteLLM to pass provider-native parameters this gateway doesn't expose
  • Must keep direct per-provider billing for cost attribution
  • Require USD invoicing for procurement
  • Depend on a model the gateway does not route

Honest limitations

What to expect when LiteLLM points at a compatible gateway.

  • LiteLLM's provider-specific features only work if the underlying surface exposes them; a compatible endpoint covers the common OpenAI parameters.
  • Billing and prepaid credits are in CNY; LiteLLM cost tracking will reflect gateway pricing, not upstream vendor pricing.
  • Rate limits are per key — configure LiteLLM retries and backoff for HTTP 429.
  • We do not publish latency numbers we have not measured. Benchmark through your LiteLLM setup before committing.

What you register in LiteLLM

The concrete values for an OpenAI-compatible provider entry. Multipliers apply to a 0.4 CNY per 1M token base.

Base URLhttps://api.weeanno.example/v1Use as the api_base for an openai-compatible LiteLLM provider.
Chat endpoint/v1/chat/completionsFull URL: https://api.weeanno.example/v1/chat/completions.
Auth headerBearer keyAuthorization: Bearer sk-your-api-key.
Models12+ familiesGPT, Claude, Gemini, Kimi, Qwen, GLM, DeepSeek, MiniMax, MiMo, StepFun.
Lowest rate0.04 CNY / 1M0.1x models for cheap, high-volume routing.
Cached inputfrom 0.1xCache hits bill from 10% of the normal per-token rate.

Throughput and latency through LiteLLM depend on your deployment and region. We do not publish numbers we have not measured — run your own LiteLLM benchmark against the docs endpoint.

LiteLLM-compatible API — FAQ

How do I add this gateway to LiteLLM?

Register an OpenAI-compatible provider with api_base set to https://api.weeanno.example/v1 and your key as the api_key. Then reference models by their gateway model string.

Does it work with both the LiteLLM library and the proxy?

Yes. Anything that accepts an OpenAI-compatible base URL and key works — the Python library, the proxy server, and frameworks that wrap LiteLLM.

Can LiteLLM route Chinese models through it?

Yes. Because they share one OpenAI-compatible base URL, LiteLLM reaches Kimi, Qwen, GLM and DeepSeek by model string without separate provider setup.

How is cost tracked?

LiteLLM tracks usage against the gateway's per-model rates (a fixed multiplier on a 0.4 CNY per 1M token base), paid from prepaid credits that never expire.

One LiteLLM provider, every model

Buy a key, add one OpenAI-compatible entry, and route everything through LiteLLM.