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

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

export const qianfanProvider: RegistryEntry = {
  id: "qianfan",
  alias: "qianfan",
  format: "openai",
  executor: "default",
  baseUrl: "https://qianfan.baidubce.com/v2/chat/completions",
  modelsUrl: "https://qianfan.baidubce.com/v2/models",
  authType: "apikey",
  authHeader: "bearer",
  defaultContextLength: 128000,
  models: [
    { id: "ernie-5.1", name: "ERNIE 5.1" },
    { id: "ernie-5.0-thinking-latest", name: "ERNIE 5.0 Thinking Latest" },
    { id: "ernie-x1.1", name: "ERNIE X1.1", contextLength: 64000 },
  ],
};