LiyaEngine Docs
Platform

Cost Explorer

Spend by model, by domain, by intent — plus a projected end-of-month bill. No black-box invoices.

Dashboard

Cost tracking runs automatically inside the engine on every call. Every request logs its real serving model and real cost — not an estimate, not a flat rate per call — sliced three ways so you can find the answer without exporting a spreadsheet.

Capabilities

Spend by Model

What you're paying per provider and model, broken out down to the sub-cent.

Spend by Domain

Every domain logs its own usage — compare one domain's cost against another.

Spend by Intent

Drill into the specific intent driving spend, not just 'the model'.

Projected End-of-Month Bill

A live projection including estimated overage, updated with every call.

API reference

GET /dashboard/costs/breakdown?days=30&domain=your-domain
Authorization: Bearer <jwt>

Response:

{
  "success": true,
  "data": {
    "period": {
      "days": 30,
      "totalCostUsd": "696.70",
      "projectedCostUsd": "1180.40",
      "trend": [{ "date": "2026-08-01", "costUsd": "22.40", "requests": 340 }],
      "byDomain": [{ "domain": "support", "requests": 1200, "tokens": 480000, "costUsd": "284.10", "trend": [...] }],
      "byModel": [{ "model": "claude-sonnet-5", "requests": 900, "tokens": 360000, "costUsd": "412.20", "trend": [...] }],
      "byIntent": [{ "domain": "support", "intent": "resolve_ticket", "requests": 600, "tokens": 240000, "costUsd": "284.10" }]
    }
  }
}

domain is optional — omit it to see spend across every domain in your tenant. days accepts 7, 15, 30, or 60.

On this page