OpenAI API credits are purchased directly from OpenAI through their billing dashboard, and you pay only for what you use based on the model and number of tokens processed
You do not buy a fixed package of "credits" the way you might buy gift cards. Instead, you set up a billing account with OpenAI, add a payment method, and then pay for API usage as it happens. OpenAI charges by the token — the small chunks of text that their language models process. The cost per token varies depending on which model you use (GPT-4 is more expensive than GPT-3.5, for example) and whether you are sending text to the model or receiving text back from it.
If you have a free trial account, OpenAI gives you a small amount of free usage during your first three months, but that expires. After that, you need a paid account to keep using the API. The process takes about five minutes: create an account at platform.openai.com, verify your email, add a payment method, and set usage limits so you do not accidentally run up a large bill.
Key Takeaways
- You pay OpenAI for API usage through a billing account on their platform, not by buying pre-loaded credits, and charges are based on tokens processed rather than requests made.
- Different models cost different amounts per token — GPT-4 Turbo costs roughly 10 times more than GPT-3.5-turbo, so your choice of model directly affects your bill.
- Setting a monthly spending limit in your OpenAI account settings prevents unexpected charges if your usage spikes or a script runs longer than intended.
- You can see exactly what you spent and which models you used by checking the Usage page in your OpenAI account, updated daily.
How OpenAI billing actually works
OpenAI charges based on tokens, not on the number of times you call the API. A token is roughly four characters of text — so the word "hello" is one token, and a sentence might be 10 to 20 tokens. When you send a prompt to the API, you are charged for the input tokens (what you send) and the output tokens (what the model generates back). Input and output tokens often have different prices for the same model.
For example, with GPT-3.5-turbo, input tokens cost about $0.0005 per 1,000 tokens and output tokens cost about $0.0015 per 1,000 tokens. With GPT-4 Turbo, input tokens cost roughly $0.01 per 1,000 tokens and output tokens cost roughly $0.03 per 1,000 tokens. If you send a 100-token prompt and the model returns a 200-token response using GPT-3.5-turbo, your cost would be around $0.0004. The same request with GPT-4 would cost roughly $0.004 — ten times more.
Your bill is not due all at once. OpenAI charges your payment method automatically each month based on what you used that month. You can see a breakdown of your spending by model and by day on the Usage page inside your account.
Setting up a paid account and adding payment
Start at platform.openai.com and sign in or create an account. If you already have a free trial account, you can upgrade it to paid by going to the Billing section in the left menu. Click on "Billing overview" and then "Set up paid account."
You will need to provide a valid credit card or debit card. OpenAI also accepts some payment methods through Stripe, depending on your country. Add your card details, confirm your billing address, and you are done — your account is now set up to be charged for API usage.
Before you start making API calls, go to the "Usage limits" section under Billing and set a monthly spending cap. This is your safety net. If you set a limit of $10 per month and your usage reaches that amount, the API will stop responding to new requests until the next month begins. This prevents a runaway script or unexpected spike in usage from charging you hundreds of dollars.
Understanding token costs for different models
OpenAI offers several models, and the price difference between them is significant. GPT-3.5-turbo is the cheapest and fastest. GPT-4 and GPT-4 Turbo are more capable but cost 10 to 15 times more per token. GPT-4o (the newer multimodal model) falls between them in price. There are also older models like GPT-3.5 (not turbo) and davinci-003, which are cheaper but less capable.
The model you choose depends on what you need. If you are building a chatbot that answers straightforward questions, GPT-3.5-turbo will likely work fine and keep your costs low. If you need the model to reason through complex problems, write code, or understand images, GPT-4 or GPT-4o is necessary, but your per-request cost will be higher. There is no way around this trade-off — you cannot use GPT-4's capabilities at GPT-3.5 prices.
You can see the current pricing for all models on OpenAI's pricing page. Prices change occasionally, so check there before building something you plan to run for months.
Monitoring your usage and costs
Log into your OpenAI account and go to the Usage page under Billing. You will see a graph of your spending over time and a breakdown by model. The data updates daily, so you can see what you spent yesterday but not what you are spending right now (there is usually a one-day lag).
You can also set up email notifications if you want to be alerted when your spending reaches certain thresholds — for example, when you hit 50% of your monthly limit or 100% of it. This helps you catch unexpected spikes early.
If you are building an process that other people will use, you should track API costs on your end as well. Some developers use middleware or logging to record every API call and its cost, so they know exactly which features or users are expensive. This is especially important if you are offering a free tier to users — you need to know how much each free user costs you.
Free trial credits and how they work
When you first sign up for an OpenAI account, you receive $5 in free trial credits that expire after three months. These credits can be used for any API call — there are no restrictions on which models you can try. Once the three months are up, the credits disappear, and you need a paid account to continue.
The free trial is useful for testing and learning, but it is not enough for any real process. A single request to GPT-4 might use $0.01 to $0.10 in credits depending on the prompt and response length, so $5 runs out quickly if you are experimenting.
What happens if you go over your limit or your card declines
If you have set a monthly spending limit and you reach it, the API will return an error message and stop processing requests. Your process will need to handle this gracefully — either by telling the user that the service is temporarily unavailable or by queuing the request for later. The limit resets on the first day of the next month.
If your payment method fails (card expired, insufficient funds, or the card issuer declined the charge), OpenAI will try to charge you again a few times over the next few days. If all attempts fail, your account will be suspended and API calls will stop working. You will receive an email notification. To fix it, update your payment method in the Billing section and your account will resume working within a few minutes.
Frequently Asked Questions
Can I buy a package of credits instead of paying per use?
No. OpenAI only offers pay-as-you-go billing. You set up an account, add a payment method, and are charged monthly for what you used. Some third-party resellers claim to offer "prepaid credits," but these are not official and carry risk — use OpenAI's platform directly.
What is the difference between free credits and paid billing?
Free trial credits expire after three months and are limited to $5. Paid billing has no expiration and no limit other than what you set yourself. Once your free trial ends, you must add a payment method to keep using the API.
How do I know if I am being overcharged?
Check the Usage page daily and compare your spending to the model pricing on OpenAI's website. If a single request seems to have cost far more than expected, you may have sent a very long prompt or received a very long response. If the pattern seems wrong, contact OpenAI support with screenshots of the Usage page.
Can I use the same account for multiple projects or applications?
Yes, but you will see all usage combined on one bill. If you want to track costs separately by project, you can create multiple OpenAI accounts with different email addresses and payment methods, or use API keys and logging to tag requests by project on your end.
What happens to my data when I use the API?
OpenAI retains your API requests for 30 days for abuse monitoring, then deletes them. They do not use your API data to train new models (unlike the free ChatGPT website). If you have a business agreement with OpenAI, you can request a Data Processing Addendum that includes stronger privacy terms.