API key guide

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.

Updated
  • 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.
Oriveo on iPhone: the chat list, with the estimated cost of each conversation on the right.

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.

Where to get an API key: 15 providers compared
ProviderCreate your key atKey starts withHow you payFree option (as of 18 November 2026)
OpenAI (ChatGPT models)platform.openai.com/api-keyssk-proj- (in OpenAI’s examples)Prepaid creditsNone stated; see OpenAI’s official page
Anthropic (Claude)platform.claude.com/settings/keyssk-ant-Prepaid creditsNone stated for new accounts; Max, Ultra and Team plans include monthly API credits
Google Geminiaistudio.google.com/apikeyNot documentedPrepaid, or billed monthlyFree tier on some models, with rate limits; free-tier content may be used to improve Google’s products
OpenRouteropenrouter.ai/keyssk-or-v1-Prepaid creditsModels ending in ":free": 50 requests a day, or 1,000 after buying at least 10 credits
DeepSeekplatform.deepseek.com/api_keyssk-Prepaid top-upNot stated; see DeepSeek’s pricing page
xAI (Grok)console.x.ai/team/default/api-keysxai-Prepaid creditsNone stated
Mistral AIconsole.mistral.ai/api-keysNot documentedPay-as-you-go invoice, or prepaid creditsThe Free mode doesn’t include API access
Groqconsole.groq.com/keysgsk_Free tier; the paid tier is billed monthly after useFree tier, with limits shown in the Groq console
Together AIapi.together.ai/settings/projects/~current/api-keysNot documentedPrepaid; a first purchase of at least $15 before you can create a keyNo free trial
Fireworks AIapp.fireworks.ai/settings/users/api-keysfw_Prepaid credits$1 starter credit for new accounts
MiniMaxplatform.minimax.io/user-center/basic-information/interface-keyNot documentedPrepaid balanceNot stated
Z.ai (GLM)z.ai/manage-apikey/apikey-listNot documentedPay-as-you-go from your balanceGLM-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-keysk-ws (newer keys) or sk- (older keys)Pay-as-you-go, charged to your Alibaba Cloud accountNew 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-keysNot documentedPrepaid; at least $1 to startNo free tier; a $5 voucher once your top-ups reach $5
SiliconFlowcloud.siliconflow.com/account/akNot documentedPay-as-you-go balance$1 of free credits to start; free models with fixed rate limits
Oriveo Providers screen listing connected providers such as OpenAI, Z.ai, Fireworks AI, Groq, MiniMax, Gemini, Anthropic and Kimi, each with its spend
Each provider you connect has its own key, and the list shows each one’s estimated spend.

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.
Does my ChatGPT, Claude or Gemini subscription include API access?
PlanIncludes API usage?Details
ChatGPT, including Plus, Go and BusinessNoOpenAI bills API usage separately, in your API account
Claude Free, Pro and EnterpriseNoAPI usage is paid from credits in the Claude Console
Claude Max, Ultra and TeamYes, as monthly API creditsMax $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 UltraNoPlan 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 ProYes, as monthly API creditsMistral’s pricing page lists API credits with Pro ($15 a month) and Education ($25.5 a month), without saying exactly what they cover
Grok subscriptionsNoxAI bills API usage separately, in the xAI Console
Kimi membershipNoMembership benefits can’t be turned into API balance
Z.ai GLM Coding Plan, Qwen Coding PlanNoThese 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.
Oriveo Usage Insights showing this week’s estimated spend, a weekly bar chart, smart insights and cost by provider
Review estimated usage in Oriveo and compare unusual activity with the provider’s own usage page and invoice.

Common app questions

How do I get an API key for ChatGPT?
ChatGPT models use an OpenAI API key. Sign in at platform.openai.com, open platform.openai.com/api-keys and create a secret key. OpenAI asks you to verify a phone number the first time, and the API needs prepaid credit. ChatGPT Plus doesn’t include API usage.
How do I get a Claude API key?
Sign in to the Claude Console at platform.claude.com, open Settings → API keys and click Create key. Copy it straight away; it starts with "sk-ant-" and is shown once. Add credits under Billing, unless your Max, Ultra or Team plan’s monthly API credits cover you.
Which AI APIs have a free option?
As of 18 November 2026: Google Gemini (free tier on some models), OpenRouter (":free" models with daily limits), Groq (free tier), Z.ai (some Flash models listed as free), Qwen (free quota for new users in Singapore), Fireworks AI ($1 starter credit) and SiliconFlow ($1 of free credits). These can change; check each official page.
Does ChatGPT Plus or Claude Pro include an API key?
No. Both are consumer plans billed separately from the API. As of 18 November 2026, Claude Max, Ultra and Team plans do come with monthly API credits, claimed through a Claude Console organisation.
Is bringing my own key safe?
Your key is stored on your device and isn’t uploaded by cloud sync. The iPhone and Android apps connect to providers directly, while the web app sends requests 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. Oriveo doesn’t mark up or re-bill provider usage.
Can I use my API key on my phone?
Yes. In Oriveo for iPhone or Android, open Providers, tap +, choose the provider, paste the key and tap Continue. The same steps work in the web app.
Can I try Oriveo without an API key?
Yes. Oriveo Free needs no sign-in and no key, and gives you a daily allowance that resets at 00:00 UTC. When it runs out, add your own key or wait for the reset.

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.