GeigerBlog
← All posts

How to Find Out Why Your OpenAI Bill Is So High: 9 Common Causes and How to Spot Them

By Shriraj Pawar

The invoice lands on the first of the month. Last month was $412. This month is $1,860, and nobody shipped anything big.

Someone opens the OpenAI billing page and sees one tall bar near the 18th. Then they post the question in Slack: why is my OpenAI bill so high?

The answer is almost always in your usage and cost data. You don't need to read a single prompt to find it.

The Goal

This guide is a structured diagnosis of an OpenAI spend spike. By the end, you'll know which of nine common causes drove your OpenAI spend. You'll have the date the spike started, the model and API key behind the spike, and a fix. You'll also have hard limits and alerts set in your OpenAI organization, so next month's invoice holds no surprises.

Before You Start

An OpenAI bill audit takes 30–45 minutes. You'll need Owner access to your OpenAI organization, the billing period you want to explain, and a list of your projects and API keys. An OpenAI Admin API key, curl, and jq 1.6+ are optional and only needed for the scripted command-line checks in Step 2.

  • Owner access to your OpenAI organization at platform.openai.com. Without Owner access, you can't set organization limits or create Admin keys.
  • The billing period you want to explain, with start and end dates.
  • An OpenAI Admin API key (optional). You only need an Admin key for the command-line route in Step 2. Create one under Organization settings → Admin keys.
  • curl and jq 1.6+ (optional), for the scripted checks.
  • A list of your projects and API keys, with a known owner for each project and key if possible.
  • Basic token literacy. You should know that input tokens are what you send to the model and output tokens are what the model returns.
  • Time: 30–45 minutes.

Step 1: Confirm the Charge Is API Spend, Not ChatGPT

Cause #1 isn't an API problem at all. OpenAI bills ChatGPT subscriptions and API usage separately, even under the same email and card. Before you dig into tokens, confirm the charge you're worried about came from the API platform.

This mix-up is common. One marketing blogger mistook a $10 API credit charge for a ChatGPT Plus problem (Talked About Marketing, 2025).

Auto-recharge adds to the confusion. A credit top-up is a purchase, not usage. Three $50 top-ups in a week look scary on a card statement, but they only tell you credits ran low.

  1. Open your card statement. Note every OpenAI charge, with amount and date.
  2. Go to chatgpt.com → Settings → Account. Find your Plus, Pro, or Team subscription charges.
  3. Go to platform.openai.com → Settings → Billing. Open the payment history and check whether auto-recharge is on.
  4. Match each card charge to one of the two systems.

How cause #1 shows up: flat, recurring amounts like $20 that match a subscription. Round top-ups like $10 or $50 that match credit purchases rather than daily usage.

✅ Check: Every charge on your statement maps to a ChatGPT subscription or an API payment. If API usage for the period is still higher than expected, move on.

Step 2: Turn "Why Is My OpenAI Bill So High" Into a Dated Spike

A bill total tells you almost nothing. You need the day spend jumped and the dimension that jumped with it. OpenAI's usage dashboard and Usage API both group spend by project, API key, and model, with no request content involved.

Dashboard route:

  1. Open platform.openai.com/usage.
  2. Set the date range to your billing period plus the two weeks before it. That gives you a baseline.
  3. Find the first day spend rose clearly above baseline. Write down the date.
  4. Group by project. Then by API key. Then by model. Note which one breaks from baseline on that date.
  5. Note the line items involved: input, output, cached input, or tool calls.

API route (Linux date syntax; on macOS use date -v-31d +%s):

# Daily cost by line item, last 31 days
curl -s "https://api.openai.com/v1/organization/costs?start_time=$(date -d '31 days ago' +%s)&bucket_width=1d&group_by=line_item&limit=31" \
  -H "Authorization: Bearer $OPENAI_ADMIN_KEY" -o costs.json

# Daily tokens and requests by model and API key
curl -s "https://api.openai.com/v1/organization/usage/completions?start_time=$(date -d '31 days ago' +%s)&bucket_width=1d&group_by=model,api_key_id&limit=31" \
  -H "Authorization: Bearer $OPENAI_ADMIN_KEY" -o usage.json

These endpoints return counts and dollars only. They never return prompts or completions.

If you'd rather skip the scripts, Geiger reads the same usage and cost data with a read-only Admin key. We never access or store your prompts or completions.

Use this map to read what you find:

