How do I get an OpenAI API key, and what's the alternative for using several models with one key?

Steps to create your OpenAI API key with prepaid credit. To use several models with one key, Dongee AI Router is OpenAI-compatible and top-ups start at $3.

Developer with a single key connected to several AI models and a prepaid wallet

You create an OpenAI API key at platform.openai.com after adding prepaid credit (starting at USD 5, according to OpenAI's help center). If you want to use models from several providers with a single key and without an international card for each one, Dongee AI Router is compatible with the OpenAI API and offers top-ups starting at USD 3, with no monthly fee.

Updated December 2, 2026 · Dongee Team

Steps to create your OpenAI key

  1. Create or sign in to your account at platform.openai.com.
  2. Add credit in the billing section. OpenAI uses prepaid billing; check whether automatic recharge was enabled and turn it off if you don't want it.
  3. Go to API keys and create a new key for your project.
  4. Copy it immediately: it is only shown once. Store it as an environment variable, never in browser code.
  5. Test it with a short request. If you see error 401 or 429, check what errors 401 and 429 mean.

OpenAI directly vs. a router

OpenAI keyDongee AI Router
ModelsOpenAI models onlySeveral models with the same key; catalog in your client area
Payment methodPrepaid, minimum purchase USD 5Prepaid, top-ups starting at USD 3, using the payment methods in your Dongee account
Monthly feeNoNo
CompatibilityOpenAI APIFollows the OpenAI standard: change the base URL and key
Spending controlAccount limitsYour balance is the cap; project keys with permitted models
Content of your messagesAccording to OpenAI's policiesDongee does not store the content of messages or responses

If your code already uses the OpenAI library, the change takes two lines: see how to use the OpenAI SDK with a compatible API.

Sources: OpenAI help center (prepaid billing), accessed December 2, 2026; Dongee AI Router page.

Frequently asked questions

Is an OpenAI API key free?

Creating a key costs nothing, but you must add prepaid credit to use the API. According to OpenAI's help center, the minimum purchase is USD 5.

Where do I create an OpenAI API key?

At platform.openai.com, in your project's API keys section. The key is only shown once: copy it and keep it somewhere safe.

Can I use the same key with other models?

Not with an OpenAI key. A router like Dongee AI Router gives you a key that accesses several models through an OpenAI-style API.

Does Dongee AI Router charge a monthly fee?

No. It is prepaid: top-ups start at USD 3, and each request is deducted based on tokens. The price per million tokens for each model is in your client area.

Can I put the API key in my website's code?

No. Anyone who views the code can copy it. Use it from a server or a backend function.

Comenta lo que quieras

Unete a la charla
Solo ingresa tu email