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

949 B
Raw Blame
import type { RegistryEntry } from "../../shared.ts";
import { buildOpenAiCompatibleRegistryEntry } from "../../shared.ts";

/**
 * Openference API key — OpenAI-compatible gateway (https://openference.com/).
 *
 * Bearer API keys (`sk-…`) hit the same api.openference.com/v1/* surface as OAuth
 * JWTs. Live model discovery uses NAMED_OPENAI_STYLE_PROVIDERS; the seed below is
 * the offline fallback when the live fetch fails.
 */
export const openference_apiProvider: RegistryEntry = buildOpenAiCompatibleRegistryEntry({
  id: "openference-api",
  alias: "ofa",
  baseUrl: "https://api.openference.com/v1/chat/completions",
  responsesBaseUrl: "https://api.openference.com/v1/responses",
  passthroughModels: true,
  models: [
    { id: "GLM-5.2", name: "GLM 5.2", contextLength: 850000 },
    { id: "Qwen3.8 27b", name: "Qwen3.8 27B", contextLength: 262144 },
    { id: "Llama 3.2 3B", name: "Llama 3.2 3B", contextLength: 131072 },
  ],
});