1. Get Your API Key
Sign up at costrace.dev and grab your API key from the dashboard.2. Install the SDK
3. Initialize Costrace
Add one line at the top of your application:4. Use Your LLM SDKs Normally
That’s it. All API calls are now tracked automatically.5. View Your Traces
Head to costrace.dev/dashboard/logs to see:- Cost per call in USD
- Token counts (input/output)
- Latency in milliseconds
- Success/error status
- Geographic distribution