Connect OpenAI
Create an OpenAI admin key for MarginMeter to import daily API cost by project and model, and understand how OpenAI costs appear in your gross margin.
Create an admin key
- Open platform.openai.com → Settings → Organization → Admin keys (organization owners only).
- Create a key named
MarginMeter. - Paste it into Connections → OpenAI.
What is imported
Daily costs by project and model from OpenAI's organization cost report, in USD, converted to your reporting currency. Costs are classified as AI inference COGS by default; use classification rules to move internal projects to OpEx.
Troubleshooting
- Invalid key — make sure it is an admin key (it starts with
sk-admin-), not a project API key. - Missing recent day — OpenAI finalizes the previous day's costs with a short delay; MarginMeter re-reads recent days on every sync.