How to track OpenAI API costs by model and project

OpenAI bills your API use once a month, but the money is spent every day, call by call. Here are three ways to see your OpenAI spend sooner, from simplest to most complete.

1. Check the usage page in the OpenAI dashboard

The OpenAI Platform has a Usage page that shows spend and tokens over time for your organization.

  1. Sign in to the OpenAI Platform as someone with access to billing.

  2. Open Usage from the dashboard or settings menu.

  3. Pick a date range, then group or filter by project or model to see what drove the total.

It’s free and needs no setup. The catch is that someone has to remember to look, and it only covers OpenAI.

2. Pull the numbers with OpenAI’s Usage and Costs APIs

OpenAI also offers a Usage API and a Costs API, so you can pull the same numbers into a spreadsheet or your own reports.

  • Key you need: an Admin key, which only an Organization Owner can create. Regular project keys can’t read billing data. You can limit the Admin key to read access.

  • What you get: daily buckets of usage and cost, which you can break down by project, model or API key.

  • What it costs you: someone has to write and maintain the script, store the data, and build the charts and alerts.

3. Use a cost dashboard like Tellgan

Tellgan connects to your OpenAI organization with an Admin key, reads only your usage data, and works out the cost from each model’s prices. It never sees your prompts or responses.

  • Spend at a glance: today, this week, this month, this quarter and this year.

  • Spend over time: a chart by day, week, month, quarter or year, in tokens or dollars.

  • Top models: which models you call most, how many requests each gets, and what each costs.

  • Budget alerts: set a monthly limit in dollars or tokens and get an email before you go over.

If you also use Anthropic, Tellgan shows both providers side by side, so you see your whole AI bill in one place.

What usually drives a surprise OpenAI bill

  • A model switch: moving a feature to a larger model can multiply the cost of every call.

  • Long prompts: large system prompts or chat histories add input tokens to every request.

  • Background jobs: a batch job or agent loop that runs more often than planned.

  • Forgotten keys: an old project key still in use by a test environment.

Start tracking today

The OpenAI dashboard tells you what you spent. A tracking tool tells you while you can still change it. Start a free Tellgan trial and connect your OpenAI organization in a few minutes.

Tellgan chart of monthly AI spend from January to November

Start tracking your OpenAI costs today.