How to Get an API Key for ChatGPT, Claude, Gemini and More
Where to get an API key from 15 AI providers, what’s free as of 18 November 2026, and how to use the key on iPhone, Android or the web with no code.
- To get an API key, sign in to the provider’s developer site (platform.openai.com for ChatGPT models, platform.claude.com for Claude, aistudio.google.com for Gemini), create a key, and add billing if the provider requires it. Then paste the key into a chat app that accepts your own key, such as Oriveo.
- Consumer subscriptions are separate: ChatGPT Plus and Claude Pro don’t include API usage. As of 18 November 2026, Claude Max, Ultra and Team plans, and Mistral’s Pro plan, come with monthly API credits.
- With your own key you pay each provider at its list price, and Oriveo adds no markup. Oriveo shows an estimated cost on every message; the provider’s bill is the final word.

What is an API key, and what does BYOK mean?
An API key is a secret code that lets an app use an AI provider’s models on your account. The app sends the key with every message, and the provider charges your account for what you use.
BYOK stands for "bring your own key". Instead of paying an app a monthly fee for AI, you bring a key from the provider and pay the provider directly. Usage is billed per token, a small piece of text roughly the size of a short word, for both your message and the reply.
You don’t need to write code. Developers put keys in their programs; you can paste yours into an app instead. The benefit is control and transparency: no platform markup, no bundled subscription, and an estimate you can check against the provider’s billing.
How do I get an API key? The steps are the same everywhere
Whichever provider you pick, getting a key follows the same pattern and takes a few minutes.
- Create an account on the provider’s developer site, not in its consumer chat app. For ChatGPT models that is OpenAI; for Claude, Anthropic; for Gemini, Google AI Studio.
- Open the API keys page and create a new key. Name it after the app or device you’ll use it on.
- Copy the key straight away and store it safely, for example in a password manager. Some providers, such as Anthropic, show the full key just once.
- Add billing or prepaid credit if the provider requires it. Many do; a few offer a free tier (see the table below).
- Paste the key into your app and check that it works.
Where to get an API key: 15 providers compared
This table covers Oriveo’s 15 built-in providers. Key beginnings are listed where the provider’s own documentation shows them; "Not documented" means it doesn’t. Free options are as of 18 November 2026 and can change, so check the provider’s official page before you rely on one.
| Provider | Create your key at | Key starts with | How you pay | Free option (as of 18 November 2026) |
|---|---|---|---|---|
| OpenAI (ChatGPT models) | platform.openai.com/api-keys | sk-proj- (in OpenAI’s examples) | Prepaid credits | None stated; see OpenAI’s official page |
| Anthropic (Claude) | platform.claude.com/settings/keys | sk-ant- | Prepaid credits | None stated for new accounts; Max, Ultra and Team plans include monthly API credits |
| Google Gemini | aistudio.google.com/apikey | Not documented | Prepaid, or billed monthly | Free tier on some models, with rate limits; free-tier content may be used to improve Google’s products |
| OpenRouter | openrouter.ai/keys | sk-or-v1- | Prepaid credits | Models ending in ":free": 50 requests a day, or 1,000 after buying at least 10 credits |
| DeepSeek | platform.deepseek.com/api_keys | sk- | Prepaid top-up | Not stated; see DeepSeek’s pricing page |
| xAI (Grok) | console.x.ai/team/default/api-keys | xai- | Prepaid credits | None stated |
| Mistral AI | console.mistral.ai/api-keys | Not documented | Pay-as-you-go invoice, or prepaid credits | The Free mode doesn’t include API access |
| Groq | console.groq.com/keys | gsk_ | Free tier; the paid tier is billed monthly after use | Free tier, with limits shown in the Groq console |
| Together AI | api.together.ai/settings/projects/~current/api-keys | Not documented | Prepaid; a first purchase of at least $15 before you can create a key | No free trial |
| Fireworks AI | app.fireworks.ai/settings/users/api-keys | fw_ | Prepaid credits | $1 starter credit for new accounts |
| MiniMax | platform.minimax.io/user-center/basic-information/interface-key | Not documented | Prepaid balance | Not stated |
| Z.ai (GLM) | z.ai/manage-apikey/apikey-list | Not documented | Pay-as-you-go from your balance | GLM-4.7-Flash, GLM-4.5-Flash and GLM-4.6V-Flash are listed as free |
| Qwen (Alibaba Cloud Model Studio) | modelstudio.console.alibabacloud.com/ap-southeast-1/settings/api-key | sk-ws (newer keys) or sk- (older keys) | Pay-as-you-go, charged to your Alibaba Cloud account | New users: a free quota for each model, usually 1,000,000 tokens for 90 days, in the Singapore region |
| Kimi (Moonshot AI) | platform.kimi.ai/console/api-keys | Not documented | Prepaid; at least $1 to start | No free tier; a $5 voucher once your top-ups reach $5 |
| SiliconFlow | cloud.siliconflow.com/account/ak | Not documented | Pay-as-you-go balance | $1 of free credits to start; free models with fixed rate limits |

