Monitoring Usage
Track coding plan usage and inference credit consumption.
On this page
Overview
Track your usage through the API and dashboard. Monitor coding plan budget consumption, inference credit spending, and per-model breakdowns.
Coding plan quota
# Check remaining budget and rate limits
curl https://code.in2peta.com/quota \
-H "Authorization: Bearer sk_..."Inference usage
# Usage summary
curl https://code.in2peta.com/v1/billing/usage \
-H "Authorization: Bearer sk_..."
# Per-model breakdown
curl https://code.in2peta.com/v1/billing/usage/by-model \
-H "Authorization: Bearer sk_..."
# History
curl https://code.in2peta.com/v1/billing/usage/history \
-H "Authorization: Bearer sk_..."Invoices
# List payments
curl https://code.in2peta.com/v1/billing/payments \
-H "Authorization: Bearer sk_..."
# Download a specific invoice
curl https://code.in2peta.com/v1/billing/payments/PAYMENT_ID/invoice \
-H "Authorization: Bearer sk_..."