{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/shapesoda-com/json-schema/shapesoda-com-plans-schema.json",
  "title": "Plans",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/shapesoda-com-openapi.json#/components/schemas/Plans",
  "type": "object",
  "required": [
    "subscriptions",
    "api_plans",
    "payments_enabled"
  ],
  "properties": {
    "subscriptions": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "Website subscriptions (unlimited in the editor, no API)."
    },
    "api_plans": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ApiPlan"
      }
    },
    "credits_never_expire": {
      "type": "boolean"
    },
    "redownload_free_days": {
      "type": "integer",
      "description": "Days a paid image can be processed again with other options for free (website and API)."
    },
    "result_retention_hours": {
      "type": "integer",
      "description": "How long stored API and MCP results are kept."
    },
    "payments_enabled": {
      "type": "boolean"
    },
    "billing": {
      "type": [
        "object",
        "null"
      ]
    },
    "enterprise_contact": {
      "type": "string"
    },
    "signup_credits": {
      "type": "integer"
    }
  },
  "$defs": {
    "ApiPlan": {
      "type": "object",
      "required": [
        "id",
        "credits",
        "price",
        "per_image"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "credits": {
          "type": "integer",
          "description": "Credits per month."
        },
        "price": {
          "type": "string"
        },
        "per_image": {
          "type": "string"
        },
        "popular": {
          "type": "boolean"
        }
      }
    }
  }
}