GeigerBlog
← All posts

How to Answer "How Much Will My OpenAI Bill Be This Month?" Before It Arrives

By Shriraj Pawar

It's 9:40 a.m. on the 15th. Maya, CTO of a 14-person startup in Austin, has a board update due at noon. Her OpenAI dashboard shows $1,752 spent so far, and her finance lead wants a month-end number. Maya keeps asking herself one question: how much will my OpenAI bill be this month?

The dashboard can't answer that. It shows what you've spent, not where you'll land.

That gap gets more expensive every year. Menlo Ventures (2025) found US enterprise spending on generative AI reached $37B in 2025, up 3.2x from $11.5B in 2024. A bigger budget means a bigger miss when the forecast is wrong.

By the End

A month-end OpenAI bill forecast is a spreadsheet projection that turns month-to-date spend into a low, mid, and high estimate for the full month. By the end of this guide, you'll have that spreadsheet built on real daily costs from the OpenAI Costs API, with spike flags and adjustments for planned changes. You'll also know when to automate the forecast instead of updating the spreadsheet by hand.

Before You Start

  • An OpenAI Admin API key that starts with sk-admin-. Only organization Owners can create one, at platform.openai.com under Organization settings → Admin keys. Pick read-only permissions if offered.
  • curl and jq 1.6 or later. Run jq --version to confirm.
  • Google Sheets or Excel for Microsoft 365. The formulas below work in both.
  • At least 7 complete days of spend. Early in the month, use the last 14 days of the previous month instead.
  • Basic terminal and spreadsheet skills. You don't need any statistics.
  • About 30 minutes the first time. Weekly refreshes take about 5.

Step 1: The Costs API Holds Your Real Month-to-Date Spend

Your forecast is only as good as its starting number. The Costs API at /v1/organization/costs returns daily dollar amounts tied to billing. This step pulls every complete day of the current month into a CSV you can paste into a spreadsheet.

OpenAI's API reference warns that the Usage API may not match the Costs API exactly. Use Costs when you want the number closest to your invoice. Use Usage when you need token counts.

  1. Set your key and the start of the month in UTC:
export OPENAI_ADMIN_KEY="sk-admin-..."

# Linux (GNU date)
START=$(date -u -d "$(date -u +%Y-%m-01)" +%s)

# macOS (BSD date)
# START=$(date -j -u -f "%Y-%m-%d %H:%M:%S" "$(date -u +%Y-%m-01) 00:00:00" +%s)
  1. Request one bucket per day:
curl -s "https://api.openai.com/v1/organization/costs?start_time=${START}&bucket_width=1d&limit=31" \
  -H "Authorization: Bearer ${OPENAI_ADMIN_KEY}" \
  -H "Content-Type: application/json" > costs.json
  1. Flatten each bucket into a date and a dollar total:
jq -r '.data[] | [(.start_time | todate | .[0:10]), ([.results[].amount.value] | add // 0)] | @csv' \
  costs.json > daily_costs.csv
  1. Open daily_costs.csv and delete the last row if it shows today's date. Today is still in progress.

Want spend by model? Add &group_by=line_item to the URL. The jq command still sums each day correctly.

✅ Check: Run awk -F, '{s+=$2} END {printf "%.2f\n", s}' daily_costs.csv. The total should sit close to the month-to-date figure on your OpenAI Usage page. The row count should equal the number of complete days.

Step 2: A Daily Spend Table Shows Your Weekly Pattern

Most API spend follows the work week. Developers test on weekdays and scheduled jobs run on fixed days. This step labels each day as a weekday or weekend and flags spikes. That way one bad day can't distort the rest of your forecast.

  1. Import daily_costs.csv into a new sheet. Dates go in column A and costs in column B, with headers in row 1.
  2. In C2, enter =IF(WEEKDAY(A2,2)>5,"weekend","weekday") and fill down.
  3. In D2, enter =IF(B2>2*MEDIAN($B$2:$B$15),"spike","normal") and fill down. Adjust the range to your row count.
  4. In F2, get the normal weekday average: =AVERAGEIFS(B2:B15,C2:C15,"weekday",D2:D15,"normal").
  5. In F3, get the weekend average: =AVERAGEIFS(B2:B15,C2:C15,"weekend",D2:D15,"normal").

Here's Maya's first 14 days in a 30-day month that starts on a Monday:

Week Mon Tue Wed Thu Fri Sat Sun
1 $118 $126 $131 $124 $112 $54 $49
2 $128 $412 $137 $133 $119 $58 $51

