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

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

// g4f.space/api/ollama — optional-auth hosted Ollama gateway (gpt4free, issue #6650).
// Anonymous requests require proof-of-work cake credits; a member API key is the
// alternative. This remote OpenAI-compatible proxy is distinct from local/cloud/search.
export const g4f_ollamaProvider: RegistryEntry = {
  id: "g4f-ollama",
  alias: "g4foll",
  format: "openai",
  executor: "default",
  baseUrl: "https://g4f.space/api/ollama/v1/chat/completions",
  modelsUrl: "https://g4f.space/api/ollama/v1/models",
  authType: "optional",
  authHeader: "bearer",
  passthroughModels: true,
  models: [{ id: "gemma3:4b", name: "Gemma 3 4B (g4f/Ollama)" }],
};