{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cheapestinference-com/json-schema/cheapestinference-com-get-api-usage-keyid-response-schema.json",
  "title": "GetApiUsageKeyidResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/cheapestinference-com-api-openapi-generated.yml#/components/schemas/GetApiUsageKeyidResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Key UUID"
    },
    "name": {
      "type": "string",
      "description": "Key label"
    },
    "type": {
      "type": "string",
      "description": "Key type (\"subscription\")"
    },
    "plan": {
      "type": "string",
      "description": "Pool slug (e.g. \"frontier\")"
    },
    "isActive": {
      "type": "boolean",
      "description": "Whether the key is currently active"
    },
    "usage": {
      "type": "object",
      "description": "Request and token counts across 4 periods: last1h, last24h, last7d, last30d"
    },
    "subscription": {
      "type": "object",
      "description": "Status and expiry for subscription keys"
    },
    "createdAt": {
      "type": "string",
      "description": "Key creation timestamp"
    }
  }
}