{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vulk-dev/json-schema/vulk-dev-usage-schema.json",
  "title": "Usage",
  "description": "`plan`, `billingInterval`, `monthlyCredits` and `renewsAt` are null without a subscription.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vulk-dev-openapi.json#/components/schemas/Usage",
  "type": "object",
  "properties": {
    "plan": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "trialing",
        "past_due",
        "none"
      ]
    },
    "billingInterval": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "month",
        "year"
      ]
    },
    "monthlyCredits": {
      "type": [
        "number",
        "null"
      ]
    },
    "renewsAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "creditBalance": {
      "type": "number"
    },
    "creditsUsedLast30Days": {
      "type": "number"
    },
    "generationsLast30Days": {
      "type": "integer"
    },
    "failedGenerationsLast30Days": {
      "type": "integer"
    },
    "modelsUsedLast30Days": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "status",
    "creditBalance",
    "creditsUsedLast30Days",
    "generationsLast30Days",
    "failedGenerationsLast30Days",
    "modelsUsedLast30Days"
  ]
}