{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/logo-dev/json-schema/logo-dev-v2-account-schema.json",
  "title": "V2Account",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/logo-dev-openapi.json#/components/schemas/V2Account",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "account"
    },
    "plan": {
      "type": "string",
      "enum": [
        "community",
        "startup",
        "scale",
        "pro",
        "enterprise",
        "custom"
      ],
      "description": "Your plan. `community` is the free plan."
    },
    "credits": {
      "type": "object",
      "properties": {
        "remaining": {
          "type": "integer",
          "description": "Your total usable API credit balance: included plus purchased credits."
        },
        "monthly_allowance": {
          "type": "integer",
          "description": "API credits your plan includes each month."
        },
        "purchased": {
          "type": "integer",
          "description": "Purchased API credits you have not spent."
        },
        "renews_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "When your included credits next renew. `null` when your account is not yet set up for billing."
        },
        "can_buy_credits": {
          "type": "boolean",
          "description": "`true` when your plan can buy more API credits."
        }
      },
      "required": [
        "remaining",
        "monthly_allowance",
        "purchased",
        "renews_at",
        "can_buy_credits"
      ]
    }
  },
  "required": [
    "object",
    "plan",
    "credits"
  ]
}