{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wandura-ai/json-schema/wandura-ai-raw-job-request-schema.json",
  "title": "RawJobRequest",
  "description": "Rolling out (API www): only while Wandura has raw models on; until then the Jobs API answers as without them. The body for a raw model: no style and no inputs object; send the fields its inputs declare (GET /v2/models/{id}) at the top level, and only those. A field it does not take, or a value it does not offer, is 422 INVALID_INPUT with details.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wandura-ai-openapi.json#/components/schemas/RawJobRequest",
  "type": "object",
  "required": [
    "model"
  ],
  "additionalProperties": false,
  "properties": {
    "model": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9.-]*(\\/[a-z0-9][a-z0-9.-]*){3}$",
      "description": "A raw model id from GET /v2/models (type raw): vendor/model/version/task, for example wandura/studio/4-0/cinema-scene. The older id of a renamed model works too, and the job keeps the id you sent."
    },
    "prompt": {
      "type": "string",
      "maxLength": 50000,
      "description": "Its text: sent to the model word for word, as typed in the Wandura app. Required when its inputs say so. At most its inputs.prompt.max_length characters: the limit its provider takes (never under 4000), or 50000 when the provider declares none. Longer is 422 INVALID_INPUT (field prompt) before anything is held or run."
    },
    "image_urls": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "pattern": "^https://"
      },
      "description": "Reference images, in order: as many as its inputs.image_urls min-max."
    },
    "video_urls": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "pattern": "^https://"
      },
      "description": "Reference videos, in order: as many as its inputs.video_urls min-max."
    },
    "audio_urls": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "pattern": "^https://"
      },
      "description": "Reference audio, in order: as many as its inputs.audio_urls min-max."
    },
    "resolution": {
      "type": "string",
      "description": "One of its inputs.resolution.enum (for example \"720p\" or \"2K\"); left out = its default. The price per unit depends on it."
    },
    "quality": {
      "type": "string",
      "description": "Only for a model priced by quality: one of its inputs.quality.enum (low, medium, high); left out = its default. The price per unit depends on it."
    },
    "preset": {
      "type": "string",
      "description": "One of its presets (GET /v2/models/{id} -> presets: a ready-made use of the model, for example buzz-cut or cinema). Its fields and limits are that preset's; the price per unit is the model's. Left out = the model as its inputs say, your text word for word; required on a model with preset_required. Wandura Studio 4.0 (wandura/studio/4-0/image-to-video) left out = its cinema preset: your text plus a line telling the model the role of each reference image, video and audio (as its description says)."
    },
    "duration": {
      "type": "number",
      "description": "Seconds: one of its inputs.duration.enum; left out = its default. A model priced per second is held and charged for these seconds."
    },
    "aspect_ratio": {
      "type": "string",
      "description": "One of its inputs.aspect_ratio.enum; left out = its default."
    },
    "seed": {
      "type": "integer",
      "minimum": 0,
      "description": "Only for a model whose inputs have seed: a whole number from its inputs.seed.min to max. The same seed, inputs and model make a close take again."
    },
    "audio": {
      "type": "boolean",
      "description": "Only for a model whose inputs have audio: its own sound on (true) or off; left out = its default."
    },
    "prompt_extend": {
      "type": "boolean",
      "description": "Only for a model whose inputs have it: true lets the model rewrite your text before it makes the take; left out = its default (false: your text word for word)."
    },
    "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."
    }
  }
}