Run OpenClaw on a cheaper API
OpenClaw is free and open source — what you pay for is the model behind it. Connect OpenClaw to freeaiapi.ai to use any major model through one key, priced up to 30% below official rates.
Add freeaiapi.ai as an OpenClaw provider
Add a custom provider to ~/.openclaw/openclaw.json (JSON5), then set it as the default model. Put your key in the FREEAIAPI_KEY environment variable.
{
models: {
mode: "merge",
providers: {
freeaiapi: {
baseUrl: "https://api.freeaiapi.ai/v1",
apiKey: "${FREEAIAPI_KEY}",
api: "openai-completions",
models: [
{ id: "deepseek-chat", name: "DeepSeek Chat" },
{ id: "gpt-4o-mini", name: "GPT-4o mini" },
],
},
},
},
agents: {
defaults: { model: { primary: "freeaiapi/deepseek-chat" } },
},
}What OpenClaw costs per model
Live prices per 1M tokens. Cheaper models keep an always-on assistant affordable.
| Model | Official input /M | Official output /M | Our input /M | Our output /M | You save |
|---|---|---|---|---|---|
| text-embedding-3-small | $0.02 | $0.02 | $0.014 | $0.014 | −30% |
| doubao-seed-2-0-mini-260215 | $0.03 | $0.30 | $0.025 | $0.247 | −17% |
| doubao-seed-2-0-mini-260428 | $0.03 | $0.30 | $0.025 | $0.247 | −17% |
| gpt-5-nano | $0.05 | $0.40 | $0.035 | $0.28 | −30% |
| gpt-5-nano-2025-08-07 | $0.05 | $0.40 | $0.035 | $0.28 | −30% |
| qwen-flash | $0.05 | $0.40 | $0.035 | $0.28 | −30% |
| glm-4-airx | $0.053 | $0.212 | $0.037 | $0.148 | −30% |
| glm-4-flash | $0.053 | $0.212 | $0.037 | $0.148 | −30% |
| glm-4-long | $0.053 | $0.212 | $0.037 | $0.148 | −30% |
| doubao-seed-1-6-flash-250828 | $0.045 | $0.45 | $0.037 | $0.371 | −17% |
| claude-haiku-5-5 | $0.10 | $0.50 | $0.07 | $0.35 | −30% |
| gemini-2.5-flash-lite | $0.10 | $0.40 | $0.07 | $0.28 | −30% |
| gpt-4.1-nano | $0.10 | $0.40 | $0.07 | $0.28 | −30% |
| gpt-4.1-nano-2025-04-14 | $0.10 | $0.40 | $0.07 | $0.28 | −30% |
| gpt-6-luna | $0.10 | $0.50 | $0.07 | $0.35 | −30% |
| text-embedding-ada-002 | $0.10 | $0.10 | $0.07 | $0.07 | −30% |
| qwen3-rerank | $0.10 | $0 | $0.07 | $0 | — |
| doubao-seed-2-0-lite-260215 | $0.09 | $0.55 | $0.074 | $0.454 | −17% |
| doubao-seed-2-0-lite-260428 | $0.09 | $0.55 | $0.074 | $0.454 | −17% |
| text-embedding-3-large | $0.13 | $0.13 | $0.091 | $0.091 | −30% |
| mimo-v2.5 | $0.14 | $0.28 | $0.098 | $0.196 | −30% |
| mimo-v2.6-flash | $0.14 | $0.28 | $0.098 | $0.196 | −30% |
| doubao-seed-1-6-250615 | $0.12 | $1.20 | $0.099 | $0.99 | −17% |
| doubao-seed-1-6-251015 | $0.12 | $1.20 | $0.099 | $0.99 | −17% |
| doubao-seed-1-6-thinking-250615 | $0.12 | $1.20 | $0.099 | $0.99 | −17% |
| doubao-seed-1-6-thinking-250715 | $0.12 | $1.20 | $0.099 | $0.99 | −17% |
| doubao-seed-1-8-251228 | $0.12 | $1.20 | $0.099 | $0.99 | −17% |
| glm-5.3-flash | $0.15 | $0.50 | $0.105 | $0.35 | −30% |
| gpt-4o-mini | $0.15 | $0.60 | $0.105 | $0.42 | −30% |
| gpt-4o-mini-2024-07-18 | $0.15 | $0.60 | $0.105 | $0.42 | −30% |
| MiniMax-M3.1-Flash | $0.15 | $0.60 | $0.105 | $0.42 | −30% |
| qwen3.8-flash | $0.15 | $0.47 | $0.105 | $0.329 | −30% |
| qwen3.8-omni-flash | $0.15 | $0.47 | $0.105 | $0.329 | −30% |
| glm-4.5-air | $0.20 | $1.10 | $0.14 | $0.77 | −30% |
| gpt-5.4-nano | $0.20 | $1.25 | $0.14 | $0.875 | −30% |
| gpt-5.4-nano-2026-03-17 | $0.20 | $1.25 | $0.14 | $0.875 | −30% |
| gpt-5.6-luna | $0.20 | $1.20 | $0.14 | $0.84 | −30% |
| qwen3-vl-plus | $0.20 | $1.60 | $0.14 | $1.12 | −30% |
| gemini-3.1-flash-lite | $0.25 | $1.50 | $0.175 | $1.05 | −30% |
| gemini-3.1-flash-lite-preview | $0.25 | $1.50 | $0.175 | $1.05 | −30% |
| gpt-5-mini | $0.25 | $2.00 | $0.175 | $1.40 | −30% |
| gpt-5-mini-2025-08-07 | $0.25 | $2.00 | $0.175 | $1.40 | −30% |
| gpt-5.1-codex-mini | — | — | $0.175 | $1.40 | — |
| qwen3.5-35b-a3b | $0.25 | $2.00 | $0.175 | $1.40 | −30% |
| doubao-seed-1-6-vision-250815 | $0.24 | $1.92 | $0.198 | $1.58 | −17% |
| deepseek-v4.1-flash | $0.30 | $1.20 | $0.21 | $0.84 | −30% |
| gemini-2.5-flash | $0.30 | $2.50 | $0.21 | $1.75 | −30% |
| gemini-3.5-flash-lite | $0.30 | $2.50 | $0.21 | $1.75 | −30% |
| MiniMax-M2.5 | $0.30 | $1.20 | $0.21 | $0.84 | −30% |
| MiniMax-M2.7 | $0.30 | $1.20 | $0.21 | $0.84 | −30% |
| MiniMax-M3 | $0.30 | $1.20 | $0.21 | $0.84 | −30% |
| qwen3.5-27b | $0.30 | $2.40 | $0.21 | $1.68 | −30% |
| gpt-4.1-mini | $0.40 | $1.60 | $0.28 | $1.12 | −30% |
| gpt-4.1-mini-2025-04-14 | $0.40 | $1.60 | $0.28 | $1.12 | −30% |
| qwen-plus | $0.40 | $1.20 | $0.28 | $0.84 | −30% |
| qwen-plus-2025-12-01 | $0.40 | $1.20 | $0.28 | $0.84 | −30% |
| qwen3.5-122b-a10b | $0.40 | $3.20 | $0.28 | $2.24 | −30% |
| qwen3.5-plus | $0.40 | $2.40 | $0.28 | $1.68 | −30% |
| qwen3.5-plus-2026-02-15 | $0.40 | $2.40 | $0.28 | $1.68 | −30% |
| mimo-v2.6-pro | $0.435 | $0.87 | $0.304 | $0.609 | −30% |
| gemini-3-flash-preview | $0.50 | $3.00 | $0.35 | $2.10 | −30% |
| llama-3.2-1b-instruct | $0.50 | $0.125 | $0.35 | $0.087 | −30% |
| tts-1 | — | — | $0.35 | $10.50 | — |
| tts-1-1106 | — | — | $0.35 | $10.50 | — |
| tts-1-hd | — | — | $0.35 | $21.00 | — |
| tts-1-hd-1106 | — | — | $0.35 | $21.00 | — |
| qwen-plus-character | $0.50 | $1.40 | $0.35 | $0.98 | −30% |
| doubao-seed-2-1-turbo-260628 | $0.45 | $2.25 | $0.371 | $1.86 | −17% |
| doubao-seed-2-0-code-preview-260215 | $0.48 | $2.40 | $0.396 | $1.98 | −17% |
| doubao-seed-2-0-pro-260215 | $0.48 | $2.40 | $0.396 | $1.98 | −17% |
| deepseek-v3-1 | $0.58 | $1.74 | $0.406 | $1.22 | −30% |
| glm-4.5 | $0.60 | $2.40 | $0.42 | $1.68 | −30% |
| kimi-k2-0711-preview | $0.60 | $2.40 | $0.42 | $1.68 | −30% |
| kimi-k2.5 | $0.60 | $3.15 | $0.42 | $2.21 | −30% |
| qwen3.5-397b-a17b | $0.60 | $3.60 | $0.42 | $2.52 | −30% |
| qwen3-235b-a22b | — | — | $0.49 | $1.96 | — |
| gemini-3.8-flash | $0.75 | $3.75 | $0.525 | $2.63 | −30% |
| gpt-5.4-mini | $0.75 | $4.50 | $0.525 | $3.15 | −30% |
| gpt-5.4-mini-2026-03-17 | $0.75 | $4.50 | $0.525 | $3.15 | −30% |
| hy4 | $0.834 | $2.50 | $0.584 | $1.75 | −30% |
| hy4-preview | $0.834 | $2.50 | $0.584 | $1.75 | −30% |
| kimi-k2.6 | $0.95 | $4.00 | $0.665 | $2.80 | −30% |
| kimi-k2.7-code | $0.95 | $4.00 | $0.665 | $2.80 | −30% |
| claude-haiku-4-5-20251001 | $1.00 | $5.00 | $0.70 | $3.50 | −30% |
| glm-5 | $1.00 | $3.20 | $0.70 | $2.24 | −30% |
| gpt-3.5-turbo-1106 | $1.00 | $2.00 | $0.70 | $1.40 | −30% |
| gpt-6.1-terra | $1.00 | $5.00 | $0.70 | $3.50 | −30% |
| grok-build-0.1 | — | — | $0.70 | $1.40 | — |
| llama-3.2-3b-instruct | $1.00 | $0.50 | $0.70 | $0.35 | −30% |
| doubao-seed-2-1-pro-260628 | $0.90 | $4.50 | $0.743 | $3.71 | −17% |
| doubao-seed-2-1-pro-260915 | $0.90 | $4.50 | $0.743 | $3.71 | −17% |
| gpt-oss-120b | $1.10 | $4.40 | $0.77 | $3.08 | −30% |
| o3-mini | $1.10 | $4.40 | $0.77 | $3.08 | −30% |
| o3-mini-2025-01-31 | $1.10 | $4.40 | $0.77 | $3.08 | −30% |
| o4-mini | $1.10 | $4.40 | $0.77 | $3.08 | −30% |
| o4-mini-2025-04-16 | $1.10 | $4.40 | $0.77 | $3.08 | −30% |
| gpt-5 | $1.25 | $10.00 | $0.875 | $7.00 | −30% |
| gpt-5-2025-08-07 | $1.25 | $10.00 | $0.875 | $7.00 | −30% |
| gpt-5-chat-latest | $1.25 | $10.00 | $0.875 | $7.00 | −30% |
| gpt-5.1 | $1.25 | $10.00 | $0.875 | $7.00 | −30% |
| gpt-5.1-2025-11-13 | $1.25 | $10.00 | $0.875 | $7.00 | −30% |
| gpt-5.1-chat-latest | $1.25 | $10.00 | $0.875 | $7.00 | −30% |
| grok-4-20-non-reasoning | $1.25 | $2.50 | $0.875 | $1.75 | −30% |
| grok-4-20-reasoning | $1.25 | $2.50 | $0.875 | $1.75 | −30% |
| grok-4.3 | $1.25 | $2.50 | $0.875 | $1.75 | −30% |
| deepseek-v4-pro | $1.32 | $3.96 | $0.924 | $2.77 | −30% |
| glm-5.1 | $1.40 | $4.40 | $0.98 | $3.08 | −30% |
| glm-5.2 | $1.40 | $4.40 | $0.98 | $3.08 | −30% |
| glm-5.3 | $1.40 | $4.40 | $0.98 | $3.08 | −30% |
| gemini-3.5-flash | $1.50 | $9.00 | $1.05 | $6.30 | −30% |
| gpt-4o-mini-transcribe | — | — | $1.05 | $4.20 | — |
| qwen4-max | $1.50 | $4.50 | $1.05 | $3.15 | −30% |
| qwen-max | $1.60 | $6.40 | $1.12 | $4.48 | −30% |
| gpt-5.2 | $1.75 | $14.00 | $1.23 | $9.80 | −30% |
| gpt-5.2-chat-latest | $1.75 | $14.00 | $1.23 | $9.80 | −30% |
| gpt-5.2-codex | — | — | $1.23 | $9.80 | — |
| gpt-5.3-codex | $1.75 | $14.00 | $1.23 | $9.80 | −30% |
| claude-sonnet-5 | $2.00 | $10.00 | $1.40 | $7.00 | −30% |
| claude-sonnet-5-5 | $2.00 | $10.00 | $1.40 | $7.00 | −30% |
| gemini-4-argon | $2.00 | $10.00 | $1.40 | $7.00 | −30% |
| gpt-4.1 | $2.00 | $8.00 | $1.40 | $5.60 | −30% |
| gpt-4.1-2025-04-14 | $2.00 | $8.00 | $1.40 | $5.60 | −30% |
| gpt-5.6-terra | $2.00 | $12.00 | $1.40 | $8.40 | −30% |
| gpt-6-sol | $2.00 | $10.00 | $1.40 | $7.00 | −30% |
| gpt-6.1-sol | $2.00 | $10.00 | $1.40 | $7.00 | −30% |
| gpt-6.2-sol | $2.00 | $10.00 | $1.40 | $7.00 | −30% |
| o3 | $2.00 | $8.00 | $1.40 | $5.60 | −30% |
| o3-2025-04-16 | $2.00 | $8.00 | $1.40 | $5.60 | −30% |
| grok-4.5 | $2.00 | $6.00 | $1.40 | $4.20 | −30% |
| grok-4.6 | $2.00 | $6.00 | $1.40 | $4.20 | −30% |
| grok-4.7 | $2.00 | $6.00 | $1.40 | $4.20 | −30% |
| kimi-k3.1-pro | $2.00 | $10.00 | $1.40 | $7.00 | −30% |
| llama-2-70b | $2.00 | $2.00 | $1.40 | $1.40 | −30% |
| llama-2-7b | $2.00 | $2.00 | $1.40 | $1.40 | −30% |
| llama-3-8b | $2.00 | $2.00 | $1.40 | $1.40 | −30% |
| llama-3.1-8b | $2.00 | $2.00 | $1.40 | $1.40 | −30% |
| llama-3.2-11b-vision-instruct | $2.00 | $2.00 | $1.40 | $1.40 | −30% |
| qwen3.8-max | $2.00 | $6.00 | $1.40 | $4.20 | −30% |
| qwen3.8-max-0902 | $2.00 | $6.00 | $1.40 | $4.20 | −30% |
| qwq-32b | $2.00 | $6.00 | $1.40 | $4.20 | −30% |
| gpt-4o | $2.50 | $10.00 | $1.75 | $7.00 | −30% |
| gpt-4o-2024-08-06 | $2.50 | $10.00 | $1.75 | $7.00 | −30% |
| gpt-4o-2024-11-20 | $2.50 | $10.00 | $1.75 | $7.00 | −30% |
| gpt-4o-audio-preview-2024-12-17 | — | — | $1.75 | $7.00 | — |
| gpt-4o-transcribe | — | — | $1.75 | $7.00 | — |
| gpt-5.4 | $2.50 | $15.00 | $1.75 | $10.50 | −30% |
| gpt-audio-2025-08-28 | — | — | $1.75 | $3.50 | — |
| qwen3.7-max | $2.50 | $7.50 | $1.75 | $5.25 | −30% |
| claude-sonnet-4-5-20250929 | $3.00 | $15.00 | $2.10 | $10.50 | −30% |
| claude-sonnet-4-6 | $3.00 | $15.00 | $2.10 | $10.50 | −30% |
| grok-4 | $3.00 | $15.00 | $2.10 | $10.50 | −30% |
| kimi-k3 | $3.00 | $15.00 | $2.10 | $10.50 | −30% |
| claude-opus-5-5 | $4.00 | $20.00 | $2.80 | $14.00 | −30% |
| llama-3-70b | $4.00 | $8.00 | $2.80 | $5.60 | −30% |
| llama-3.1-70b | $4.00 | $8.00 | $2.80 | $5.60 | −30% |
| claude-opus-4-5-20251101 | $5.00 | $25.00 | $3.50 | $17.50 | −30% |
| claude-opus-4-6 | $5.00 | $25.00 | $3.50 | $17.50 | −30% |
| claude-opus-4-7 | $5.00 | $25.00 | $3.50 | $17.50 | −30% |
| claude-opus-4-8 | $5.00 | $25.00 | $3.50 | $17.50 | −30% |
| claude-opus-5 | $5.00 | $25.00 | $3.50 | $17.50 | −30% |
| gpt-4o-2024-05-13 | $5.00 | $15.00 | $3.50 | $10.50 | −30% |
| gpt-5.5 | $5.00 | $30.00 | $3.50 | $21.00 | −30% |
| gpt-5.6-sol | $5.00 | $30.00 | $3.50 | $21.00 | −30% |
| gpt-chat-latest | $5.00 | $30.00 | $3.50 | $21.00 | −30% |
| llama-3.1-405b | $6.00 | $12.00 | $4.20 | $8.40 | −30% |
| llama-3.2-90b-vision-instruct | $6.00 | $18.00 | $4.20 | $12.60 | −30% |
| gpt-6.2-astra | $8.00 | $40.00 | $5.60 | $28.00 | −30% |
| gpt-4-1106-preview | $10.00 | $30.00 | $7.00 | $21.00 | −30% |
| gpt-4-turbo | $10.00 | $30.00 | $7.00 | $21.00 | −30% |
| gpt-4-turbo-2024-04-09 | $10.00 | $30.00 | $7.00 | $21.00 | −30% |
| gpt-6-astra | $10.00 | $50.00 | $7.00 | $35.00 | −30% |
| gpt-5-pro | $15.00 | $120.00 | $10.50 | $84.00 | −30% |
| o1 | $15.00 | $60.00 | $10.50 | $42.00 | −30% |
| o1-2024-12-17 | $15.00 | $60.00 | $10.50 | $42.00 | −30% |
| o3-pro | — | — | $14.00 | $56.00 | — |
| gpt-5.2-pro | $21.00 | $168.00 | $14.70 | $117.60 | −30% |
| gpt-4 | — | — | $21.00 | $42.00 | — |
| gpt-5.4-pro | $30.00 | $180.00 | $21.00 | $126.00 | −30% |
| gpt-5.4-pro-2026-03-05 | $30.00 | $180.00 | $21.00 | $126.00 | −30% |
| qwq-72b-preview | — | — | $52.50 | $52.50 | — |
Choosing the best model for OpenClaw
An assistant that runs all day sends many small requests, so price per token matters more than for occasional chat. Start with a low-cost model for routine messages and switch to a stronger model for complex tasks.
Because every model sits behind the same key, changing models is a one-line edit to the primary model in your config.
Frequently asked questions
Is OpenClaw free?
OpenClaw itself is free and open source. You pay for the AI model it uses, which is where an API priced below official rates saves money.
Which api type should I use?
Use "openai-completions" with base URL https://api.freeaiapi.ai/v1. It is also OpenClaw's default when api is omitted.
Can I use OpenClaw instead of OpenRouter?
Yes. Any OpenAI-compatible endpoint works as an OpenClaw provider, so you can use freeaiapi.ai in place of OpenRouter with the same config pattern.
Related
Get your free API key
No card required. One key for every model, up to 30% below official pricing.
