{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/keepbal-com/json-schema/keepbal-com-usage-schema.json",
  "title": "Usage",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/keepbal-com-openapi.yaml#/components/schemas/Usage",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "usage"
    },
    "start_time": {
      "type": "integer"
    },
    "end_time": {
      "type": "integer"
    },
    "bucket_width": {
      "type": "string",
      "const": "1d"
    },
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string"
          },
          "requests": {
            "type": "integer"
          },
          "failed_requests": {
            "type": "integer"
          },
          "input_tokens": {
            "type": "integer"
          },
          "output_tokens": {
            "type": "integer"
          },
          "cost_micros_usd": {
            "type": "integer"
          }
        }
      }
    },
    "totals": {
      "type": "object"
    }
  }
}