OpenAI API key: platform.openai.com account, billing, secret key, and usage limits
Platform account → Billing → secret key → one smoke request → Limits and 429 basics.
You need an OpenAI API key for code and integrations—not the chatgpt.com web app alone. Official path: platform.openai.com account → Settings → Billing for metered usage → Settings → API keys to create a secret key → read Usage and Limits for RPM/TPM caps. Steps follow Quickstart, Authentication, and Rate limits.
The searchable job is OpenAI API key: platform.openai.com account, billing, create secret key, usage limits basics. Trust Billing, Usage, and Limits in your org over third-party quota spreadsheets. ChatGPT Plus does not include API quota.
Platform vs ChatGPT
platform.openai.com
Developer console: Billing, API keys, Usage, Limits. REST calls go to api.openai.com.
chatgpt.com
Consumer ChatGPT. Plus subscription is not API quota; API bills separately by tokens (Pricing).
| Step | Where in console | Typical snag |
|---|---|---|
| Create account | platform.openai.com → Sign up | Verify email; regional rules follow the signup page |
| Enable billing | Settings → Billing | Metered calls need billing ready—see Managing billing |
| Create secret key | Settings → API keys → Create | Secret shown once; revoke and rotate if exposed |
| Check limits | Settings → Limits · Usage | RPM/TPM per model; tier upgrades on Usage tiers |
Account, billing, and secret key
- 01Open a platform.openai.com account
Register with email or supported OAuth, verify email, and land in the Dashboard. Quickstart lists Sign up / Log in as step one. Use one org for your team and invite members under Settings if needed.
- 02Set up Billing
Go to Settings → Billing and add a supported payment method for your organization. API usage is metered by tokens (Pricing). Invoices and spend controls live here—not on chatgpt.com Settings.
- 03Create a secret API key
Settings → API keys → Create new secret key. Copy it into a password manager immediately. Authentication docs treat keys like passwords—never commit to Git or ship in frontend bundles. Use separate keys per app and revoke individually.
- 04Smoke-test one request
Export
$OPENAI_API_KEYlocally, then POST tohttps://api.openai.com/v1/chat/completionsor use the Playground. Success meanschoices[0].message.contentreturns text and Usage increments. - 05Read usage limits basics
The Rate limits guide explains RPM and TPM. Watch
x-ratelimit-remaining-*headers. On 429, honorretry-afteror lower concurrency. Caps also appear under Settings → Limits.
export OPENAI_API_KEY="sk-..." # never commit
curl https://api.openai.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"model": "gpt-4o-mini",
"messages": [{"role": "user", "content": "Say hello in one word."}]
}'
Where setup usually breaks
- 401 Unauthorized
- Missing, mistyped, or revoked key. Confirm
Authorization: Bearerand Active status under Settings → API keys. - 429 Too Many Requests
- Hit RPM/TPM caps. Read headers and retry-after; Rate limits docs recommend exponential backoff.
- 403 or model not found
- Your usage tier may not include that model. Pick a default from Quickstart or check Limits.
- Billing not ready
- Errors or zero usage despite calls—open Settings → Billing and confirm the org payment method and billing status.
Rotate a leaked key before debating models. One minimal request plus Usage confirms billing and limits faster than wiring a full IDE stack blind.
When the team aligns integrations
OpenAI API is HTTP; Copilot or Cursor Agent is a different path. Put endpoint, model, and Limits screenshots on one page. A short oakmeet room works—browser, space code, no account. Caps: eight people, about an hour. Compare ChatGPT Plus, Google AI Studio, and Cline with your own key.
Does ChatGPT Plus include API quota?
No. Plus is chatgpt.com; API bills separately on platform.openai.com. See Pricing and Managing billing Help.
Can I see spend before it surprises me?
Use Settings → Billing and Usage in the platform console. Set team expectations on Limits and model choice—not unofficial quota blogs.
What if the secret key leaked?
Revoke immediately under Settings → API keys and create a new key. Authentication docs recommend rotation and scoped keys per project.
How do I raise rate limits?
Caps tie to usage tiers (Usage tiers). Check Settings → Limits for your org and any upgrade path the page shows.