Reading your usage and invoices
Where to see your FluxRouter usage and spend in the dashboard, how to read the X-Flux-Cost-Usd header for per-request cost, and where to find invoices.
FluxRouter gives you per-request cost on every response, running usage and spend in the dashboard, and invoices for your plan. Here is where to find each.
Where do I see my usage and spend?
Open the dashboard and go to the usage page at /home/usage. It shows your routing usage and spend for the current period, including how much of your monthly allowance you have used and your remaining headroom against your spend ceiling.
For plan, payment method, and billing history, go to the billing page at /home/billing.
How do I see what a single request cost?
Every non-streaming response includes an X-Flux-Cost-Usd header with the exact cost of that request in USD. Read it straight off the response:
curl -i https://api.fluxrouter.ai/v1/chat/completions \
-H "Authorization: Bearer $FLUX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-auto",
"messages": [{ "role": "user", "content": "ping" }]
}'
# Response headers include:
# X-Flux-Model: ...
# X-Flux-Cost-Usd: 0.000412
Alongside it you also get X-Flux-Model (the model that actually served the request) and X-Flux-Request-Id (an identifier to quote when you contact support). See the full list in Routing & pricing.
On streaming responses the final cost is only known after the headers have flushed, so it is reported on your usage and bill rather than in the header.
Where are my invoices?
Invoices and payment history are on the billing page at /home/billing. FluxRouter billing runs through Stripe, so you can view and download invoices and update your payment method there.
- Free is never charged, so there is nothing to invoice. A card is on file for anti-abuse only. See The Free plan.
- Pay As You Go bills your metered usage each period with no monthly fee.
- Builder and Scale bill the monthly (or annual) plan fee, and any usage above the included credit is billed at flat lane rates. See Plans and what's included.
How is the cost on my invoice calculated?
You are metered by tokens at the rate of the lane that served each request, summed over the period. Input and output tokens are both counted at their respective rates. See How pay-as-you-go billing works for the full breakdown.