Enterprise BYOK FinOps, Chargeback & Metering
Tag every gateway request with x-zrouter-cost-center, x-zrouter-customer-id, and x-zrouter-env to attribute AI spend down to the micro-dollar.
curl -s http://127.0.0.1:20128/v1/chat/completions \
-H "Authorization: Bearer $ZROUTER_KEY" \
-H "x-zrouter-cost-center: eng-platform" \
-H "x-zrouter-customer-id: cus_acme_42" \
-d '{"model":"auto/balanced","messages":[{"role":"user","content":"Summarize deploy logs"}]}'
- 4-Pillar ROI Attribution:
GET /api/finops/roi - Monthly Invoices (HTML/CSV/JSON):
GET /api/billing/invoices/export?format=html - Stripe & Lago Meter Events:
GET /api/billing/meter-events?format=stripe