Integrations
OpenAI API usage per member and API key
In short: paste an OpenAI admin key on the Sources page. FiscaLLM reads your organization's usage hour by hour, per member, API key and model, and shows it next to your other AI tools.
Beta. This source is built and tested against the format OpenAI API publishes, but has not yet been run against a live account. If something looks off, open an issue.
Set it up
- Create an app in FiscaLLM (free).
- In the OpenAI Platform: Settings, Organization, Admin keys. Only organization owners can create one. It reads usage; FiscaLLM never calls a model with it. (open)
- Paste the key on the app's Sources page under OpenAI API and press Connect. The key is checked, stored encrypted, and used only to read usage. The last 30 days are read at once, then new usage once a day.
What is read
- Who: The organization member's email; for a service account, the API key ID.
- Cost: Hourly token, audio-second and character counts, priced at OpenAI's API list prices.
- Prompts, code and responses are never read or stored.
Limits
- One row per member, model and hour, so the request count is lower than the real number of calls.
- Image generation is not read. Audio tokens in chat models are priced as text.
- If Codex CLI runs on an API key of the same organization and also exports to FiscaLLM, that usage is counted twice. Turn on one of the two.
Using more than one AI tool? Each one is a source you turn on in the same app, and the overview shows the cost of each tool, developer and model side by side. See all integrations.
Questions
Which key is needed?
An admin key (sk-admin-…), which only organization owners can create. FiscaLLM uses it to read the Usage API and the member list; it never calls a model with it.
Is this cost per end user of my product?
No. OpenAI knows members and API keys, not your users. For cost per end user, add the FiscaLLM SDK, OpenTelemetry or LiteLLM as well.
Does it match my OpenAI invoice?
Closely but not exactly: usage is priced at list prices, so discounts, Batch and Flex pricing and image generation are not reflected.