Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

6.8 KB
Raw Blame
export const NAMED_OPENAI_STYLE_PROVIDERS = new Set([
  "modal",
  "reka",
  "empower",
  "nous-research",
  "poe",
  "siliconflow",
  // #3976: these carry a real modelsUrl but were not classified by any live-fetch
  // branch, so their hardcoded registry catalog was served instead of the live
  // `<baseUrl>/models` list. Live fetch falls back to the local catalog on error.
  "llm7",
  "byteplus",
  // #4202: zenmux is the same case — its free models (e.g. z-ai/glm-5.2-free,
  // moonshotai/kimi-k2.7-code-free) live only on the upstream /models list.
  "zenmux",
  // #4249: vercel-ai-gateway carries a real baseUrl (.../v1/chat/completions) but
  // was unclassified, so import served the 5-entry hardcoded catalog instead of the
  // live `https://ai-gateway.vercel.sh/v1/models` list. Falls back to local on error.
  "vercel-ai-gateway",
  // #4239 / #4155 / #3841: OpenAI-compatible aggregators whose real catalog lives
  // on the upstream `/v1/models` list — serve it live, fall back to the seeded
  // registry catalog on error (same case as zenmux).
  "openadapter",
  "dit",
  "tokenrouter",
  "token-kiosk",
  // provider-model-sweep (2026-06-19): same class as #3976/#4202/#4249 — keyed
  // openai-style providers with a real live `<baseUrl>/models` catalog, served
  // their small hardcoded seed because unclassified. Seed stays as offline fallback.
  "venice",
  "deepinfra",
  "wandb",
  "pollinations",
  "nscale",
  "inference-net",
  "moonshot",
  // provider-model-sweep (2026-06-19) cont.: GPU-cloud / aggregator marketplaces
  // hosting large, volatile OSS catalogs. The sweep confirmed each exposes a live
  // `<baseUrl>/v1/models` endpoint (200 public or 401/403 = exists + keyed), so live
  // fetch keeps the catalog fresh; the registry seed remains the offline fallback.
  "crof",
  "featherless-ai",
  "ovhcloud",
  "sambanova",
  "orcarouter",
  "unorouter",
  "uncloseai",
  "opencode-go",
  "baseten",
  "hyperbolic",
  "nebius",
  "scaleway",
  "together",
  // escalated cmqlvxg4o: api-airforce has a live `https://api.airforce/v1/models` catalog
  // but was left out of the sweep, so it served a stale hardcoded seed (grok-3, grok-2-1212,
  // claude-3.7-sonnet …). Live fetch keeps it fresh; seed stays as the offline fallback.
  "api-airforce",
  // DGrid is an OpenAI-compatible gateway whose default seed is the free auto-router;
  // the full model catalog is discovered live from https://api.dgrid.ai/v1/models.
  "dgrid",
  // b.ai is an OpenAI-compatible LLM gateway with no static seed — it proxies many
  // upstream models (GPT, Claude, Gemini, MiniMax, Kimi, GLM...) behind one key, so the
  // full catalog is discovered live from https://api.b.ai/v1/models.
  "bai",
  // Qiniu (七牛云 AI inference) is an OpenAI-compatible gateway with no static seed —
  // it proxies many upstream models (DeepSeek, Claude, Kimi...) behind one key, so the
  // full catalog is discovered live from https://api.qnaigc.com/v1/models.
  "qiniu",
  // OpenVecta (https://openvecta.com/) is an OpenAI-compatible AI inference gateway
  // hosting LLMs (GLM, Claude, DeepSeek, GPT OSS, Llama, Kimi, Nemotron…) plus
  // text-embedding-* models behind a single Bearer key. The full catalog is
  // discovered live from https://api.openvecta.com/v1/models; the registry seed
  // (registry/openvecta) covers the most-used LLMs as the offline fallback.
  "openvecta",
  // Openference (https://openference.com/) — OAuth JWT or API key on the same
  // OpenAI-compatible gateway. Live catalog from api.openference.com/v1/models.
  "openference",
  "openference-api",
  // Typhoon (SCB 10X, Thailand) and Inception Labs (Mercury diffusion models) are
  // OpenAI-compatible providers whose /v1/models endpoint exists and is used for
  // catalog discovery (verified 2026-07-22). Inception's /v1/models is public (200 for
  // any key), so its key validation probes the chat route instead
  // (src/lib/providers/validation/inception.ts).
  "typhoon",
  "inception",
  // Sarvam AI (India), Writer Palmyra, and PLaMo (Preferred Networks, Japan) are
  // OpenAI-compatible providers whose /v1/models endpoint exists and is used for
  // catalog discovery/key validation (verified 2026-07-22).
  "sarvam",
  "writer",
  "plamo",
  // frontier-providers-tier1 sweep: clova-studio, internlm, ant-ling each carry a
  // live `<baseUrl>/models` endpoint confirmed 401 (exists + keyed) by curl smoke
  // test. Live fetch keeps their catalogs fresh; the registry seed remains the
  // offline fallback.
  "clova-studio",
  "internlm",
  "ant-ling",
  "nanogpt",
  // NaN.Builders — GET https://api.nan.builders/v1/models is key-gated; the registry
  // seed is only the offline fallback for its frequently-renamed model aliases.
  "nan",
  "nara",
  // Logfare (https://logfare.ai) — free OpenAI-compatible gateway live-verified
  // 2026-08-21: GET https://logfare.ai/v1/models returns a real 20-model catalog
  // (11 chat-capable). Live fetch keeps it fresh; the registry seed stays as the
  // offline fallback.
  "logfare",
  // Token Market is an OpenAI-compatible multi-model gateway. Its catalog is
  // discovered from the authenticated https://api.tokensmarket.ai/v1/models endpoint.
  "tokenmarket",
  // Agnes hosts a live OpenAI-style /v1/models catalog on both the
  // international (apihub.agnes-ai.com) and CN (api.agnes-ai.cn) hosts.
  // Without this, sync-models serves the static registry seed and CN
  // connections never discover 2.5/3.0 Flash.
  "agnes",
  // Agnes CN /v1/models is not the intl catalog; this discovers that host only.
  "agnes-cn",
  // #15307: xiaomi-mimo / xiaomi-mimo-token-plan are keyed OpenAI-style providers
  // whose real catalog lives on the upstream `/v1/models` list (the token-plan host
  // serves 8 models including v2.6-pro/v2.6-flash and the ASR/TTS variants, while the
  // registry seed only has 2). Unclassified, import never probed the upstream and
  // fell through to the hardcoded seed with "API unavailable — using local catalog".
  // Same case as #4249 (vercel-ai-gateway). Seed stays as the offline fallback.
  "xiaomi-mimo",
  "xiaomi-mimo-token-plan",
  // Apmix (https://apmix.ai) — subscription gateway, live-verified 2026-09-25:
  // GET https://api.apmix.ai/v1/models is key-scoped (every plan sees a
  // different slice of the catalog), so live discovery is the only way a
  // connection's model list matches what its key can reach. The registry seed
  // (41-model union of apmix.ai/models) stays as the offline fallback.
  "apmix",
  // Demon Route has a key-scoped /v1/models endpoint. Without this classification,
  // the dashboard only shows static seeds and cannot synchronize the live catalog
  // of vendor-qualified open-weight model IDs (#16979).
  "demonroute",
]);

export function isNamedOpenAIStyleProvider(provider: string): boolean {
  return NAMED_OPENAI_STYLE_PROVIDERS.has(provider);
}