{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pzero-studio/json-schema/pzero-studio-model-schema.json",
  "title": "Model",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pzero-studio-openapi.json#/components/schemas/Model",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Venice model slug; use as the model field in chat completions"
    },
    "object": {
      "type": "string"
    },
    "display_name": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "live",
        "coming_soon"
      ],
      "description": "Only live rows are callable and include pricing"
    },
    "modality": {
      "type": "string"
    },
    "tier": {
      "type": "string"
    },
    "default_max_output_tokens": {
      "type": [
        "integer",
        "null"
      ]
    },
    "max_output_tokens": {
      "type": [
        "integer",
        "null"
      ]
    },
    "context_tokens": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Available context window in tokens from Venice model_spec.availableContextTokens"
    },
    "capabilities": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "reasoning",
          "vision",
          "audio_input",
          "video_input",
          "image_generation",
          "video_generation",
          "code",
          "function_calling"
        ]
      }
    },
    "is_beta": {
      "type": "boolean"
    },
    "is_deprecated": {
      "type": "boolean"
    },
    "supports_vision": {
      "type": "boolean"
    },
    "supports_reasoning": {
      "type": "boolean"
    },
    "optimized_for_code": {
      "type": "boolean"
    },
    "pricing": {
      "$ref": "#/$defs/ModelPricing"
    },
    "constraints": {
      "type": "object",
      "description": "Venice model_spec.constraints on live image and video rows. Keys are present only when the model advertises them.",
      "properties": {
        "durations": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "resolutions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "aspect_ratios": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "audio": {
          "type": "boolean"
        },
        "model_type": {
          "type": "string"
        }
      }
    },
    "first_seen_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "object",
    "display_name",
    "status",
    "modality"
  ],
  "$defs": {
    "ModelPricing": {
      "type": "object",
      "description": "Micro-USDC per million tokens",
      "properties": {
        "input_per_million": {
          "type": "integer",
          "format": "int64"
        },
        "output_per_million": {
          "type": "integer",
          "format": "int64"
        },
        "cache_per_million": {
          "type": "integer",
          "format": "int64"
        }
      }
    }
  }
}