🚀 Now in early access · Kimi K3 + GLM-5.2 live

One API.
Every model.
70% cheaper.

OpenAI-compatible gateway to Kimi K3, GLM-5.2, DeepSeek V3 and more. Drop-in replacement for OpenAI/Claude — just change the base URL.

cURL
Python
Node.js
# Drop-in replacement for OpenAI/Claude curl https://onefreeapi.cloud/v1/chat/completions \ -H "Authorization: Bearer sk-ofa-..." \ -H "Content-Type: application/json" \ -d '{ "model": "kimi-k3", "messages": [{"role":"user","content":"Hello!"}] }'
23+
Models available
70%
Cheaper than OpenAI
5
Global edge nodes
100K
Free tokens on signup

Models

Top open & proprietary models, all behind one API. Switch models by changing one parameter.

Kimi K3 NEW
Moonshot's flagship. 256K context. Coding & reasoning.
$0.003/1K in · $0.006/1K out256K ctx
GLM-5.2
Zhipu AI · 1M context. Long-document analysis.
$0.003/1K in · $0.006/1K out1M ctx
DeepSeek V3
Open-source flagship. Best price/performance.
$0.001/1K in · $0.002/1K out128K ctx
Doubao Seed 1.6
ByteDance. Fast, cheap, multilingual.
$0.0015/1K in · $0.003/1K out256K ctx
Qwen 2.5 FREE
Local inference. Test & prototype free.
$0 · 100 calls/day32K ctx
More coming
GPT-4.1, Claude Sonnet 4.5, Gemini 3 — all in Q3.
Stay tunedRoadmap

Simple Pricing

Pay-as-you-go tokens. No monthly commitment. Free tier forever.

Free
$0/mo
Test & prototype. No credit card.
  • 100K free tokens on signup
  • 100 calls/day on free models
  • 1 API key
  • Community support
Start free →
Enterprise
$139/mo
Scale with SLA & support.
  • 10M tokens included
  • Unlimited API keys
  • Multi-region routing
  • Priority support (SLA)
  • Custom invoicing (USDT/WeChat/Alipay)
Contact us

Drop-in Replacement

If your app uses OpenAI SDK or Anthropic SDK, you're 30 seconds away.

Python (OpenAI SDK)
# pip install openai from openai import OpenAI client = OpenAI( base_url="https://onefreeapi.cloud/v1", api_key="sk-ofa-...", # your OneFreeAPI key ) response = client.chat.completions.create( model="kimi-k3", # or "glm-5.2", "deepseek-v3" messages=[{"role": "user", "content": "Hello!"}], ) print(response.choices[0].message.content)

Coding Tools

Point your favorite AI coding tool at OneFreeAPI — one key, every model.

OpenClaw

原生支持 OpenAI 兼容端点。编辑 ~/.openclaw/openclaw.json:

openclaw.json
{ "models": { "default": "onefreeapi/kimi-k3", "providers": { "onefreeapi": { "baseUrl": "https://onefreeapi.cloud/v1", "apiKey": "sk-ofa-...", "api": "openai-completions", "models": [ { "id": "kimi-k3", "name": "Kimi K3", "contextWindow": 262144, "maxTokens": 8192 }, { "id": "glm-5.2", "name": "GLM-5.2", "contextWindow": 1048576, "maxTokens": 8192 } ] } } } }

Codex CLI

编辑 ~/.codex/config.toml,并 export ONEFREEAPI_API_KEY=sk-ofa-...。注意 wire_api = "chat" 必须显式指定(我们提供 Chat Completions;部分新版 Codex 仅支持 Responses API,如遇报错请使用仍支持 chat wire 的版本)。

config.toml
model = "kimi-k3" model_provider = "onefreeapi" [model_providers.onefreeapi] name = "OneFreeAPI" base_url = "https://onefreeapi.cloud/v1" env_key = "ONEFREEAPI_API_KEY" wire_api = "chat"

Claude Code

Claude Code 使用 Anthropic Messages 协议,经 claude-code-router 桥接到 OneFreeAPI 的 OpenAI 端点:npm i -g @musistudio/claude-code-router,然后编辑 ~/.claude-code-router/config.json,最后以 ccr code 启动。

config.json
{ "Providers": [ { "name": "onefreeapi", "api_base_url": "https://onefreeapi.cloud/v1/chat/completions", "api_key": "sk-ofa-...", "models": ["kimi-k3", "glm-5.2"] } ], "Router": { "default": "onefreeapi,kimi-k3" } }

Any OpenAI-compatible tool

Cursor / Cline / Continue / Kimi Code 等任何支持自定义 OpenAI Base URL 的工具,填这三项即可:

settings
Base URL: https://onefreeapi.cloud/v1 API Key: sk-ofa-... # dashboard 里创建,只显示一次 Model: kimi-k3 # 或 glm-5.2 / deepseek-v3 / glm-4-flash,GET /v1/models 查最新

Frequently Asked Questions

Everything you need to know about the OneFreeAPI gateway.

What is OneFreeAPI?
OneFreeAPI is an OpenAI-compatible LLM API gateway. One API key gives you access to Kimi K3, GLM-5.2, DeepSeek V3, Doubao Seed 1.6, Qwen and more — with unified billing, automatic failover between upstream providers, and prices up to 70% cheaper than OpenAI.
How do I migrate from OpenAI?
It takes about 30 seconds. Keep using the official OpenAI SDK (Python, Node.js) or plain HTTP, set 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.
Which models can I use?
Current lineup includes Kimi K3 (Moonshot, 256K context), GLM-5.2 (Zhipu, 1M context), DeepSeek V3, Doubao Seed 1.6 (ByteDance) and Qwen 2.5 (free tier). The live list is always available at GET /v1/models, and new flagship models are added as they launch.
Is there a free tier?
Yes. Every new account gets 100K free tokens on signup — no credit card required — plus 100 free calls per day on free-tier models like Qwen 2.5. Paid plans start at $14/month for 1M tokens.
What payment methods do you accept?
Pay-as-you-go token top-ups and subscriptions can be paid with USDT, WeChat Pay or Alipay. Enterprise plans support custom invoicing — contact support@onefreeapi.cloud.