Last verified against OpenAI docs: November 30, 2026
How to Track OpenAI API Spend Per Project
If every side project you've built uses the same OpenAI API key, the bill is one number with no way to tell which app spent it. OpenAI has tools to fix that, but you need to set them up.
Step 1: Give each app its own Project
In the OpenAI API platform, Projects organize work inside your organization. Each project has its own API keys, and OpenAI lets you view usage, billing and spend limits per project.
Create one project per app and give each app a key from its own project. Old shared keys can then be rotated out.
Step 2: Read spend per project
In the platform, open Analytics → Spend for the current project. For everything at once, switch to Organization analytics, open Spend, and filter or break it down by Projects, API keys, Models or Line items. The Usage view shows requests and tokens with the same kind of filters.
Two things to keep in mind:
- Dashboard data is in UTC, so a "day" may not match your local day.
- Recent usage can take a while to appear.
You can also export monthly cost data as CSV from the Usage page.
Step 3: Set a spend limit on old projects
For apps you've stopped working on, set a low project spend limit, or revoke the project's keys. A leaked or forgotten key in an old repo is a common source of unexpected usage.
Step 4: Automate it with the Costs API
With an Admin key, the GET /organization/costs endpoint returns daily costs and can group them by project_id, api_key_id or line_item. It's useful if you want spend per app in your own dashboard or spreadsheet.
Put it next to everything else
CobwebCheck reads OpenAI usage and costs with an Admin key you add (encrypted, deleted when you remove it), and shows AI spend next to hosting, databases and domains for each project.
See what every app costs you. Read-only, about two minutes, nothing to install.
Sources
- OpenAI Help Center, "Reviewing API usage and costs": https://help.openai.com/en/articles/10478918-reviewing-api-usage-and-costs
- OpenAI Help Center, "Managing projects in the API platform": https://help.openai.com/en/articles/9186755-managing-projects-in-the-api-platform
- OpenAI Help Center, "Exporting monthly usage details": https://help.openai.com/en/articles/20001072-exporting-monthly-usage-details-from-the-api-usage-dashboard