Which region and country rules apply?
Kimi, MiniMax, Qwen, SiliconFlow and Z.ai run separate international and China Mainland platforms (Qwen has several regions), and a key works with the platform that issued it. When you add one of these in Oriveo, pick the matching region in the "Official Endpoint" selector, called "Official Request URL" on iPhone, if it appears.
Not every provider offers its API in every country. OpenAI, Anthropic and Google publish lists of supported countries and regions; check yours before you sign up and add billing.
Does my ChatGPT, Claude or Gemini subscription include API access?
Usually not. Consumer chat plans and developer API accounts are billed separately, even when you sign in with the same email. This is what each provider says, as of 18 November 2026:
- Anthropic says subscriber credits pay for the Claude API but not for extra Claude Code or Claude app usage. A key from the linked Console organisation can use them in a chat app such as Oriveo.
| Plan | Includes API usage? | Details |
|---|---|---|
| ChatGPT, including Plus, Go and Business | No | OpenAI bills API usage separately, in your API account |
| Claude Free, Pro and Enterprise | No | API usage is paid from credits in the Claude Console |
| Claude Max, Ultra and Team | Yes, as monthly API credits | Max $100, Ultra $200, Team $20 or $100 per seat (up to $500 in total) each month. Link the plan to a Claude Console organisation to claim them, from 7 days after a new subscription; unused credits don’t roll over |
| Google AI Pro and Ultra | No | Plan benefits apply inside the AI Studio website; the Gemini API is billed separately. Subscribers with a Cloud project and Cloud Billing turned on can claim monthly Google Cloud credits through the Google Developer Program |
| Mistral Pro | Yes, as monthly API credits | Mistral’s pricing page lists API credits with Pro ($15 a month) and Education ($25.5 a month), without saying exactly what they cover |
| Grok subscriptions | No | xAI bills API usage separately, in the xAI Console |
| Kimi membership | No | Membership benefits can’t be turned into API balance |
| Z.ai GLM Coding Plan, Qwen Coding Plan | No | These plans work in coding tools through their own endpoints, not as a general API |
How do I use my API key on iPhone, Android or the web?
In Oriveo the steps are the same on all three:
- Open Providers: a tab on iPhone and Android, or the sidebar on the web.
- Tap the + button (Add Provider). On "Connect a Provider", pick your provider; the All, Direct, Aggregators and Custom chips filter the list.
- Paste the key under "Connect" followed by the provider’s name, for example "Connect OpenAI". For Kimi, MiniMax, Qwen, SiliconFlow and Z.ai, check the region.
- Tap Continue. "Validating connection and syncing models..." appears while Oriveo checks the key and loads the models.
- Pick a model and start chatting. You can switch models one after another in the same conversation, and add more provider keys at any time.
What if the key doesn’t work, and where does it go?
If the provider rejects the key, Oriveo saves it anyway and warns: "Saved, but the key looks invalid. You can verify it later in provider settings." Fix the key there. Our API key errors guide explains 401, 402, 403 and 429 for each provider.
On iPhone and Android, requests go straight from your device to the provider, and your key is kept in the phone’s secure storage (Keychain on iPhone, Keystore on Android). In the web app, requests go through a real-time pass-through on Oriveo’s server: your key is used only for that request and isn’t saved as an account record, and BYOK chats aren’t stored as chat logs. Keys aren’t uploaded by cloud sync. So on each new device, paste the key again, or create a separate key for it.
Using a service that isn’t on the list above, such as an OpenAI-compatible API or a gateway? Add it as a custom endpoint with its address and key.
Is using your own API key cheaper?
For many people, yes. If you chat occasionally, paying per use with your own key can cost less than a fixed monthly subscription, and you pay for what you actually send. Heavy users should still watch their usage.
Oriveo shows an estimated cost on every message and a running total for each conversation, calculated from the provider’s published prices. For current prices, see each provider’s official pricing page.
Rotate or revoke an API key safely
Treat an API key like a password with billing authority. If you suspect exposure, create a replacement at the provider first, validate the new key in Oriveo, then revoke the old key and inspect recent provider usage.
Provider dashboards are the billing source of truth. Oriveo estimates cost for visibility, but invoices can differ because of cached-token pricing, provider routing, non-token features, or price changes.
- Use a separate key for each app or device, so revoking one doesn’t break the rest.
- Set a spending limit or keep prepaid credit modest while you learn your usage.
- Never paste a key into a chat, email, forum or support request. If you have, revoke it.

Common app questions
How do I get an API key for ChatGPT?
How do I get a Claude API key?
Which AI APIs have a free option?
Does ChatGPT Plus or Claude Pro include an API key?
Is bringing my own key safe?
Can I use my API key on my phone?
Can I try Oriveo without an API key?
Related reads
From the blog
Use your own keys in one app
Open the web app or download Oriveo to use your own API keys from 15 providers, or try Oriveo Free without a key.
No API key yet? Oriveo Free lets you start without one.