Skip to content
English
  • There are no suggestions because the search field is empty.

Connecting OpenAI token usage and spend

Bring your OpenAI API spend into Hyperglance, broken down by project, model, token type, API key and user

Connect your OpenAI organization to see what you spend on the OpenAI API next to your cloud costs. Hyperglance reads your organization's costs and usage from OpenAI's Admin API, and breaks the spend down by project, model, token type, API key and user.

Your OpenAI spend then appears in Cost Explorer, Trends & Anomalies, budgets and the AI Central dashboard, with the AI usage dimensions (AI Model, API Key, Pricing Tier, User / Service Account and Token Type).

Note

This covers the OpenAI API platform. ChatGPT Enterprise and Team workspaces aren't covered by OpenAI's Admin API. For OpenAI models used through Azure, connect the subscription's cost data instead.

Step 1: Create a restricted Admin API key

  1. Sign in to the OpenAI Platform as an organization owner.
  2. Go to Settings › Organization › Admin keys and click Create new admin key. Name it (for example "Hyperglance").
  3. Choose Restricted and grant only Usage API → Read and Organization Administration → Read. Leave every other permission set to None.
  4. Copy the key. It starts with sk-admin- and is only shown once.

Usage read covers spend, token counts and which user each API key's requests came from. Organization read lets Hyperglance show project, API key and user names instead of IDs. Create a key just for Hyperglance, so you can revoke it on its own. See OpenAI's documentation.

Step 2: Connect it in Hyperglance

In Hyperglance, go to Settings › Platforms, click Connect Platform and choose OpenAI.

Connecting OpenAI

Give the connection a Name (for example your organization's name) and paste the Admin API Key. Click Check access to test the key.

Done: Connect

Click Connect. Hyperglance imports your organization's spend history, newest first, then keeps it up to date with each collection. It appears under Cost Sources on the Platforms page.