How to get an OpenAI API key: step by step on the OpenAI platform
Sign in at platform.openai.com, open the API keys page and click + Create new secret key. Give it a name, pick a project, copy the key and save it: OpenAI shows the full key only once. Then buy prepaid credits in Billing, because new API accounts use prepaid billing.
An API key is a pass for programs. A program shows the pass, and OpenAI answers. Here is how to get an OpenAI API key in about two minutes, plus the step most people miss. 🔑
You need one when a program asks for "your own OpenAI API key", for example to translate titles, descriptions or subtitles with OpenAI models.
ChatGPT or the API: what's the difference?
| ChatGPT (chatgpt.com) | OpenAI API | |
|---|---|---|
| Who uses it | You, in a chat | Programs and apps |
| How you pay | Your ChatGPT plan | Prepaid credits |
| Where | chatgpt.com and apps | platform.openai.com |
| What you get | A chat window | A key that starts with sk- |
The API is usually billed separately from ChatGPT. OpenAI's help center also describes an API credits benefit for some eligible ChatGPT subscriptions; check it if you pay for ChatGPT.
How to get an OpenAI API key: 4 steps
- Sign in at platform.openai.comor create an account
- Open API keysin the settings of your project
- Click + Create new secret keygive it a name, pick a project
- Copy the key and save itit starts with sk- and is shown once
A few details from OpenAI's help:
- Name: pick something clear, like
youtube-translator-pc. - Project: keys belong to a project. The default project is fine for personal use.
- Permissions: All is the default. Restricted and Read Only let you limit what the key can do.
The key is shown only once
- You create a keyOpenAI shows it in full
- You close the window without copyingthe full key is gone for good
- You create a new keyand delete the old one
Copy it right away and keep it in a safe place, like a password manager.
Add credits, or the key won't work
New API accounts use prepaid billing. From OpenAI's help center:
- Open the Billing overview on the platform.
- Click Buy credits or Add to credit balance.
- The minimum purchase is $5.
Good to know: when credits run out, requests fail with an error until you top up. You can turn on auto recharge. Purchased credits expire after one year and are non-refundable.
Prices change, so check OpenAI's pricing page on the day you start. A smart first test: one video, one language, then look at the usage.
Keep the key safe
- Keep it in a password manager
- One key per program: delete one without breaking others
- Delete keys you no longer use
- never paste it in chats, comments or screenshots
- never put it in website code
- never send it to someone who "just wants to check"
If a key may have leaked, delete it on the API keys page and create a new one.
Example: the key in a desktop program
In Syava Studio Translator (Windows), click Connect OpenAI. The window has a button Open OpenAI API keys page, so you can create a key there, paste it and test it. When the test passes, you see OpenAI works ✓.
After that, OpenAI can translate titles, descriptions and subtitles (OpenAI — translate SRT). The app translates only the subtitle text and keeps the original timecodes. More about subtitles: how to translate an SRT file. Prefer Claude? See how to get a Claude API key.
Common problems
| Likely cause | Fix | |
|---|---|---|
| Key not accepted | Copied only part of it | Copy the whole key, starting with sk- |
| Requests stopped working | Credits ran out | Buy credits or turn on auto recharge |
| Can't find the key again | It is shown only once | Create a new key |
| No permission to create keys | Your role in the organization | Ask the organization owner |
Getting a key is a one-time job. Pasting translations into YouTube Studio for every video and every language is not. That repeating part is the one worth handing to a tool. Before you start, read the common YouTube translation mistakes.
Questions and answers
Is the OpenAI API key free?
Creating a key costs nothing. Using it is paid: new API accounts use prepaid credits, which you buy in the Billing section of the OpenAI platform.
Does ChatGPT Plus include the API?
Usually the API is billed separately from ChatGPT plans. OpenAI's help center describes an API credits benefit for some eligible ChatGPT subscriptions, so check it for your plan.
I lost my key. Can I see it again?
No. The full key is shown only once, when you create it. Create a new key and use it instead.
What does an OpenAI API key start with?
With sk-. Project keys often start with sk-proj-.
What is the minimum top-up?
According to OpenAI's help center, the minimum credit purchase is $5. Credits expire after one year and are non-refundable.
SyavaTech is an independent company. This article is not affiliated with, endorsed by or sponsored by YouTube or Google.