# Cause What it looks like in usage data
1 ChatGPT vs. API confusion Flat charges or round top-ups, not usage
2 Flagship model default or upgrade Same request count, new model name, higher cost
3 Reasoning tokens Output tokens far above visible response length
4 Growing context Input tokens per request climbing over time
5 Missed caching Cached input tokens near zero or suddenly dropped
6 Retries and agent loops Request count spikes on one key for hours
7 Forgotten dev keys Steady traffic on a key nobody claims
8 Leaked keys Models you don't use, traffic at odd hours
9 One-off jobs, tiers, and tool fees One tall bar, tier labels, tool line items

✅ Check: You can write one sentence like "Spend jumped on the 18th on project X, key Y, model Z, mostly output tokens."

Step 3: Check the Model Mix for Upgrades and Reasoning Tokens

Model choice sets your price per token. One config change can multiply cost by 100x with identical traffic. This step checks whether a pricier model or hidden reasoning tokens explain the spike, using only model names and token counts.

Cause #2: a flagship model became the default. One DEV article (2026) calls flagship defaults the number one cause of bill shock. The price gap is wide. According to CloudZero (2026), GPT-6 Luna costs $0.10 input and $0.50 output per 1M tokens, while GPT-6 Astra costs $10 and $50. That's a 100x difference.

Common triggers include a changed environment variable, an SDK upgrade with a new default, or a test that quietly went to production.

Cause #3: reasoning tokens. Reasoning models "think" before answering. Those thinking tokens are billed as output at the full output rate, which is $50 per million on GPT-6 Astra (nOps, 2026). CloudZero (2026) calls the 3x gap between estimates with and without thinking tokens the most common o3 invoice surprise.

Output costs five times input on every GPT-6 model (CloudZero, 2026). So output-heavy spikes hurt most.

  1. Group cost by model for the spike date and the seven days before it.
  2. Look for a new model name or a shift in share between models.
  3. For each reasoning model, divide output tokens by requests. Compare that to your typical visible response length.
  4. Find recent model changes in your code:
git log -S "gpt-" --since="30 days ago" --oneline

One tradeoff: dropping to a smaller model saves money but can hurt quality on harder tasks. Route a 5–10% slice first and compare results.

✅ Check: You know whether cost per request rose while request volume stayed flat. If yes, the model mix is your cause.

Step 4: Check Token Shape for Growing Context and Missed Caching

Sometimes the model, the price, and the request count all stay the same. Each request just gets heavier. This step measures input tokens per request and your cache hit rate, the two numbers that expose context bloat.

Cause #4: longer context windows. Chat apps resend the full conversation on every turn. System prompts are billed on every call too. Picture a 20-turn chat where each turn adds 500 tokens. By turn 20, you're sending 10,000 tokens of history. Across the whole chat, that's about 105,000 input tokens.

Very large requests cost extra. Above roughly 272K input tokens, pricing runs 2x on input and 1.5x on output (Puter, 2026).

Cause #5: missed cache hits. OpenAI automatically discounts repeated prompt prefixes on supported models. At launch, the discount was 50%. On GPT-6 Sol today, cached input costs $0.20 versus $2.00 standard, a 90% discount (nOps, 2026). Losing cache hits now costs far more than it used to.

A frequent culprit is a timestamp or user name at the top of the system prompt. That breaks the shared prefix on every call.

  1. Divide input tokens by requests for each day.
  2. Divide cached input tokens by input tokens. That's your cache hit rate.
  3. Compare both numbers before and after the spike.
  4. Run this against the usage.json file from Step 2:
jq '.data[].results[] | select(.num_model_requests > 0)
  | {model, in_per_req: (.input_tokens / .num_model_requests | floor),
     cache_pct: (if .input_tokens > 0 then (.input_cached_tokens / .input_tokens * 100 | floor) else 0 end)}' usage.json

Fix: put static instructions first and variable content last. Trim or summarize old chat turns.

✅ Check: You have before-and-after numbers for input tokens per request and cache hit rate.

Step 5: Check Request Volume and API Keys for Loops, Forgotten Keys, and Leaks

If cost per request looks normal, volume is the problem. Volume spikes come from three places: code calling too often, keys you forgot, and keys someone else is using. Grouping by API key separates all three.

Cause #6: runaway retries and agent loops. A rate-limit error triggers retries with no backoff. An agent hits a tool error and tries again, and again. A client-side timeout doesn't cancel server-side work, so you can pay for answers you never received. In the data, request count spikes on one key for hours, often overnight.

Cause #7: forgotten dev keys. Think of an eval script on a cron job, or a staging app pointed at the flagship model. You'll see steady traffic on a key named "test" or a project no one claims.

