GET/api/orgs/{org_id}/provider/usage/by-model

Get daily usage per model

Per-day, per-model rows across all calling orgs. Only settled charged money (platform-funded traffic) counts toward cost_usd, in US dollars. Same 429 and 503 behavior as the daily usage read.

認証: AuthorizationヘッダーにBearer形式のAPIキー

パスパラメータ

  • org_idstring必須

    Your organization id (uuid). GET /api/whoami returns it.

クエリパラメータ

  • daysinteger

    Window length in days, counted back from now.

    デフォルト: 30

レスポンス

  • 200

    One row per (day, model).

    レスポンス
    • daysinteger必須
    • rowsarray<object>必須
      rows
      • daystring必須
      • aliasstring必須

        Model slug.

      • request_countinteger必須
      • input_tokensinteger必須
      • output_tokensinteger必須
      • cost_usdnumber必須

        Settled charged money in US dollars.

  • 401

    Missing, unknown or revoked API key.

    レスポンス
    • errorstring必須

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 404

    The resource does not exist or belongs to another organization.

    レスポンス
    • errorstring必須

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 422

    The body or query failed validation.

    レスポンス
    • detailarray<object>必須
      detail
      • typestring
      • locarray<string | integer>
      • msgstring
  • 429

    The usage analytics store is busy; retry after the Retry-After seconds.

    レスポンス
    • errorstring必須

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

  • 503

    Usage analytics are unavailable on this deployment or temporarily failing.

    レスポンス
    • errorstring必須

      Human-readable message.

    • codestring

      Stable machine reason, when the route defines one (for example pro_required).

    • actionstring

      Stable remediation action, when the route defines one.

    • detailsobject

      Customer-safe string facts the caller needs to act (for example a suggested identifier).

リクエスト

curl https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/provider/usage/by-model?days=30 \
  -H "Authorization: Bearer YOUR_API_KEY"

レスポンス

{
  "days": 30,
  "rows": [
    {
      "day": "2026-11-18",
      "alias": "llama-4.1-70b-instruct",
      "request_count": 31877,
      "input_tokens": 120511330,
      "output_tokens": 14002871,
      "cost_usd": 54.7811
    }
  ]
}

https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/provider/usage/by-model?days=30