Connect OpenAI to Stax.
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.
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- Click Create admin key.
- Name it something you'll recognize later — Stax is fine.
- Leave the default read-only scope. Stax only needs the usage and cost endpoints.
- Copy the key. It starts with sk-admin- and you'll only see the full value once.
Paste the key into Stax.
In Stax, go to /app → Providers → OpenAI → Connect. 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.
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:
- Daily spend in USD, pulled from /v1/organization/costs directly — no token-to-dollar math on our side, so totals match your OpenAI invoice exactly.
- Per-model breakdown (GPT-4o, GPT-4.1, o-series, embeddings, image, audio, moderations, vector stores, code interpreter sessions).
- Per-project attribution via OpenAI's project_id.
- Per-user attribution where you've enabled the user_id grouping on your end.
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
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 →