All provider guides
O
Provider guide

Connect OpenAI to Stax.

Live API

Stax pulls dollar-denominated costs and per-model token usage from OpenAI's Admin API. Daily sync, read-only scope, no access to prompts or completions.

Auth
Admin API key
Starts with sk-admin-
Setup time
~2 min
If you're an org owner
First sync
5 min
30 days backfilled
Cost data
USD direct
Not reconstructed from tokens
Step 1

Generate the admin API key.

Sign in to your OpenAI dashboard as an organization owner and open the admin keys page:

platform.openai.com/settings/organization/admin-keys
  1. Click Create admin key.
  2. Name it something you'll recognize later — Stax is fine.
  3. Leave the default read-only scope. Stax only needs the usage and cost endpoints.
  4. Copy the key. It starts with sk-admin- and you'll only see the full value once.
If you don't see this page: you're either signed in as a member rather than an owner, or your account has multiple organizations and you're on the wrong one. Switch organization from the top-left selector, or ask your owner to generate the key and share it with you through 1Password / Bitwarden.
Step 2

Paste the key into Stax.

In Stax, go to /appProvidersOpenAIConnect. Paste the key into the field labeled Admin key and save.

Stax validates the key against /v1/organization/costs before saving. If the key is invalid or doesn't have organization scope, you'll see an inline error and nothing is stored. Once valid, the credential is encrypted with AES-256 before it hits our database.

Step 3

What you'll see after the first sync.

The initial backfill pulls the last 30 days of cost and usage data and usually completes in under 5 minutes. After that, Stax syncs nightly. You'll see:

ChatGPT Business seat usage is not in this API — it's billed separately. If you also have ChatGPT Business, see the ChatGPT Business guide.

Common errors

401 Unauthorized
Wrong key type. You probably pasted a regular sk-... API key instead of the admin one. Admin keys start with sk-admin- and are generated on the admin-keys page above, not the regular API keys page.
403 Forbidden
Key was created by a non-owner. OpenAI requires the admin key be generated by an organization owner. Have your owner regenerate it.
Sync looks low
You may be on the wrong organization. OpenAI accounts often have multiple orgs (personal + company). The key is scoped to whichever org was selected when you generated it. Confirm the org name on the dashboard's top-left selector, regenerate if needed.

Ready to track this in your AI bill?

Stax is in private beta. Track this provider and your entire AI spend in one dashboard. Join the waitlist to lock in founding-member pricing — $29/mo forever for the first 100 sign-ups.

Join the waitlist →