AI model APIs: where to get a key, which are free, and how they differAn API for AI coding agents: one key, any OpenAI-compatible tool

AI model APIs: where to get a key, which are free, and how they differ

An AI API is a key and an address your code, bot or agent uses to call a model directly, without a chat window. Most modern APIs speak the OpenAI format, so switching providers changes three lines: the key, the base_url and the model name.

Short answer

Free tiers: Z.ai’s GLM-4.7-Flash and GLM-4.5-Flash are listed as free, OpenRouter’s :free models allow up to 50 requests a day, and Google AI Studio has a Gemini free tier in supported regions. Twelver gives one OpenAI-compatible key to GPT-6, Grok 4.7, GLM-5.3, DeepSeek V4 and Qwen 3.8, issued on this page with no signup and no card.

ModelsWhere to get a keyFreeOpenAI format
GPT (OpenAI)platform.openai.comnoyes
Grok (xAI)console.x.ainoyes
DeepSeekplatform.deepseek.comnoyes
GLM (Z.ai)z.aiGLM-4.7-Flash, GLM-4.5-Flashyes
Gemini (Google)AI Studiolimited free tiercompatibility mode
OpenRouter (aggregator)openrouter.ai:free models, 50 requests/dayyes
Twelver (GPT, Grok, GLM, DeepSeek, Qwen, MiniMax, MiMo)this page, no signupstarter tokens on the first visityes
From the providers’ documentation, 7 October 2026.

Work out what the requests cost

Pick a workload or type your own numbers — the calculator multiplies them by each series’ rates. A token is roughly 4 characters of English text or code.

gptGPT-6 Luna$6.51 per month
request: $0.00071,000 requests: $0.651
qwen-flashQwen3.8-Flash$7.94 per month
request: $0.00081,000 requests: $0.794
zai-flashGLM-5.3-Flash$8.13 per month
request: $0.00081,000 requests: $0.813
autoQwen3.7-Plus$23.4 per month
request: $0.00231,000 requests: $2.34
zaiGLM-5.3$74.2 per month
request: $0.00741,000 requests: $7.42
grokGrok 4.7$104 per month
request: $0.011,000 requests: $10.4

Twelver rates as of 4 November 2026; tokens are billed as actually used, caching and discounts not included. The arithmetic runs in your browser.

Right here

One key for GPT, Grok, GLM, DeepSeek and Qwen

Your own values appear in the block and drop straight into any OpenAI SDK code.

Press it and get your base_url and API key.

No sign-up, no card.

Free. Your key appears right here.

Per-model guides: ChatGPT API, Grok API, DeepSeek API, Qwen API, GLM API. The whole book: API for AI agents.

Frequently asked questions

Which AI APIs are free?
Z.ai lists GLM-4.7-Flash and GLM-4.5-Flash as free, OpenRouter’s :free models answer up to 50 times a day (1,000 after $10 of credits), and Google AI Studio has a Gemini free tier in supported regions. Twelver lets you send the first request on starter tokens.
Should I use “free API keys” posted online?
No. They are other people’s leaked keys: they get revoked quickly, the owner sees your requests, and using them breaks the provider’s terms.
What is an AI API aggregator?
A service that gives one key and one address for models from several companies. OpenRouter is the benchmark; Twelver works the same way with one OpenAI-compatible key for seven vendors.

Try it yourself

Everything in this guide runs inside Twelver

One chat for text, images, video, music and voice — no separate services or subscriptions.

Open Twelver chat
Rate your experience