- An API key is free to create with OpenAI, Google and Anthropic. Nobody sells the key itself; what you pay for is the use you make of it, measured in tokens.
- Google's Gemini API is the only one of the three with an ongoing free tier, on selected Flash and Flash-Lite models. On that tier, your prompts and answers may be read by people at Google and used to improve its products.
- OpenAI and Anthropic have no free tier. Both use prepaid credit, and calls stop working when the balance runs out.
Searches for a free OpenAI, Gemini or Claude API key usually come from one of two places. Some people want to build something without paying yet. Others have seen a key offered for sale, or a "price" for a key, and want to know what it should cost. The short answer to both is the same: the key is free, and the question that matters is what using it costs.
This guide covers each of the three labs in turn. Every fact below was checked on the lab's own pages on 29 November 2026. Those pages change often, so check them again before you rely on a detail.
An API key is free; usage is what costs
An API key is a long string that identifies your account when your code calls a model. Creating one takes a minute in the lab's developer console and costs nothing. What you are billed for is usage: the text you send and the text the model writes back, counted in tokens and priced per million.
This is why a question like "how much does an OpenAI API key cost?" has no real answer. There is no price for the key itself. The price is per token, set by the lab for each model, and you pay it from credit you have bought on your own account.
It also means a key someone offers to sell you is not what it looks like. A key belongs to the account that created it, and every call made with it is billed to that account. A key bought from someone else is their key: they can delete it or see what it is used for at any time, and it can stop working without warning.
The three labs at a glance
| Key free to create | Free use | To make calls beyond that | |
|---|---|---|---|
| Google Gemini API | Yes, in Google AI Studio | A free tier on selected models, with limits per model | Link a billing account and prepay, from $5 or the equivalent in other currencies |
| OpenAI API | Yes | None for new accounts | Buy prepaid credit, from $5 |
| Anthropic (Claude) API | Yes | None | Buy prepaid credit in the Claude Console |
Each lab also publishes a list of the countries where its API is available, so check that yours is on it before you sign up.
Can you get a free Gemini API key?
Yes, and it comes with real free use. Google gives new users a project and an API key in Google AI Studio once they accept the terms, and new accounts start on the free tier with no billing set up.
The free tier covers selected models. On 29 November 2026 Google's pricing page listed Gemini 4 Hydrogen, Gemini 3.8 Flash, Gemini 3.6 Flash and Gemini 3.5 Flash-Lite as free of charge, among others. Its larger models, including Gemini 4 Carbon, Gemini 4 Argon and Gemini 4 Neon, are not available on the free tier.
Each free model has limits on requests per minute, tokens per minute and requests per day. The numbers differ by model and by account, and Google shows yours in AI Studio rather than publishing one table. Limits apply to the project, not to each key, so creating more keys does not give you more free use. Daily limits reset at midnight Pacific time.
Two conditions matter more than the limits:
- Your prompts may be read. Google's terms say that on unpaid services, human reviewers may read and annotate your input and output, and that Google uses the content to improve and develop its products. On the paid tier, Google says it does not use your prompts or responses to improve its products.
- Some users must be served from the paid tier. If your app serves users in the European Economic Area, Switzerland or the UK, Google's terms require the paid tier.
To go beyond the free tier, you link a Cloud Billing account and prepay at least $5, or the equivalent in other currencies. The free tier's terms make it a good fit for learning and prototypes, and a poor fit for anything that handles customer data.
Can you get a free OpenAI API key?
You can create the key for free, but there is no free use attached to it. OpenAI's API has no free tier, and new accounts get no trial credit. New accounts use prepaid billing: you add a payment method and buy credit, with a minimum purchase of $5. When the credit runs out, calls fail until you add more. OpenAI says purchased credit expires after one year and is non-refundable unless the law requires otherwise.
A ChatGPT subscription does not include the API. OpenAI bills the two separately, so paying for ChatGPT does not give you API credit, apart from a credit offer OpenAI makes to eligible ChatGPT Pro and Business subscribers.
OpenAI shows its prices in US dollars per million tokens. Its smallest models cost very little per call, so $5 of credit lasts a long time for testing.
Is the Claude API free?
No. Anthropic has no free tier for the Claude API. You create a key in the Claude Console, buy prepaid credit, and calls are paid from that credit. New organisations may start on lower rate limits that rise as they use the API, but that is a limit, not free use. Anthropic says credit expires one year after purchase and is non-refundable.
As with OpenAI, a Claude subscription and the API are separate. Anthropic bills API use separately from Claude plans. Some higher plans include a monthly API credit, which cannot be used in Claude Code or the Claude apps.
Paying for an API outside the US
All three labs show their prices and minimum purchases in US dollars, and Google's prepayment can be made in other currencies at the equivalent amount. You pay by card, so outside the US the amount on your statement depends on your bank's conversion. Anthropic notes that its prices exclude tax, and the others may add tax at checkout.
Every lab also wants its own account, its own credit and its own key. If you want to compare GPT, Gemini and Claude on your own prompts, that is three sign-ups and three balances before you have written a line of code.
How Roar AI fits
Roar AI gives one API key that reaches 200+ models, including models from OpenAI, Google and Anthropic as well as low-cost open models. The key works with code written for the OpenAI API, so trying a different model is a change of model name.
New accounts get $1 in credit for 14 days once they confirm their email, with no card needed. That is enough to make your first calls and compare a few models. After that you pay the published rate for each model, from credit you top up. You can pay in US dollars or in local currency. Roar AI does not train models on your prompts, and each key can carry a spend limit.
For the wider list of free tiers, including providers other than the three labs, see free LLM APIs and what free really costs.
Questions people ask
Is an OpenAI API key free?
Creating an OpenAI API key is free. Using it is not: OpenAI has no free API tier, and calls are paid from prepaid credit, with a minimum purchase of $5.
How much does an OpenAI API key cost?
The key costs nothing, wherever you are. OpenAI charges for usage, per million tokens, and shows its prices in US dollars. You buy credit by card, from $5, and outside the US your bank converts the charge to your own currency.
Is the Gemini API key free?
Yes. Google AI Studio gives you a key at no cost, and new accounts start on a free tier that covers selected Flash and Flash-Lite models within daily limits. On that tier, Google may have people read your prompts and may use them to improve its products.
Is the Claude API free?
No. Anthropic has no free tier for the Claude API. You buy prepaid credit in the Claude Console, and your calls are paid from it. A Claude subscription does not include API use.
Is it safe to buy a cheap API key from someone else?
No. A key belongs to the account that created it, so the seller can delete it or watch its usage at any time, and it can stop working without warning. Your prompts would also pass through an account you do not control. Create your own key; it is free.
Does ChatGPT Plus include API access?
No. OpenAI bills ChatGPT and the API separately, so a ChatGPT subscription does not give you API credit.
Can I use several models with one free key?
Not with the labs' own keys: each one works only with that lab's models. Roar AI gives one key for models from OpenAI, Google, Anthropic and others, with $1 of starter credit for 14 days and no card needed.
