OpenAI-compatible gateway to GLM-5.2, Doubao Seed 2.1 and GLM-4-Flash. Drop-in replacement for OpenAI/Claude — just change the base URL.
Top open & proprietary models, all behind one API. Switch models by changing one parameter.
Pay-as-you-go tokens. No monthly commitment. Free tier forever.
If your app uses OpenAI SDK or Anthropic SDK, you're 30 seconds away.
Point your coding tool or AI agent at OneFreeAPI — one key, every model.
In WorkBuddy and similar agents, pick Custom (OpenAI-compatible API) in “Add model” and fill in these four fields. The model name must be a bare id — writing openai/glm-4-flash returns Model not found. Heads-up: some clients’ “Test connection” only calls GET /v1/models, which is public here, so a wrong key can still show green — send one real message to confirm.
Native support for OpenAI-compatible endpoints. Edit ~/.openclaw/openclaw.json:
Edit ~/.codex/config.toml and export ONEFREEAPI_API_KEY=sk-ofa-.... Note that wire_api = "chat" must be set explicitly (we serve Chat Completions; some newer Codex builds only support the Responses API).
Claude Code speaks the Anthropic Messages protocol. Bridge it to OneFreeAPI via claude-code-router: npm i -g @musistudio/claude-code-router, then edit ~/.claude-code-router/config.json and launch with ccr code.
Cursor, Cline, Continue, Cherry Studio, ChatBox, Dify, n8n — any tool or agent that accepts a custom OpenAI Base URL. Fill in these three fields:
Everything you need to know about the OneFreeAPI gateway.
base_url to https://onefreeapi.cloud/v1, and replace the API key with your OneFreeAPI key (sk-ofa-...). No other code changes are needed — chat completions, streaming and model listing follow the OpenAI schema.GET /v1/models.support@onefreeapi.cloud.