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.

AccountSign up → org dashboard
Secret keyAPI keys · shown once
LimitsRPM · TPM · Usage tier

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).

StepWhere in consoleTypical snag
Create accountplatform.openai.com → Sign upVerify email; regional rules follow the signup page
Enable billingSettings → BillingMetered calls need billing ready—see Managing billing
Create secret keySettings → API keys → CreateSecret shown once; revoke and rotate if exposed
Check limitsSettings → Limits · UsageRPM/TPM per model; tier upgrades on Usage tiers

Account, billing, and secret key

  1. 01
    Open 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.

  2. 02
    Set 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.

  3. 03
    Create 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.

  4. 04
    Smoke-test one request

    Export $OPENAI_API_KEY locally, then POST to https://api.openai.com/v1/chat/completions or use the Playground. Success means choices[0].message.content returns text and Usage increments.

  5. 05
    Read usage limits basics

    The Rate limits guide explains RPM and TPM. Watch x-ratelimit-remaining-* headers. On 429, honor retry-after or 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: Bearer and 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.

Start a room