Connect OpenAI
oncost tracks your OpenAI API usage at the model and token level. Setup takes about 2 minutes.Prerequisites
- An OpenAI account with API access
- An API key
Setup
- Go to Settings > Connections > New Connection > OpenAI
- Paste your OpenAI API key
- Click Test Connection to verify access
- Click Save
What oncost collects
- Daily cost by model (GPT-4o, GPT-4, GPT-3.5, etc.)
- Token counts (input and output) per model
- Cost-per-token trends over time
Tips
- Separate API keys per project to get per-project cost breakdown
- oncost shows cost-per-token trends in the AI Cost view under Spend