{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/varoriya-com/json-schema/varoriya-com-video-request-schema.json",
  "title": "VideoRequest",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/varoriya-com-openapi.yml#/components/schemas/VideoRequest",
  "type": "object",
  "required": [
    "model",
    "prompt"
  ],
  "properties": {
    "model": {
      "type": "string",
      "enum": [
        "seedance2",
        "seedance25",
        "wanoptimize",
        "wanoptimizet2v",
        "grokvideo",
        "flux3",
        "h3"
      ],
      "description": "Video model to run:\n- `seedance2` — ByteDance Dreamina Seedance 2.0. Cinematic video with synced audio (V2A). Three modes, auto-detected from inputs: **text-to-video** (prompt only), **reference** (up to 8 images + 3 videos + 3 audios — mention them in the prompt as `[Image 1]`, `[Video 1]`, `[Audio 1]`), and **first & last frame** (`options.first_frame` / `options.last_frame`). `options.tier` fast|standard; up to 720p (1080p on standard); `options.duration` 4–15s. (Audio/SFX only — **no reliable Thai speech**; use `grokvideo` v1.5 or `seedaudio` for Thai voice.)\n- `seedance25` — ByteDance Dreamina Seedance 2.5. NEW model — cinematic video with synced audio. 4–30s, 480p/720p/1080p, up to 30 images + 10 videos + 10 audios. Modes: text-to-video, reference, first-last-frame, and extend (via `options.omni_reference_task_type`). No tier — always highest quality. (Audio/SFX only — no reliable Thai speech.)\n- `wanoptimize` — WAN 2.2 **image-to-video** (open-source, optimized: faster, smaller, cheaper). REQUIRES a starting image (`images[0]`); animates it into a clip. Open-source model with **lighter prompt filtering** — good for prompts other models refuse.\n- `wanoptimizet2v` — WAN 2.2 **text-to-video** (open-source, optimized: fast/cheap). Generates a clip straight from a prompt (no image needed). Open-source model with **lighter prompt filtering**.\n- `grokvideo` — xAI Grok Imagine. Text-to-video, or image-to-video when `images[0]` is given, with native audio. `options.version` `1.0` (default, supports text-to-video) or `1.5` (requires an input image; its native audio can **speak Thai** — v1.0 audio does not); `options.duration` 1–15s; 480p/720p.\n- `flux3` — Black Forest Labs FLUX 3. Multimodal video with synced audio. THREE modes via inputs: **text-to-video** (prompt only, no images/videos), **keyframe I2V** (`images[]` 1-10 ordered — first image = opening frame pixel-for-pixel, last = closing frame, 3-10 = storyboard evenly spaced, needs an explicit `duration`), **continue** (`videos[0]` = start-video URL, mp4 ≤50MB ≤15s, extends from its final frames; cannot combine with images). `options.duration` 5-20s (omit = auto; 3+ keyframes need a value); `options.draft` (bool, fast 720p preview); `options.generate_audio` (bool, default true). 720p/1080p.\n- `h3` — MiniMax H3. Multimodal video with synced audio. Three modes via inputs: **text-to-video** (prompt only), **reference** (up to 9 images + 3 videos + 3 audios), **first & last frame** (`options.first_frame` / `options.last_frame`). `options.duration` 4–15s (integer); resolution `768P` / `2K`; `aspect_ratio` `auto` (=adaptive), `21:9`, `16:9`, `4:3`, `1:1`, `3:4`, `9:16`.\n"
    },
    "prompt": {
      "type": "string",
      "description": "Text description of the video / motion."
    },
    "aspect_ratio": {
      "type": "string",
      "description": "Aspect ratio — seedance2: `21:9`, `16:9`, `4:3`, `1:1`, `3:4`,\n`9:16`, `adaptive`; WAN: `16:9`, `9:16`; flux3: `auto`, `21:9`,\n`2:1`, `16:9`, `4:3`, `1:1`, `3:4`, `9:16` (text-to-video only;\nignored when images/videos are present — model derives it from media).\n"
    },
    "quality": {
      "type": "string",
      "description": "Resolution — seedance2 `480p|720p` (`1080p` only when\n`options.tier` is `standard`); grokvideo `480p|720p`; WAN models\n`480p|720p`; flux3 `720p|1080p`. Default `480p` (cheapest) for all video models.\n"
    },
    "images": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      },
      "description": "`wanoptimize`: the starting image (image-to-video).\n`seedance2` reference mode: up to 8 reference image URLs.\n`flux3` keyframe mode: 1-10 ordered image URLs — first = opening\nframe (pixel-for-pixel), last = closing frame. 3+ images = storyboard\n(evenly spaced; needs an explicit `duration`). Cannot combine with\n`videos` (start_video).\n"
    },
    "videos": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      },
      "description": "seedance2 reference mode: up to 3 reference video URLs. flux3 continue mode: 1 start-video URL (mp4, ≤50MB, ≤15s) to continue from — cannot combine with images."
    },
    "audios": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      },
      "description": "seedance2 reference mode: up to 3 reference audio URLs\n(must be paired with at least one image or video).\n"
    },
    "options": {
      "type": "object",
      "additionalProperties": true,
      "description": "seedance2 flags:\n`tier` (`fast`|`standard`, default fast),\n`duration` (seconds 4–15),\n`generate_audio` (bool, default true),\n`first_frame` / `last_frame` (image URLs for first & last frame mode),\n`ref_video_dur` (total seconds of attached reference video — declare\nfor accurate billing when `videos` are used).\n\nseedance25 flags:\n`duration` (seconds 4–30),\n`generate_audio` (bool, default true),\n`first_frame` / `last_frame` (image URLs for first & last frame mode),\n`ref_video_dur` (total seconds of attached reference video — declare\nfor accurate billing when `videos` are used),\n`omni_reference_task_type` (`auto`|`reference`|`extend`, default `auto` — \nuse `extend` to continue/extend from a reference video; `edit` is NOT\nexposed in this API).\n\ngrokvideo flags: `version` (`1.0` default | `1.5` — v1.5 requires an input image),\n`duration` (seconds 1–15).\n\nflux3 flags: `duration` (5-20s, omit = auto; 3+ keyframes need a value),\n`draft` (bool, fast 720p preview),\n`generate_audio` (bool, default true).\n"
    }
  }
}