{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/viewmax-studio/json-schema/viewmax-studio-video-model-schema.json",
  "title": "VideoModel",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/viewmax-studio-catalog-api-openapi.yml#/components/schemas/VideoModel",
  "type": "object",
  "required": [
    "id",
    "label",
    "vendor",
    "description",
    "modes",
    "credits_label",
    "coming_soon"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Send as `model`."
    },
    "label": {
      "type": "string"
    },
    "vendor": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "modes": {
      "type": "object",
      "description": "Keyed by mode id; only supported modes are present.",
      "additionalProperties": {
        "$ref": "#/$defs/VideoModelMode"
      }
    },
    "credits_label": {
      "type": "string"
    },
    "coming_soon": {
      "type": "boolean"
    },
    "max_prompt_length": {
      "type": "integer",
      "description": "Longest accepted prompt in characters, after trimming. Absent when the model sets none."
    }
  },
  "$defs": {
    "VideoModelMode": {
      "type": "object",
      "required": [
        "durations",
        "resolutions",
        "aspect_ratios",
        "audio_toggle",
        "defaults"
      ],
      "properties": {
        "durations": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Accepted `options.duration` values. Empty: omit it."
        },
        "resolutions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Accepted `options.resolution` values. Empty: omit it."
        },
        "aspect_ratios": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Accepted `options.aspect_ratio` values (exact case). Empty: omit it."
        },
        "audio_toggle": {
          "type": "boolean",
          "description": "`options.audio: true` is accepted only when this is true."
        },
        "defaults": {
          "type": "object",
          "description": "Values filled in, priced and submitted when the request omits them. Only keys the mode supports are present.",
          "properties": {
            "duration": {
              "type": "string"
            },
            "resolution": {
              "type": "string"
            },
            "aspect_ratio": {
              "type": "string"
            }
          }
        },
        "credits": {
          "type": "object",
          "description": "Fixed prices: `credits[resolution][duration]`, `credits[resolution].per_generation`, `credits[duration][\"with-audio\"|\"without-audio\"]`, or `credits[quality][duration]`.",
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          }
        },
        "credits_per_second": {
          "type": "object",
          "additionalProperties": {
            "type": "number"
          },
          "description": "Per-second price by resolution: `ceil(rate × duration seconds)`."
        },
        "credits_per_second_with_video_input": {
          "type": "object",
          "additionalProperties": {
            "type": "number"
          },
          "description": "Per-second price by resolution when `video_urls` is sent. Seedance 2.x bills output plus source seconds (source capped at 15 s)."
        },
        "pricing_note": {
          "type": "string"
        }
      }
    }
  }
}