The median is $121.50, so anything above $243 counts as a spike. Only the $412 Tuesday qualifies. A teammate re-ran an embedding backfill that day.

Her normal weekday average is $125.33. Her weekend average is $53.

✅ Check: Each flagged row should match a day you can explain. If a spike has no known cause, investigate it before you forecast.

Step 3: Run-Rate Math Is a Poor Answer to "How Much Will My OpenAI Bill Be This Month?"

The fastest forecast divides spend so far by days elapsed, then multiplies by days in the month. Almost every team starts here. This step runs that math on Maya's data so you can see exactly where it breaks.

  1. In any empty cell, enter =SUM(B2:B15)/COUNT(B2:B15)*DAY(EOMONTH(A2,0)).
  2. For Maya, that's $1,752 ÷ 14 × 30 = $3,754.
  3. Now recalculate as if she'd checked on earlier days:
Checked after Spend so far Run-rate projection
Day 7 (Sunday) $714 $3,060
Day 8 (Monday) $842 $3,158
Day 9 (spike day) $1,254 $4,180
Day 14 (Sunday) $1,752 $3,754

The same account produced forecasts $1,120 apart in two days. That's noise, not a bill.

Three flaws cause it:

  • Spikes get stretched. The $412 day adds about $20 to every future day in the projection.
  • The weekly mix is ignored. Maya's first 14 days had 10 weekdays. Her last 16 have 12.
  • Growth is ignored. CloudZero (2026) estimates a chatbot handling 10,000 queries a day on GPT-5.4 Mini costs about $518 a month at steady state. In production it often runs 1.5 to 2x that as prompts grow.

✅ Check: Compute the run-rate as of two different days. If the results differ by more than 10%, a single number isn't reliable for your account.

Step 4: A Forecast Range Accounts for Spikes and Growth

A range is more honest than one number. This step builds three month-end figures from your weekday and weekend averages. You get a low case, a mid case, and a high case that leaves room for one more spike plus normal growth.

Add these cells. Results show Maya's numbers.

Cell Formula Maya's result
F5 Spend so far =SUM(B2:B15) $1,752
F6 Weekdays left =NETWORKDAYS(TODAY(),EOMONTH(TODAY(),0)) 12
F7 Days left =EOMONTH(TODAY(),0)-TODAY()+1 16
F8 Weekend days left =F7-F6 4
F9 Remaining base =F6*F2+F8*F3 $1,716
F10 Spike allowance =MAX(0,MAXIFS(B2:B15,D2:D15,"spike")-MEDIAN(B2:B15)) $290.50
F11 Low =F5+F9*0.9 $3,296
F12 Mid =F5+F9 $3,468
F13 High =F5+F9*1.25+F10 $4,188

Here's why each multiplier is there:

  • 0.9 on the low case covers a slow stretch, like a holiday week.
  • 1.25 on the high case sits inside the 20 to 30% buffer ProxyLLM (2026) recommends for retries and context growth.
  • The spike allowance assumes one more spike the size of your worst one.

TODAY() assumes your data runs through yesterday. If it doesn't, replace TODAY() with the day after your last row. NETWORKDAYS also ignores public holidays unless you pass a holiday list.

The run-rate said $3,754. The mid case says $3,468. That $286 gap is roughly the spike, counted again across the rest of the month.

How accurate should this be? The FinOps Foundation (via Kion, 2026) counts monthly forecasts within 5% of actuals as success. For Maya, that's $3,295 to $3,641 around the mid. Her high case sits about 21% above the mid, and that's deliberate. The FinOps Foundation's FinOps for AI framework notes AI costs swing more than typical cloud costs.

Give finance the mid. Budget for the high.

✅ Check: Your three numbers should run low < mid < high. The gap between run-rate and mid should roughly equal your spike excess spread over the month.

Step 5: Planned Changes Belong in the Forecast Before They Ship

Your history can't see next week's launch. Model swaps, new agents, and reasoning settings can change daily spend overnight. This step turns each planned change into a dollars-per-day figure and adds it to all three cases of your month-end projection.

