OpenAI-compatible gateway to Kimi K3, GLM-5.2, DeepSeek V3 and more. 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 favorite AI coding tool at OneFreeAPI — one key, every model.
原生支持 OpenAI 兼容端点。编辑 ~/.openclaw/openclaw.json:
编辑 ~/.codex/config.toml,并 export ONEFREEAPI_API_KEY=sk-ofa-...。注意 wire_api = "chat" 必须显式指定(我们提供 Chat Completions;部分新版 Codex 仅支持 Responses API,如遇报错请使用仍支持 chat wire 的版本)。
Claude Code 使用 Anthropic Messages 协议,经 claude-code-router 桥接到 OneFreeAPI 的 OpenAI 端点:npm i -g @musistudio/claude-code-router,然后编辑 ~/.claude-code-router/config.json,最后以 ccr code 启动。
Cursor / Cline / Continue / Kimi Code 等任何支持自定义 OpenAI Base URL 的工具,填这三项即可:
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, and new flagship models are added as they launch.support@onefreeapi.cloud.