Cause #8: leaked keys. This is the main answer on the OpenAI forums when someone asks why their OpenAI bill is so high. In one 2024 thread, a user who ran only GPT-3.5 and Whisper was billed $306.57, including $100.12 for GPT-4 they never used. Community members pointed to a leaked key.

The trend is getting worse. GitGuardian detected 1,275,105 leaked secrets tied to AI services in 2025, up 81% from 2024 (via The Hacker News, 2026). In a GitGuardian honeypot study, exposed OpenAI and Anthropic keys were quickly used to drain the test balances. GitGuardian's Dwayne McDaniel says OpenAI keys are among the fastest-growing leaked secret types and that AI-assisted coding is speeding up leaks (TFiR, 2026).

  1. Group requests by API key for the spike window.
  2. List each key's owner, environment, and expected traffic.
  3. Flag unowned keys, keys calling models you don't use, and keys active while your product is idle.
  4. Revoke suspect keys at platform.openai.com/api-keys, then rotate. See how to rotate a leaked OpenAI API key.
  5. Scan your repo history:
gitleaks detect --source . --log-opts="--all"

Fix for loops: use exponential backoff, cap retries at 3, and set a maximum step count on agents.

✅ Check: Every active key has a named owner and an expected traffic pattern. Unknown keys are revoked.

Step 6: Check One-Off Jobs, Processing Tiers, and Tool Fees

Some spikes come from one big job run at the wrong price. Think backfills, evals, or a re-embedding migration. Others come from a premium processing tier or tool calls that bill separately from tokens. This step checks line items and tier settings.

Cause #9: one-off jobs, tiers, and tool fees. Batch API and Flex bill at half the Standard rate. Fast mode bills at twice Standard, and Ultrafast at six times (Maxim / daily.dev, 2026). Here's a 200M-input-token backfill on GPT-6 Astra at $10 per 1M:

Processing tier Multiplier Cost for 200M input tokens
Batch / Flex 0.5x $1,000
Standard 1x $2,000
Fast 2x $4,000
Ultrafast 6x $12,000

Tool calls add up too. Web search costs $10.00 per 1,000 calls, and file search costs $2.50 per 1,000 (daily.dev, 2026). An agent making five searches per request across 20,000 requests runs 100,000 calls. That's $1,000 in search fees alone.

  1. Group cost by line item for the spike date.
  2. Look for tool line items and tier labels.
  3. Ask your team who ran a backfill, eval, or migration that day.
  4. Search for tier settings in code:
grep -rn "service_tier" .

✅ Check: The spike day has a named job or setting behind it, or you've ruled this cause out.

Step 7: Set Hard Limits and Alerts So the Next Spike Gets Caught Early

Diagnosis fixes this month. Limits and alerts protect next month. They do different jobs: alerts tell you something is wrong, and hard limits stop traffic. You'll want both, set at different levels for different projects.

OpenAI now offers per-API-key usage tracking and hard caps that fully stop API traffic when hit (AlphaSignal, 2026). Enforcement isn't instant, so spend can slightly exceed the limit (JHU support guide, 2026). The OpenAI Help Center advises setting monthly spend limits for your organization or projects and enabling hard enforcement to limit costs from a leaked key.

  1. Open Settings → Limits. Set an organization monthly budget with an alert at 80%.
  2. Set a budget on each project. Turn on hard enforcement for dev and test projects first.
  3. Set production limits well above your forecast. A hard cap on production stops your product, too.
  4. Add an anomaly alert that compares daily spend against your recent baseline.

OpenAI's limits react to totals. Geiger adds daily forecasts with a projected month-end range, plus budget and anomaly alerts that name the model behind a spike. It connects with a read-only Admin key in about a minute, with no SDK or code changes. The free plan covers one provider with 7 days of history.

✅ Check: Set a low alert threshold on a dev project, send a few test requests, and confirm the alert email arrives.

Troubleshooting

OpenAI bill troubleshooting means resolving the five failure modes that come up most often when you're working out why your OpenAI bill is so high. These failure modes are mismatched usage and invoice totals, unfamiliar models in your costs, spend that ignores budgets, inflated output tokens, and missing Admin key access.

The usage page total doesn't match your invoice

A mismatch between the OpenAI usage page and your invoice usually comes from timing or scope. OpenAI usage dates run in UTC, so late-night spend can land on a different day. Cost data can also lag by several hours. Check that tool fees and tax are included in your comparison, and don't count credit top-ups as usage.

A model you've never used appears in your costs

