GuidesUpdated
How to Claim ChatGPT Pro's Included API Credits and Use Them in Codex
Find Monthly subscription benefit in ChatGPT Settings > Billing or on the OpenAI API platform's Billing page, then click Link organization to link an organization and have the credits deposited. The money sits in the API account and can't be used directly in Codex; you need to route it through Magpie or CC Switch.
Who can claim, and how much
| Plan | Monthly API credits included |
|---|---|
| $100 Pro plan | $100 |
| $200 Pro plan | $200 |
| $500 Pro plan | $500 |
This benefit becomes available 7 days after you subscribe to Pro (Plus does not include it). After you link it manually for the first time, it will be deposited automatically each billing cycle; any unused balance for the current cycle is cleared at the end of the cycle and does not roll over. If you're not sure how this money differs from Codex plan limits and Credits, see the differences between the three types of credits first.
How to claim
You can claim from either the ChatGPT web app or the OpenAI API platform; use whichever one shows the entry point.
Entry point 1: ChatGPT web
- Click your avatar in the bottom-left corner of the page to open Settings → Billing.
- Find Monthly subscription benefit and click Link organization.
- Select the developer organization under the same email, confirm in the Claim your credits dialog that appears, and the credits are deposited immediately.
Entry point 2: API platform
- Log in to platform.openai.com ↗ with your Pro account and go to Billing on the left.
- Under Monthly subscription benefit, click Link organization, check the amount, and click Link & claim.
- When the status changes to Organization linked, the organization is linked successfully.
It's fine if you've never used the API platform before: just log in with the same email. The system automatically has a default Personal organization, so just select it. You don't need to add a credit card on the API platform at any point.
Why the first claim is smaller
The first claim is prorated based on the number of days remaining in the current billing cycle, so many people don't get the full amount the first time (for example, if you link a $100 Pro plan near the end of the cycle, you may receive only twenty or thirty dollars). On the next renewal date, you'll receive the full monthly amount.
Create an API key
- Open platform.openai.com/api-keys ↗.
- Click Create new secret key, and select the organization and project that just received the credits.
- Copy and save the generated
sk-key; once the dialog closes, you can't view the full key again.
Once you have the key, configure third-party clients using the standard OpenAI API:
| API base URL | https://api.openai.com/v1 |
| API Key | The sk- key you just saved |
| Model | Select a model that the organization has permission to call, as needed |
How to use it in Codex
Note: if you log in directly in Codex with an API key, billing will not use these included credits. To use the included API dollars in Codex, you must put a local gateway in front (such as Magpie or CC Switch) and let the gateway call the API with your API key.
| Item | Default direct ChatGPT account connection | Use a local gateway and API |
|---|---|---|
| Account charged | The weekly allowance included with the Pro plan | The USD balance included on the API platform |
| Request path | Codex connects directly to OpenAI | Codex connects to the local gateway, which forwards requests with the API key |
| When to use | Default daily use | When the weekly allowance runs out, or when you want to spend the included dollars before the end of the month |
The two do not switch automatically—after switching to the gateway, only API dollars are charged. When the dollars run out or the new cycle's allowance refreshes, remember to switch back to the default model manually. You do not need to sign out of ChatGPT to switch.
Connect via Magpie
- Go to usemagpie.ai ↗ to download, install, and launch Magpie.
- Go to Providers → Add provider, select OpenAI, and enter your API key.
- Open the Agents page, open Codex's model dropdown, and change it to a model with the
openai/prefix (such asopenai/gpt-6.1-sol), then restart Codex for it to take effect.
To switch back to the plan allowance, go to Magpie's Agents page and change the model back to the native model without the prefix (such as gpt-6.1-sol), then restart Codex. While using API credits, Magpie must keep running in the background; closing it will disconnect Codex.
Connect via CC Switch
- Download and install CC Switch from GitHub ↗.
- Switch to the Codex tab, add a provider, enter
https://api.openai.com/v1as the address, and enter your API key. - Enable the provider and restart Codex.
After setting it up and running a couple of tasks, it's a good idea to check API platform Billing ↗ to see whether the Credit grants balance has decreased, confirming that the included credits are being charged.