{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/markifact-com/json-schema/markifact-com-credit-balance-schema.json",
  "title": "CreditBalance",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/markifact-com-openapi.json#/components/schemas/CreditBalance",
  "type": "object",
  "properties": {
    "credits_limit": {
      "type": "integer",
      "description": "Credits included in the plan for the current period."
    },
    "credits_used": {
      "type": "integer",
      "description": "Credits consumed so far this period."
    },
    "credits_remaining": {
      "type": "integer",
      "description": "credits_limit minus credits_used. Can be negative: a run that overshoots is not rolled back."
    },
    "billing_period_end": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int64",
      "description": "When the period ends and usage resets, in Unix seconds."
    },
    "tier": {
      "type": "string",
      "description": "Current plan."
    }
  },
  "required": [
    "credits_limit",
    "credits_used",
    "credits_remaining",
    "tier"
  ]
}