An unfamiliar model in your OpenAI cost breakdown is a strong sign of a leaked API key. Treat the unfamiliar model as evidence of a leak until proven otherwise. Revoke the API key that made those calls, rotate every other key, and scan your code repositories for exposed secrets. Then turn on hard enforcement for every project.

Spend kept rising after you hit your budget

Spend that keeps rising after you hit your OpenAI budget usually means the budget was set to alert only, which notifies you without stopping requests. Switch the budget to hard enforcement. Also check that the limit sits on the right project, not just the organization. Expect a small overshoot, since OpenAI's budget enforcement isn't instant.

Output tokens look far too high for your responses

Unexpectedly high output token counts usually come from reasoning tokens, which OpenAI bills as output. Lower the reasoning effort setting on models where the setting is supported. Set a max output token cap on every API call.

You can't get an Admin key

An OpenAI Admin key is an organization-level key that only users with the Owner role can create. If you can't get an Admin key, export usage as a CSV file from the OpenAI dashboard instead. Geiger accepts CSV imports from the OpenAI and Anthropic consoles and labels which figures are estimated versus official.

What to Do Next

Once you've found the cause, make the check routine. A weekly 10-minute look at spend by model and key catches most problems before they compound. If caching was your culprit, read how prompt caching cuts OpenAI costs next. If you also run Anthropic, OpenRouter, or xAI, review them together, because a model swap often moves spend between providers rather than cutting it. That way you won't be asking "why is my OpenAI bill so high" again next month.

Your next move: decide where your alerts live. If you use one provider and spend under a few hundred dollars a month, OpenAI's built-in limits are enough. If you use two or more providers or need forecasts before month-end, connect a dedicated tracker today.

Sources

  1. The State of Secrets Sprawl 2026 — GitGuardian, 2026. Supports: GitGuardian found 1,275,105 leaked secrets tied to AI services in 2025, up 81% from 2024.
  2. Unknows API usage and costs — OpenAI Developer Community, 2024. Supports: A forum user who used only GPT-3.5 and Whisper was billed $306.57, including $100.12 for GPT-4, and community members pointed to a leaked key.
  3. Prompt Caching in the API — OpenAI, 2024. Supports: When prompt caching launched, the discount on reused input tokens was 50%.
  4. OpenAI Gives Developers Hard Spend Limits to Stop Runaway API Bills — AlphaSignal, 2026. Supports: OpenAI added per-API-key usage tracking and hard caps that fully stop API traffic when the cap is hit.
  5. Managing projects in the API platform — OpenAI Help Center, 2026. Supports: Project monthly spend limits can be set with alerts and an optional hard limit that stops API traffic.
  6. GPT-6 Pricing: Astra, Sol and Luna API Costs — FinOps LLM, 2026. Supports: GPT-6 Luna costs $0.10/$0.50 and GPT-6 Astra costs $10/$50 per 1M input/output tokens, a 100x gap.
  7. OpenAI API Pricing 2026: Full Rate Card & Cost Guide — nOps, 2026. Supports: Reasoning tokens are billed as output tokens.
  8. GPT-6 Sol Benchmarks: Scores, Cost, and How It Compares — Emergent, 2026. Supports: Cached input on GPT-6 Sol costs $0.20 per million, compared with $2.00 standard, a 90% discount.
  9. GPT-5.4 Model — OpenAI, 2026. Supports: Prompts over 272K input tokens are charged 2x on input and 1.5x on output (this is from OpenAI's GPT-5.4 model docs).
  10. OpenAI API Pricing in 2026: Model Costs and Spend Controls — Maxim, 2026. Supports: Batch and Flex bill at half the Standard rate, Fast mode at twice Standard and Ultrafast at six times Standard.
  11. OpenAI API pricing in 2026: every model from Astra to Luna — CloudZero, 2026. Supports: Web search costs $10 per 1,000 calls and file search costs $2.50 per 1,000 calls.
  12. Your AI Coding Agent Just Leaked a Secret. Bots Found It on Docker Hub in 8 Seconds — GitGuardian via DEV Community, 2026. Supports: In GitGuardian's honeypot study, exposed OpenAI and Anthropic keys were quickly used to drain the test accounts' balances.
  13. AI Code Leaked 29M Secrets in 2025: GitGuardian — TFiR, 2026. Supports: OpenAI keys are among the leaked secret types growing fastest, in an interview with GitGuardian's Dwayne McDaniel.
  14. Mamas Don't Let Your Babies Grow Up To Love AI Tools AKA How ChatGPT Took My Money And Ran — Talked About Marketing, 2025. Supports: A marketing blogger was confused by a $10 OpenAI API credit charge on their card.