These changes move the number most:

  • Model swaps. DEV Community (Nov 2026) puts the same 1,000 daily requests at about $420 a month on GPT-6.2 Astra versus about $21 on GPT-6 Luna. Rate cards disagree, so check openai.com/api/pricing before you plug in a price.
  • Reasoning effort. Reasoning tokens are hidden but billed at the full output rate (nOps, 2026). Raising effort can multiply output cost while the visible answer looks unchanged.
  • Long context. Requests over about 272K input tokens are billed at 2x input and 1.5x output for the whole request (Digital Applied, 2026). Agents with growing context can cross that line mid-session.
  • Batch API. It's 50% off input and output, with results within 24 hours (Respan, 2026; LeanLM, 2026).
  • Prompt caching. Cached input costs about 0.1x the normal rate. Cache writes cost 1.25x on GPT-5.6 and later (Respan, 2026).

Follow these steps:

  1. List each change with its start date.
  2. Estimate the daily delta as cost per call × calls per day. Measure cost per call from one day of real traffic in a test project.
  3. Multiply by the number of affected days.
  4. Add the net total to your low, mid, and high.

Maya has two changes planned:

Change Starts Daily effect Days Month effect
Nightly summary job moves to Batch API Day 20 −$15 11 −$165
New support agent launches (weekdays) Day 22 +$40 7 +$280
Net +$115

Her adjusted range is $3,411 low, $3,583 mid, $4,303 high.

Pad new features generously. A first cost-per-call estimate usually misses retries and longer real-world prompts.

✅ Check: Every change has a start date, a daily delta, and a day count. The same net figure appears in all three cases.

Step 6: A Hard Spend Limit Backs Up Your Forecast

A forecast shows where you're heading. A limit stops you from going past it. OpenAI added hard monthly spend limits on July 22, 2026. This step sets one at your high case and adds a weekly check so the forecast stays honest.

Once you hit a hard cap, requests fail with a 429 insufficient_quota error (TheRouter.ai, 2026; OpenAI Docs). Before that change, limits only sent an alert while billing kept going. Limits apply to a project or organization, not a single key (NHIMG, 2026). The Usage dashboard does break spend down by API key (AlphaSignal, 2026).

  1. Open platform.openai.com and go to Settings → Limits for your organization or project.
  2. Set the monthly budget to your high case, rounded up. Maya uses $4,400.
  3. Set an email alert at your mid case. Maya uses $3,600.
  4. Move experimental agents into their own project with a lower cap.
  5. Every Monday, re-run Steps 1 through 4. Log the mid forecast next to the final invoice each month.

A hard cap blocks production traffic too. Cap at the mid, and real users may see errors in the last days of the month. That's why the cap goes at the high case.

✅ Check: The Limits page shows your cap and alert threshold. Any isolated project shows its own lower cap.

Step 7: Automated Daily Forecasts Remove the Manual Work

The spreadsheet works, but only when someone runs it. Spikes tend to land between weekly checks. This step replaces the manual loop with Geiger, which syncs your cost data and projects month-end without anyone opening a spreadsheet.

Geiger is an AI spend tracking dashboard that forecasts your OpenAI, Anthropic, OpenRouter, and xAI bills from usage and cost data, with no code changes. It answers "how much will my OpenAI bill be this month" with a projected range, not a single guess.

  1. Create a read-only Admin key, as described in Before You Start.
  2. Sign up at trygeiger.com, choose OpenAI, and paste the key. Setup takes about a minute.
  3. Review the month-to-date total, the projected month-end range, and cost by model.
  4. Set a budget alert at your mid case and turn on anomaly alerts.
  5. No Admin key access? Import a CSV export from the OpenAI console instead.
  6. Add Anthropic, OpenRouter, or xAI to see every provider in one dashboard.

We only read usage and cost data through that key. We never access or store your prompts or completions. There's no SDK and no proxy.

When a day like Maya's $412 Tuesday shows up, Geiger explains it in plain language, such as which model drove the jump. Costs are labeled as estimated or official, so you know which numbers will match the invoice.

The Free plan covers one provider with 7 days of history, enough to see one weekly cycle. Pro adds 90-day history, automatic daily sync, and manual refresh.

Automation still can't see next week's launch. Keep your Step 5 table for planned changes.

✅ Check: Geiger's month-to-date total lands within a dollar or two of your Step 1 total, and a month-end range appears on the dashboard.

Troubleshooting: Where Forecasts Usually Go Wrong

Most OpenAI forecast errors come from five problems: mismatched data sources, too few days of data, Costs API authentication mistakes, ChatGPT subscription charges on the same card, and runaway agent spend. Each problem below gives the symptom, the likely cause, and the fix so you can correct the spreadsheet quickly.

Your month-to-date total doesn't match the Usage page

