Valistry

OpenAI usage and costs

Organization usage and costs only: tokens per model, project and key per day, the bill by line item, and transcription minutes. Never prompts, completions, members or projects.

Access

Kind
A read-only key you paste
What to give
Admin API key
Why that one
An organization Admin key created as Restricted with only Usage API Scope set to Read (Settings, Organization, Admin keys), not a project key and not an All-permissions key. Tested first, then stored encrypted for this organization; shown only as its last four characters.

What it attributes on its own

From the source
api key · project · model · line item
Needs a rule or a trace
workflow · agent · outcome — needs a rule or a trace join

The addresses it calls

  • https://api.openai.com/v1/organization/usage/
  • https://api.openai.com/v1/organization/costs
  • https://api.openai.com/v1/organization/projects

Only these. A call anywhere else is refused before it leaves, and every call is logged.

Connecting it

  1. Open Admin keys and create a key. Click Create new Admin key and fill the form: Open ↗
  2. Copy the key and paste it below. It is shown once. Test and connect reads seven days of usage and costs, checks that the key cannot do more than that, and stores it only if the read succeeded.

A key created with Permissions: All also works, but it can manage your organization. The connect test tells you if the key you pasted is broader than needed.