{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wandura-ai/json-schema/wandura-ai-tool-job-request-schema.json",
  "title": "ToolJobRequest",
  "description": "Rolling out (Jobs API tools): only while Wandura has them on; until then their ids are unknown models. The body for a Jobs API tool (GET /v2/models: type tool): no style; its fields at the top level, and only the ones its model takes (GET /v2/models/{model_id} -> inputs). One video in (video_url, required but for wandura-photo-video-v1, which takes image_urls, and wandura-transition-v1, which takes two in video_urls), at a public https URL that answers Range requests; its length is read from its header when the job is accepted (a clip outside the tool's seconds is 422 on video_url). Priced per run (wandura-video-edit-v1, wandura-photo-video-v1, wandura-video-find-v1, wandura-transition-v1, wandura-voiceover-v1, wandura-voice-change-v1, wandura-action-change-v1), per second of the input (by resolution for wandura-object-remove-v1 and wandura-video-ai-edit-v1; wandura-trailer-v1: per second of the video it reads), or per second added (wandura-video-extend-v1); held then, charged when the job succeeds, free when it fails. wandura-transcribe-v1 and wandura-video-find-v1 make no file: their answer is the job's result.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wandura-ai-openapi.json#/components/schemas/ToolJobRequest",
  "type": "object",
  "required": [
    "model"
  ],
  "additionalProperties": false,
  "properties": {
    "model": {
      "type": "string",
      "enum": [
        "wandura-video-edit-v1",
        "wandura-transcribe-v1",
        "wandura-object-remove-v1",
        "wandura-video-ai-edit-v1",
        "wandura-background-remove-v1",
        "wandura-sound-effects-v1",
        "wandura-video-extend-v1",
        "wandura-motion-transfer-v1",
        "wandura-lip-sync-v1",
        "wandura-photo-video-v1",
        "wandura-video-find-v1",
        "wandura-transition-v1",
        "wandura-voiceover-v1",
        "wandura-region-blur-v1",
        "wandura-voice-change-v1",
        "wandura-video-dub-v1",
        "wandura-slow-motion-v1",
        "wandura-action-change-v1",
        "wandura-skin-smooth-v1",
        "wandura-trailer-v1"
      ],
      "description": "wandura-video-edit-v1: plain edits of one video (up to 120 s), 1-8 steps. wandura-transcribe-v1: what is said, with word times, optionally translated (up to 60 s). wandura-object-remove-v1: one person or thing taken out of a 2-10 s clip. wandura-video-ai-edit-v1: a change to what is in a 2-15 s clip (it keeps the clip sound). wandura-background-remove-v1: the background taken out of a 1-6 s clip (a WebM with a transparent background, and an MP4 with the transparency stacked in its frame). wandura-sound-effects-v1: sound made for what happens in a 1-10 s clip, in place of its own. wandura-video-extend-v1: a 2-10 s clip continued by 6 s. wandura-motion-transfer-v1: the person of a photo put in a 4-15 s video in place of the one who moves. wandura-lip-sync-v1: the person of a 1-7 s clip says a line. wandura-photo-video-v1: a video from 2-20 photos. wandura-video-find-v1: the moments of a video (up to 60 s) that answer a question. wandura-transition-v1: two 1-30 s clips joined by 5 s a video model makes from one to the other. wandura-voiceover-v1: a narrator's line over a video (up to 60 s), its own sound lowered under it. wandura-region-blur-v1: what target names blurred or pixelated where it is in a 1-30 s clip. wandura-voice-change-v1: a 1-60 s video's voice changed to a preset voice, its music kept. wandura-video-dub-v1: a 2-60 s video dubbed into another language in its speakers' own voices (voice_consent: true required). wandura-slow-motion-v1: a 1-10 s clip twice as slow and smooth. wandura-action-change-v1: a 1-30 s clip kept up to at, then a new action made from that frame. wandura-skin-smooth-v1: the skin of a face smoothed in a 1-30 s clip, eyes and lips kept sharp. wandura-trailer-v1: a 10-60 s trailer cut from a video of 20 s to 5 min, on the beat of library music."
    },
    "video_url": {
      "type": "string",
      "format": "uri",
      "pattern": "^https://",
      "description": "The video: MP4 or MOV (wandura-video-edit-v1 takes other formats too, read by Wandura when it runs). wandura-motion-transfer-v1: the moves to copy. wandura-lip-sync-v1: the person who speaks. wandura-voiceover-v1: the video the narrator speaks over. wandura-video-dub-v1: the video whose speech is dubbed. Not for wandura-photo-video-v1 or wandura-transition-v1."
    },
    "video_urls": {
      "type": "array",
      "minItems": 2,
      "maxItems": 2,
      "items": {
        "type": "string",
        "format": "uri",
        "pattern": "^https://"
      },
      "description": "wandura-transition-v1 only (required): the two clips, in order (the first, then the next), each an MP4 or MOV of 1-30 s. The video made has the first clip's shape."
    },
    "at": {
      "type": "number",
      "minimum": 0,
      "maximum": 60,
      "description": "wandura-voiceover-v1, default 0: where the voice starts, in seconds of the video. wandura-action-change-v1 (0-30): where the new action starts, in seconds of the clip; left out = its last frame."
    },
    "image_urls": {
      "type": "array",
      "minItems": 2,
      "maxItems": 20,
      "items": {
        "type": "string",
        "format": "uri",
        "pattern": "^https://"
      },
      "description": "wandura-photo-video-v1 only (required): 2-20 photos (JPEG, PNG or WEBP), in the order they show."
    },
    "ratio": {
      "type": "string",
      "enum": [
        "9:16",
        "16:9",
        "1:1",
        "4:5"
      ],
      "description": "wandura-photo-video-v1 only, default 9:16: the video's shape; each photo fills it, cropped."
    },
    "seconds_per_photo": {
      "type": "number",
      "minimum": 2,
      "maximum": 6,
      "description": "wandura-photo-video-v1 only, default 3: how long each photo shows."
    },
    "transition": {
      "type": "string",
      "enum": [
        "fade",
        "cut"
      ],
      "description": "wandura-photo-video-v1 only, default fade."
    },
    "motion": {
      "type": "string",
      "enum": [
        "zoom",
        "still"
      ],
      "description": "wandura-photo-video-v1 only, default zoom: a slow push-in on each photo."
    },
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000,
      "description": "wandura-lip-sync-v1 (required, up to 200 characters): the line the person says, in language; it must fit in the clip (about 15 characters a second). wandura-voiceover-v1 (required, up to 1000): what the narrator says; it must fit in what is left of the video after at."
    },
    "voice": {
      "type": "string",
      "description": "wandura-lip-sync-v1 and wandura-voiceover-v1: f_energetic (default), f_calm, m_deep or m_friendly (f_ = a woman's voice, m_ = a man's). wandura-voice-change-v1: one of its preset voices, Rachel by default (GET /v2/models/wandura-voice-change-v1 lists them)."
    },
    "language": {
      "type": "string",
      "enum": [
        "en",
        "vi",
        "es",
        "ja",
        "ko",
        "zh",
        "fr",
        "de",
        "pt",
        "it",
        "ar",
        "hi",
        "ru",
        "tr",
        "nl",
        "pl",
        "ms",
        "id"
      ],
      "description": "wandura-lip-sync-v1 and wandura-voiceover-v1, default en: the language of text (en, vi, es, ja, ko, zh, fr, de). wandura-video-dub-v1 (required): the language to dub into (en, es, pt, fr, de, it, ar, hi, ja, ko, zh, ru, tr, nl, pl, ms, id, vi)."
    },
    "voice_consent": {
      "type": "boolean",
      "const": true,
      "description": "wandura-video-dub-v1 only (required, true): the people speaking in the video agreed to have their voices copied for the dub."
    },
    "sound": {
      "type": "string",
      "enum": [
        "slowed",
        "none",
        "music",
        "mix",
        "original"
      ],
      "description": "wandura-slow-motion-v1, default slowed: the clip's sound slowed as much (its pitch kept), or none. wandura-trailer-v1, default mix: music, mix, original (the music over the video's own sound lowered, the music alone, or the video's own sound only)."
    },
    "point": {
      "type": "object",
      "required": [
        "x",
        "y"
      ],
      "additionalProperties": false,
      "properties": {
        "x": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "y": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "at": {
          "type": "number",
          "minimum": 0
        }
      },
      "description": "wandura-region-blur-v1 and wandura-skin-smooth-v1, instead of target: a tap on the thing, x and y where it is on the frame as shares of its width and height from the top left (0 to 1), at the second of the clip the frame is at (default its first frame). That one thing is followed over the whole clip."
    },
    "strength": {
      "type": "string",
      "enum": [
        "light",
        "medium",
        "strong"
      ],
      "description": "wandura-skin-smooth-v1 only, default medium: light (natural), medium or strong (retouched)."
    },
    "seconds": {
      "type": "integer",
      "minimum": 10,
      "maximum": 60,
      "description": "wandura-trailer-v1 only, default 30: how long the trailer is, at most half the video."
    },
    "focus": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500,
      "description": "wandura-trailer-v1 only, optional: what the trailer is about, in words."
    },
    "music": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "mood": {
          "type": "string",
          "enum": [
            "tense",
            "suspense",
            "sad",
            "romantic",
            "upbeat",
            "epic",
            "calm",
            "action",
            "dark"
          ]
        },
        "query": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        }
      },
      "description": "wandura-trailer-v1 only, optional: a track of Wandura's CC0 music library by mood and/or words; left out, an epic, cinematic track."
    },
    "question": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000,
      "description": "wandura-video-find-v1 only (required): what to find in the video, in words. The moments that answer it are the job's result."
    },
    "steps": {
      "type": "array",
      "minItems": 1,
      "maxItems": 8,
      "items": {
        "type": "object",
        "required": [
          "op"
        ],
        "properties": {
          "op": {
            "type": "string",
            "enum": [
              "trim",
              "cut",
              "speed",
              "reverse",
              "boomerang",
              "loop",
              "reshape",
              "rotate",
              "flip",
              "stabilize",
              "mute",
              "volume",
              "clean_voice",
              "sound",
              "join",
              "color",
              "look",
              "text",
              "subtitles",
              "gif",
              "still"
            ]
          }
        },
        "additionalProperties": true
      },
      "description": "wandura-video-edit-v1 only: the edits, in order, each on what the step before made. Each step's own fields: GET /v2/models/wandura-video-edit-v1/schema. A sound step may send music {mood, query} instead of url: a track of Wandura's CC0 music library, named in the job's notes (music_track). A sound step's mode is replace (default: the video's own sound is dropped) or mix (the track over the video's own sound, no automatic ducking): a video with speech takes mix with volume about 0.3-0.4. A last step gif or still makes an image (image/gif, image/jpeg) instead of a video."
    },
    "spoken_language": {
      "type": "string",
      "pattern": "^[a-z]{2}$",
      "description": "wandura-transcribe-v1 only: the language spoken (en, vi…); left out = heard."
    },
    "translate_to": {
      "type": "string",
      "description": "wandura-transcribe-v1 only: translate the cues to this language (vi, en, es, zh-CN…)."
    },
    "target": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500,
      "description": "wandura-object-remove-v1 (required): the person or thing to take out, in a few words. wandura-region-blur-v1 (required, up to 300): what to blur (faces, the licence plate)."
    },
    "effect": {
      "type": "string",
      "enum": [
        "blur",
        "pixelate"
      ],
      "description": "wandura-region-blur-v1 only, default blur."
    },
    "change": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "wandura-video-ai-edit-v1 only (required): what to change, in words."
    },
    "image_url": {
      "type": "string",
      "format": "uri",
      "pattern": "^https://",
      "description": "wandura-video-ai-edit-v1, optional: a picture of what to put in. wandura-motion-transfer-v1 (required): one clear photo of the person who does the moves, face visible."
    },
    "prompt": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "wandura-video-extend-v1 (required): what happens next, in words. wandura-sound-effects-v1 (optional, up to 500 characters): the sounds to make. wandura-motion-transfer-v1 (optional): anything more about how it looks. wandura-transition-v1 (optional): how the transition moves. wandura-action-change-v1 (required): what happens from at on."
    },
    "resolution": {
      "type": "string",
      "enum": [
        "480p",
        "720p",
        "1080p"
      ],
      "description": "The two clip edits only, default 720p: wandura-object-remove-v1 takes 720p or 1080p, wandura-video-ai-edit-v1 480p, 720p or 1080p. The price per second depends on it."
    },
    "demo": {
      "type": "boolean",
      "default": false,
      "description": "true when the person asks for a demo or a preview: a few seconds (demo_seconds, 3 when left out) instead of the whole video, to see before asking for all of it. wandura-video-edit-v1 and wandura-photo-video-v1: that much of the video made from demo_start, same price; wandura-transition-v1 and wandura-voiceover-v1 too, placed around the transition or from just before the voice when no demo_start is sent. The clip tools: that much of the clip from demo_start, priced as those seconds. wandura-video-extend-v1: the clip continued by demo_seconds instead of 6, priced as those seconds. wandura-transcribe-v1 and wandura-video-find-v1 take it and answer for the whole video. The job's notes say demo; send it again without demo for the whole video."
    },
    "demo_start": {
      "type": "number",
      "minimum": 0,
      "description": "With demo: true, where the demo starts (seconds, default 0): in the clip of a clip tool, in the video made by wandura-video-edit-v1, wandura-photo-video-v1, wandura-transition-v1, wandura-voiceover-v1 and wandura-action-change-v1 (left out on the last three: around the transition, from just before the voice, around where the new action starts). A demo is never under 2 s (3 for the motion transfer): at least that much of the video must follow it, unless the whole video is shorter. Not for wandura-video-extend-v1."
    },
    "demo_seconds": {
      "type": "integer",
      "minimum": 2,
      "description": "With demo: true, how long the demo is: a whole number of seconds from 2 (3 for the motion transfer) to the tool's longest input (6 for wandura-video-extend-v1), 3 when left out (GET /v2/models/{model_id}/schema has each tool's range)."
    },
    "demo_frame": {
      "type": "boolean",
      "default": false,
      "description": "true when the person asks for a frame, a still or a picture of what the edit gives: one frame of the video at demo_frame_at: the tool makes its video through the same steps and models (a 2 s demo around that moment, 3 s for the motion transfer), then that frame is taken out of it, never made by an image model, as a JPEG (a PNG for the background remove), priced as that demo. Not with demo_start or demo_seconds; not for the two tools that make no video."
    },
    "demo_frame_at": {
      "type": "number",
      "minimum": 0,
      "description": "With demo_frame: true, the moment the frame shows, in seconds: of the clip (the clip tools), of the video made (wandura-video-edit-v1, wandura-photo-video-v1, wandura-transition-v1, wandura-voiceover-v1, wandura-action-change-v1), or into what is added (wandura-video-extend-v1, 0 to 6). Any moment, the first and the last too. Default 1 (1.5 for the motion transfer; the middle of the transition; just after the voice starts)."
    },
    "num_outputs": {
      "type": "integer",
      "enum": [
        1
      ],
      "default": 1
    },
    "webhook_url": {
      "type": "string",
      "format": "uri",
      "pattern": "^https://",
      "maxLength": 2048,
      "description": "Public https URL that gets the final job body, signed (X-Signature, X-Timestamp) with the product's Jobs API signing secret or, when it has none, its Webhook endpoint's signing secret. Needs one of the two."
    },
    "end_user_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "client_reference_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Your own id for this job (for example the run id in your backend). Optional. Returned on the job, its webhook and GET /v2/runs, where ?client_reference_id= finds it. Part of the request: the same Idempotency-Key with another value is refused."
    },
    "lane": {
      "type": "string",
      "enum": [
        "priority",
        "relax"
      ],
      "default": "priority",
      "description": "priority (default): done within the style's max_job_seconds, counted from when the job starts (processing; time queued is not counted), or the job ends timeout and is not charged. relax: waits in line with no maximum job time (your own deadline, timeout_seconds / deadline_at, still applies), never priced above priority."
    },
    "timeout_seconds": {
      "type": "integer",
      "minimum": 1,
      "maximum": 86400,
      "description": "Seconds you wait for this job, counted from this submit (time queued included). Past it the job ends timeout and is not charged; the style's max_job_seconds (from its start) still applies, whichever comes first. Omitted = your product's default deadline, if Wandura set one. Not with deadline_at."
    },
    "deadline_at": {
      "type": "string",
      "format": "date-time",
      "description": "The same as a time (RFC 3339, at most 24 h ahead). Not with timeout_seconds."
    }
  }
}