A month-to-date mismatch is a gap between your spreadsheet total and the OpenAI Usage page. The usual cause is that the two numbers come from different data sources. OpenAI's API reference says the Usage API and the Costs API may not match exactly, so use the Costs API for invoice questions. Also confirm that you removed today's partial row from the spreadsheet and that your start time is UTC midnight.

The forecast jumps every time you refresh

A jumping forecast is a month-end projection that changes sharply on each refresh. The cause is usually too few days of data or an unflagged spike in the spreadsheet. Use at least 7 complete days of Costs API data, ideally 14, so one unusual day can't swing the estimate. Check column D for spikes. If a big day isn't flagged, lower the spike threshold from 2*MEDIAN to 1.75*MEDIAN.

The Costs API returns a 401 or an empty data array

A 401 usually means you used a project key instead of an sk-admin- key. Only org Owners can create Admin keys. An empty array often means start_time was sent in milliseconds. The API expects Unix seconds, a 10-digit number.

Your card charge is bigger than your API forecast

A card charge larger than your API forecast usually means ChatGPT subscriptions are billing alongside API usage. ChatGPT subscriptions bill separately from the OpenAI API. ChatGPT Plus costs $20 per month and ChatGPT Business costs $25 per user per month (EnrichLabs, Nov 2026). Answering "how much will my OpenAI bill be this month" means adding both totals. Forecast only the API spend in the spreadsheet, then add ChatGPT seat costs as a fixed line.

One agent blew past the high case in a single day

A single-day blowout is when one AI agent spends more than the forecast's high case in one day. Agent loops can outrun any monthly OpenAI forecast. In one deliberate stress test, about 100 coding agents used roughly $1.3M in OpenAI tokens in a month (Tom's Hardware via Qlauson, May 2026). Put agents in their own OpenAI project with a hard cap. Turn on anomaly alerts that fire the same day.

What to Do Next: Make the Forecast a Weekly Habit

Run this process every Monday for a month. Compare your mid case to the final invoice. If you land within 5%, your method works. If not, check whether spikes or planned launches caused the miss. Next, track cost per call for your busiest feature, as the FinOps Foundation suggests. Then cap risky workloads using per-project OpenAI spend limits. Once your team trusts the number, "how much will my OpenAI bill be this month" stops being a noon scramble. Learn more about the difference between the Usage API and Costs API.

Further reading

  • OpenAI API pricing page (openai.com/api/pricing): the only rate card to trust, since third-party price lists disagree.
  • OpenAI API Reference, Costs endpoint: field definitions, pagination, and the group_by options for model-level breakdowns.
  • FinOps Foundation, FinOps for AI framework: guidance on unit metrics like cost per call and on forecasting volatile AI spend.
  • Menlo Ventures, 2025 generative AI enterprise report: market context on spend growth and provider share, including Anthropic at 40% and OpenAI at 27% of enterprise LLM API spend.

Sources

  1. 2025: The State of Generative AI in the Enterprise — Menlo Ventures, 2025. Supports: US enterprise generative AI spending reached $37B in 2025, up from $11.5B in 2024, with Anthropic at 40% and OpenAI at 27% of enterprise LLM API spend.
  2. Costs — OpenAI API Reference — OpenAI, 2026. Supports: the /v1/organization/costs endpoint returns cost data for an organization in time buckets and is called with an Admin key.
  3. OpenAI Hard Spend Limits Now Terminate API Requests — TheRouter.ai, 2026. Supports: OpenAI added hard monthly spend limits on July 22, 2026, and requests over the cap fail with a 429 insufficient_quota error.
  4. OpenAI API cost calculator: estimate your GPT spend before it estimates you — CloudZero, 2026. Supports: a chatbot handling 10,000 queries a day on GPT-5.4 Mini costs about $518 a month at steady state, and 1.5 to 2x that in production.
  5. How to Forecast AI Token Spend: A 6-Step Guide (2026) — Kion, 2026. Supports: the FinOps Foundation counts monthly forecasts within 5% of actuals as success.
  6. FinOps for AI — FinOps Framework Technology Category — FinOps Foundation, 2026. Supports: AI costs are more volatile than typical cloud costs, which makes trend-based forecasting harder.
  7. LLM Batch API: 50% Off OpenAI, Claude & Gemini in 2026 — LeanLM, 2026. Supports: the Batch API gives a flat 50% discount on both input and output tokens.
  8. ChatGPT Pricing 2026: Every Plan, Cost and Limit — EnrichLabs, 2026. Supports: ChatGPT Plus costs $20 a month and ChatGPT Business costs $25 per user per month, billed separately from the API.