Cost Tracking

Monitor per-request costs, token usage, and billing.

Per-request costs

AllToken tracks costs on every request. For streaming responses, cost information is appended as an SSE comment after the [DONE] marker:

SSE response
1data: [DONE]
2: {"cost":"0.0012","input_price":"0.0003","output_price":"0.0009","prompt_tokens":15,"completion_tokens":42}

For non-streaming requests, costs are available in the Usage API.

Usage dashboard

View aggregated usage statistics in Settings → Usage:

  • Total spend by day/week/month
  • Token consumption (input vs output)
  • Breakdown by model and API key
  • Cost trends over time

Billing and credits

AllToken runs on prepaid credits. Add credits in Settings → Billing via Stripe. Credits are deducted per request.

Check your balance in real time via the Billing API or the dashboard header.