{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/varoriya-com/json-schema/varoriya-com-model-pricing-schema.json",
  "title": "ModelPricing",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/varoriya-com-openapi.yml#/components/schemas/ModelPricing",
  "type": "object",
  "properties": {
    "model": {
      "type": "string"
    },
    "unit": {
      "type": "string",
      "enum": [
        "image",
        "second",
        "char",
        "megapixel"
      ]
    },
    "rates": {
      "type": "object",
      "additionalProperties": {
        "type": "integer"
      }
    },
    "surcharges": {
      "type": "object",
      "additionalProperties": {
        "type": "integer"
      }
    },
    "min": {
      "type": [
        "integer",
        "null"
      ]
    },
    "max": {
      "type": [
        "integer",
        "null"
      ]
    },
    "qualities": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "default_quality": {
      "type": [
        "string",
        "null"
      ]
    },
    "aspect_ratios": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}