How to connect OpenAI
This guide creates an OpenAI Admin API key so CloudMonitor can read token usage and cost data from your OpenAI organization. Allow about 5 minutes. You need to be an OpenAI organization owner to complete it.
Step 1 — Generate an Admin API key
Section titled “Step 1 — Generate an Admin API key”Open platform.openai.com → Settings → Admin keys.
Click Create new key. Name it CloudMonitor. The key starts with sk-admin- and is shown only once — copy it now.
Step 2 — Add the key in CloudMonitor
Section titled “Step 2 — Add the key in CloudMonitor”In the CloudMonitor Admin App, go to Settings → AI providers → OpenAI → Add connector.
Paste the Admin key. Click Verify.
Step 3 — Confirm the 14-day backfill
Section titled “Step 3 — Confirm the 14-day backfill”CloudMonitor pulls the most recent 14 days as proof the connector works. You should see:
- Daily input, output, and cached input token counts
- Token use broken down by model, project, user, and API key
- Dollar cost from the
/v1/organization/costsendpoint, in USD - Batch vs standard tier split
If the totals match what you see in platform.openai.com → Usage, click Save.
Step 4 — Polling cadence
Section titled “Step 4 — Polling cadence”CloudMonitor polls hourly for the current day and backfills T-2 daily to pick up settled cost entries. Reports refresh as new data lands.