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.
| Models | Where to get a key | Free | OpenAI format |
|---|---|---|---|
| GPT (OpenAI) | platform.openai.com | no | yes |
| Grok (xAI) | console.x.ai | no | yes |
| DeepSeek | platform.deepseek.com | no | yes |
| GLM (Z.ai) | z.ai | GLM-4.7-Flash, GLM-4.5-Flash | yes |
| Gemini (Google) | AI Studio | limited free tier | compatibility mode |
| OpenRouter (aggregator) | openrouter.ai | :free models, 50 requests/day | yes |
| Twelver (GPT, Grok, GLM, DeepSeek, Qwen, MiniMax, MiMo) | this page, no signup | starter tokens on the first visit | yes |
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 monthqwen-flashQwen3.8-Flash$7.94 per monthzai-flashGLM-5.3-Flash$8.13 per monthautoQwen3.7-Plus$23.4 per monthzaiGLM-5.3$74.2 per monthgrokGrok 4.7$104 per monthTwelver 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?
Should I use “free API keys” posted online?
What is an AI API aggregator?
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