OpenAI
OpenAI API cost by project, line item and API key
AI Connects with Admin key
Costfluent reads your OpenAI organization's daily API cost by project, line item, API key and user, with an admin key you create. It feeds reports, allocation rules, budgets and the AI spend dashboard.
Permanent Free plan with no time limit
What arrives
Your organization's API cost, by day
Daily cost per project
Cost arrives by UTC day, with each OpenAI project as an account. Spend outside any project sits under the connection's identity.
Line items and their tokens
The SKU is OpenAI's line item, kept whole, such as a model's input or its output. Tokens are counted one by one, even where OpenAI states thousands; images and other quantities keep OpenAI's unit.
In US dollars, as reported
Cost stays in US dollars, as OpenAI reports it, and the billing period is the calendar month.
Key names and user IDs
An API key shows the name its project's key list gives it, with its ID; an unlisted key, or one with an @ in its name, shows the ID alone. Users are OpenAI user IDs in the ai:user tag, never names or email addresses, where OpenAI groups by user.
What you do with it
Models, teams and budgets from one key
OpenAI tokens by model
Line items naming a model and input or output gain the model, maker and token type tags, so the AI spend dashboard shows OpenAI spend by model and its cost per million tokens.
OpenAI projects as team segments
Allocation rules match an OpenAI project by account, a key by resource name or a user by the ai:user tag, and assign the cost to the owning team's segment. Unclaimed cost stays visible as unallocated.
A budget per OpenAI project
Set a budget on a saved cost report filtered to one OpenAI project, or on its team's segment, and follow actual spend and the forecast through the period.
How Costfluent connects
One admin key per organization
- An admin key (sk-admin-), which an “Organization Owner” creates under “Admin keys”; a project key (sk-proj-) cannot read cost. Choose “Read only” where the OpenAI platform offers it: a key with full permissions can also manage members, projects and keys.
- Costfluent stores the key encrypted and makes two reads: the daily costs, and the key list of each project they name, of which it keeps key IDs and names only. It reads no requests, prompts or responses.
- A connection syncs once a day by default, and you can set it as often as hourly. Costfluent reads a day of cost before saving, so a connection that saves can read your cost.
- Connecting imports your plan's backfill, at most six months. Older months come on request, within your plan's limit and the whole months of the last 364 days, since OpenAI serves no cost older than a year.
Related pages
- AI cost tracking
Where AI spend arrives from, the cloud bills and the AI providers, and how its lines are tagged by model.
- LLM prices
The price per million input and output tokens of the models on Amazon Bedrock, Azure and Vertex AI, in euro.
- LLM cost calculator
Tokens in and out a month give a model's monthly cost in a European region.
- Budgets
Set a workspace budget and follow actual spend and the forecast against it.
Articles on this topic
See your OpenAI cost by project
Start on the permanent Free plan and connect your OpenAI organization with an admin key.
Permanent Free plan with no time limit