Bản lưu ngày / Snapshot of 2026-10-26 · Xem bản mới nhất / See the latest version
WanduraDocsBeta
BetaThese docs are in beta and change often. Something wrong, unclear or missing? Tell us.
Change history

History: Wandura Ref 1.0: a drop-in for the video task API

Every change to this page, newest first. Expand an entry to see what changed.

← Wandura Ref 1.0: a drop-in for the video task API

  1. 26 Oct 2026 · +0 −2 lines
    Show changes
    ⋯
      > **TL;DR**: a tool that already calls the standard video-task API (`POST /api/v3/contents/generations/tasks`) changes three things: the base URL to `https://api.wandura.ai`, the key to a Wandura key, and `model` to `wandura-ref-1-0`. Everything else stays: the same request shape it sends today, the same `{"id"}` answer, the same task object on `GET` and on `callback_url`. Wandura decides how each video is made. A request it does not make yet is refused, free, with the code `UnsupportedRequest`: send that one to the model you used before. You pay the video's base cost × 1.1, with no discount. Failed, refused and timed-out tasks are free.
      
    - **Rolling out.** This page describes Wandura Ref 1.0 as it reaches api.wandura.ai with the next release. Until then, both paths answer `404`.
    - 
      ```mermaid
      sequenceDiagram
    ⋯
  2. 26 Oct 2026 · +67 −37 lines
    Show changes
      # Wandura Ref 1.0: a drop-in for the video task API
      
    - > **TL;DR**: a tool that already calls the standard video-task API (`POST /api/v3/contents/generations/tasks`) changes three things: the base URL to `https://api.wandura.ai`, the key to a Wandura key, and `model` to `wandura-ref-1-0`. Everything else stays: the same request shape it sends today, the same `{"id"}` answer, the same task object on `GET` and on `callback_url`. Wandura decides how each video is made. You pay what the video really cost Wandura × 1.3, less your org's partner discount. Failed and timed-out tasks are free.
    + > **TL;DR**: a tool that already calls the standard video-task API (`POST /api/v3/contents/generations/tasks`) changes three things: the base URL to `https://api.wandura.ai`, the key to a Wandura key, and `model` to `wandura-ref-1-0`. Everything else stays: the same request shape it sends today, the same `{"id"}` answer, the same task object on `GET` and on `callback_url`. Wandura decides how each video is made. A request it does not make yet is refused, free, with the code `UnsupportedRequest`: send that one to the model you used before. You pay the video's base cost × 1.1, with no discount. Failed, refused and timed-out tasks are free.
      
      **Rolling out.** This page describes Wandura Ref 1.0 as it reaches api.wandura.ai with the next release. Until then, both paths answer `404`.
    ⋯
        participant W as api.wandura.ai
        T->>W: POST /api/v3/contents/generations/tasks (model wandura-ref-1-0)
    -   W-->>T: 200 with the task id
    +   W-->>T: 200 with the task id (or 400 UnsupportedRequest, then use your old model)
        Note over W: holds a ceiling price, makes the video
        W->>T: POST to your callback_url when the task ends (signed task object)
    ⋯
      Nothing else changes: the body, the `{"id"}` answer, the task object and the statuses keep their shape.
      
    - - **Keys.** An App key from the [console](https://open.wandura.ai) works. A creative team can instead get a key on its org's **UA wallet** (the wallet the org set aside for making ads; UA = user acquisition). Wandura makes UA wallet keys: ask your Wandura contact. A UA wallet key works only on this page's two paths. Everywhere else it gets `403 key_scope` (see [Errors](errors.md#key-scope)).
    + - **Keys.** An App key from the [console](https://open.wandura.ai) works, including a key limited to some styles. A creative team can instead get a key on its org's **UA wallet** (the wallet the org set aside for making ads; UA = user acquisition). Wandura makes UA wallet keys: ask your Wandura contact. A UA wallet key works only on this page's two paths. Everywhere else it gets `403 key_scope` (see [Errors](errors.md#key-scope)).
      - **One model name.** `model` is always `wandura-ref-1-0`, in what you send and in every answer. Wandura picks how to make each video underneath.
      - **No mark.** Videos made here never carry the "Made with Wandura.ai" mark.
    ⋯
      | `GET /api/v3/contents/generations/tasks/{id}` | The task object. The same JSON is POSTed to your `callback_url`. |
      
    + ## What it makes {#scope}
    + 
    + Wandura Ref 1.0 makes videos from one reference video (a clip), at `480p` or `720p`. Anything else is refused with `UnsupportedRequest` and costs nothing.
    + 
    + | Request | Made? |
    + |---|---|
    + | An edit of the clip: one clip, with or without photos, in an edit task (`omni_reference_task_type: "edit"`): a new look, or someone in the clip replaced by the person in a photo. A clip with no photo, or a text that edits the clip, counts as an edit too. | Yes |
    + | One photo + one clip: the people in the photo move like the people in the clip. The photo has as many people as move in the clip, 1 to 4. | Yes |
    + | `resolution: "1080p"` | No: `400 UnsupportedRequest` (`param`: `resolution`) |
    + | No clip: photos only (first frame, first and last frame, reference images) or text only | No: `400 UnsupportedRequest` (`param`: `content`) |
    + | Several photos + a clip, when it is not an edit | No: `400 UnsupportedRequest` (`param`: `content`) |
    + | One photo + a clip, when the number of people differs or is above 4 | No: the task ends `failed` with `error.code` `UnsupportedRequest` |
    + 
    + **On `UnsupportedRequest`, send the same request to the model you used before.** Wandura finds most of these cases in the body, so `POST` answers `400` at once. A few show only once the task has started (counting the people, or a clip Wandura cannot work from): then the task ends `failed` with that code, also free. Branch on the code, not the message.
    + 
      ## Create a task {#create}
      
    ⋯
          "model": "wandura-ref-1-0",
          "content": [
    -       {"type": "text", "text": "@Image1 walks into the sunset, warm light"},
    -       {"type": "image_url", "image_url": {"url": "https://cdn.example.com/u/model.jpg"}, "role": "reference_image"}
    +       {"type": "text", "text": "Edit @Video1: replace the dancer with the woman in @Image1, keep the moves."},
    +       {"type": "image_url", "image_url": {"url": "https://cdn.example.com/u/model.jpg"}, "role": "reference_image"},
    +       {"type": "video_url", "video_url": {"url": "https://cdn.example.com/u/dance.mp4"}, "role": "reference_video"}
          ],
    -     "ratio": "9:16",
    -     "duration": 5,
    +     "omni_reference_task_type": "edit",
          "resolution": "480p",
          "generate_audio": true,
    ⋯
      |---|---|
      | `model` | Required. `wandura-ref-1-0`. Any other value is refused with `400` (see [Errors](#errors)). |
    - | `content` | Required array, as you send it today. `text`: the prompt; refer to files as `@Image1`, `@Video1`, `@Audio1`. `image_url` with `role` `first_frame`, `last_frame` or `reference_image`: an https link, or a base64 data URI (PNG, JPEG or WEBP). `video_url` with `role` `reference_video`: an https link. `audio_url` with `role` `reference_audio`: an https link. |
    - | `duration` | A number, not a string: whole seconds, 4 to 30. |
    - | `resolution` | `480p`, `720p` or `1080p`. |
    + | `content` | Required array, as you send it today. `text`: the prompt; refer to files as `@Image1`, `@Video1`, `@Audio1`. `image_url` with `role` `first_frame`, `last_frame` or `reference_image`: an https link, or a base64 data URI (PNG, JPEG or WEBP). `video_url` with `role` `reference_video`: an https link. `audio_url` with `role` `reference_audio`: an https link. See [What it makes](#scope). |
    + | `duration` | A number, not a string: whole seconds, 4 to 30. An edit needs none: its video follows the clip, up to 30 seconds (or `duration` when shorter). |
    + | `resolution` | `480p` (also when you leave it out) or `720p`. `1080p` is refused with `400 UnsupportedRequest`. |
    + | `return_last_frame` | Optional. `true` adds `content.last_frame_url` to the task (see [The task object](#task)). |
      | Other parameters | `ratio`, `generate_audio`, `seed`, `watermark`, `omni_reference_task_type` and the rest: send them as you do today. |
      | `callback_url` | Optional. A public https URL (at most 2048 characters) that gets the task object when the task ends. See [Callback](#callback). |
    ⋯
      | `source` | An object saying where the request came from, for example `{"venture", "tool", "template_id"}`. Reports group by `template_id`. |
      
    - With both prompts, Wandura can see what the person meant and what your backend asked for. A full request, every field filled:
    + With both prompts, Wandura can see what the person meant and what your backend asked for. Without one, the task carries a warning (see [The wandura block](#wandura-block)). A full request, every field filled:
      
      ```json
    ⋯
      ```json
      {"id":"run_Rf5kT2wQx8Lm","model":"wandura-ref-1-0","status":"succeeded",
    -  "content":{"video_url":"https://api.wandura.ai/v2/files/<file name>"},
    -  "usage":{"completion_tokens":40000,"total_tokens":40000},
    +  "content":{"video_url":"https://api.wandura.ai/v2/files/<file name>","last_frame_url":"https://api.wandura.ai/v2/files/<file name>"},
       "error":null,"created_at":1791590400,"updated_at":1791590400,
    -  "resolution":"480p","ratio":"9:16","duration":5,
    -  "wandura":{"notes":[],"warnings":[]}}
    +  "resolution":"480p",
    +  "wandura":{"creative_id":"run_Rf5kT2wQx8Lm","notes":[],"warnings":["no backend_prompt: taken from the content text"]}}
      ```
      
    ⋯
      | `status` | See the table below. |
      | `content.video_url` | Only when `succeeded`: the MP4 on Wandura storage. Download it and keep your own copy. |
    - | `usage` | `completion_tokens` and `total_tokens` when known. It can be missing. The price does not come from it (see [Price](#price)). |
    + | `content.last_frame_url` | Only when `succeeded` and you sent `return_last_frame: true`: the video's last frame as a PNG, on Wandura storage. |
      | `error` | `null`, or `{code, message}` when the task ended without a video. |
      | `created_at`, `updated_at` | Unix seconds. |
    ⋯
      | `wandura` | Wandura's own block. See [The wandura block](#wandura-block). |
      
    + There is no `usage` field. The price does not come from tokens (see [Price](#price)).
    + 
      | `status` | Meaning | `error.code` |
      |---|---|---|
    ⋯
      | `running` | Being made. | |
      | `succeeded` | Done. `content.video_url` is set. You are charged. | |
    - | `failed` | Ended without a video. Free. | `GENERATION_FAILED` (submit again), `CONTENT_MODERATION_BLOCKED` (change the prompt or files), `INPUT_UNUSABLE` (a file could not be used) |
    + | `failed` | Ended without a video. Free. | `UnsupportedRequest` (not made yet: send it to the model you used before, see [What it makes](#scope)), `GENERATION_FAILED` (submit again), `CONTENT_MODERATION_BLOCKED` (change the prompt or files), `INPUT_UNUSABLE` (a file could not be used) |
      | `cancelled` | Stopped before it ran. Free. | |
      | `expired` | Not done within 90 minutes after it started. Free. Submit again. | `TIMEOUT` |
      
    - A failed task looks like this (no `content`, no `usage`):
    + A task Wandura found it does not make, once it started (no `content`):
      
      ```json
      {"id":"run_Rf5kT2wQx8Lm","model":"wandura-ref-1-0","status":"failed",
    -  "error":{"code":"GENERATION_FAILED","message":"Generation failed on our side. Not charged; submitting again usually works."},
    +  "error":{"code":"UnsupportedRequest","message":"Wandura Ref 1.0 does not make this request yet (it makes an edit of the reference video (a new look, or a subject replaced from a photo), or a photo + a reference video with as many people in the photo as move in the clip). Not charged: send it to the model you used before."},
       "created_at":1791590400,"updated_at":1791590400,
       "resolution":"480p","ratio":"9:16","duration":5,
    -  "wandura":{"notes":[],"warnings":[]}}
    +  "wandura":{"creative_id":"run_Rf5kT2wQx8Lm","notes":[],"warnings":[]}}
      ```
      
    ⋯
      | Field | Notes |
      |---|---|
    - | `creative_id` | Only on a task made with a UA wallet key. Wandura keeps such a task as a **creative**: the video with its whole recipe (your request and a private copy of every file). `creative_id` equals the task `id`. Use it when you talk to Wandura about this video. |
    - | `notes` | A list, can be empty. Where `user_prompt` disagrees with `backend_prompt` or with the images, in Wandura's words. |
    - | `warnings` | A list, can be empty. What Wandura changed or ignored in your request. |
    - 
    - Show `notes` and `warnings` to the person who wrote the prompt. Do not branch on their text. Today both lists are always empty.
    + | `creative_id` | On every task. Wandura keeps each task as a **creative**: the video with its whole recipe (your request and a private copy of every file). `creative_id` equals the task `id`. Use it when you talk to Wandura about this video. |
    + | `notes` | A list, can be empty. How Wandura read your request, in its own words (for example where `user_prompt` and the files disagree). |
    + | `warnings` | A list, can be empty. What was missing, changed or left out: no `user_prompt`, no `backend_prompt`, a `backend_prompt` that differs from the `text` in `content`, sound asked for but not made. |
      
    - ```json
    - {"wandura":{"creative_id":"run_Rf5kT2wQx8Lm","notes":[],"warnings":[]}}
    - ```
    + Show `notes` and `warnings` to the person who wrote the prompt. Do not branch on their text.
      
      ## Callback {#callback}
    ⋯
      ## Price {#price}
      
    - The price follows one rule. There is no price list for this model.
    + One rule, the same for every org. Partner discounts do not apply to this model.
      
    - 1. **On submit, Wandura holds a ceiling** on the key's wallet: the price of your request as if it ran the most expensive way Wandura has to make it, for your `duration` and `resolution`. With no `resolution`, the hold is for `1080p`. A reference video, and an edit task, are each counted as a 15-second clip.
    - 2. **When the task succeeds, you are charged** what the video really cost Wandura × 1.3, less your org's [partner discount](concepts.md#partner-pricing). The charge is never below Wandura's cost, and never above the hold.
    + **Price = (video seconds at the base video rate + prompt writing + split pictures) × 1.1**
    + 
    + | Part | What it counts |
    + |---|---|
    + | Video seconds | Wandura makes the video in pieces of at most 15 seconds. Each piece counts its output seconds plus the seconds of the clip it reads (at most 15). The base video rate is $0.041256 per second at `480p` and $0.083 at `720p`. |
    + | Prompt writing | One language-model call per piece, plus one to count the people for a photo + a clip: what the call cost, or $0.03 when that is not known. |
    + | Split pictures | Only for a photo + a clip: one picture per person plus one of the empty place, each at what it cost, or $0.20 when that is not known. |
    + 
    + 1. **On submit, Wandura holds the most the request can cost** on the key's wallet: the longest video it can make from the request (an edit counts its clip at up to 30 seconds), 15 seconds of clip per piece, $0.03 per call, and for a photo + a clip pictures for 4 people plus the place, all × 1.1.
    + 2. **When the task succeeds, you are charged** for what was made, × 1.1. Never more than the hold.
      3. **The rest of the hold goes back** to the wallet.
      
    - Example: a video that cost Wandura $1.00 is charged $1.30, or $1.04 for an org with 20% off.
    + Example: a 30-second `480p` edit is made in two pieces. Held: (2 calls × $0.03 + (30 s out + 2 × 15 s of clip) × $0.041256) × 1.1 = $2.788896. Charged when the two calls cost $0.0021 each: (60 s × $0.041256 + $0.0042) × 1.1 = $2.727516.
      
    - - `failed`, `expired` and `cancelled` tasks are **free**: the whole hold goes back. A refused request (`4xx`) holds nothing.
    + - `failed`, `expired` and `cancelled` tasks are **free**: the whole hold goes back. That includes a task that ends with `UnsupportedRequest`. A refused request (`4xx`) holds nothing.
      - If the wallet cannot cover the hold, the request is refused with `402 InsufficientBalance` and nothing is made.
      - A UA wallet key pays only from the UA wallet, never from the org's pool or another wallet.
    ⋯
      | What | Limit |
      |---|---|
    + | What it makes | See [What it makes](#scope). Anything else is refused with `UnsupportedRequest`, free. |
      | Images | Up to 10. Https links or base64 data URIs (PNG, JPEG, WEBP). |
      | Video | At most 1, https link only. |
    ⋯
      | Placeholders | A link that is still a placeholder, such as `<link>`, is refused. |
      | `duration` | A number (`8`, not `"8"`): whole seconds, 4 to 30. An edit task (`omni_reference_task_type: "edit"`) takes exactly one video instead. |
    - | `resolution` | `480p`, `720p` or `1080p`. |
    + | `resolution` | `480p` (the default) or `720p`. `1080p` is refused with `400 UnsupportedRequest`. |
      | `id` | 1 to 80 letters, digits, dots, dashes or underscores. |
      | `callback_url` | Public https, at most 2048 characters. |
      | Task time | 90 minutes after it starts. Then it is `expired`, free. |
    - | Not here | Listing and deleting tasks: both answer `404 NotFound`. The task object has no last frame, even with `return_last_frame`. |
    + | Not here | Listing and deleting tasks: both answer `404 NotFound`. |
      
      When many tasks run at once, new ones wait as `queued`. They are not refused. Your product's per-minute rate and daily spend cap still apply (see [Errors](#errors)).
    ⋯
      |---|---|---|---|
      | 400 | [`InvalidParameter`](errors.md#ref-invalid-parameter) | No | The body breaks a [limit](#limits), `model` is not `wandura-ref-1-0`, or `callback_url` cannot be signed. `param` names the field. |
    + | 400 | [`UnsupportedRequest`](errors.md#ref-unsupported-request) | No: send it to the model you used before | A valid request Wandura Ref 1.0 does not make yet (see [What it makes](#scope)). `param` is `resolution` or `content`. |
      | 401 | [`AuthenticationError`](errors.md#ref-authentication-error) | No | No key, or an unknown, revoked or expired key. |
      | 402 | [`InsufficientBalance`](errors.md#ref-insufficient-balance) | No | The wallet cannot cover the hold. Add money first. |
    - | 403 | [`AccessDenied`](errors.md#ref-access-denied) | No | A read-only key sends a task, or the key may not run Wandura Ref 1.0. |
    + | 403 | [`AccessDenied`](errors.md#ref-access-denied) | No | A read-only key sends a task. |
      | 404 | [`NotFound`](errors.md#ref-not-found) | No | No such task for this key's product, or no such endpoint. |
      | 409 | [`Conflict`](errors.md#ref-conflict) | No | This `id` was used with a different body. |
    ⋯
      ```
      
    + A resolution Wandura Ref 1.0 does not make yet:
    + 
    + ```json
    + HTTP 400
    + {"error":{"code":"UnsupportedRequest","message":"Wandura Ref 1.0 does not make this request yet (1080p: it makes 480p and 720p). Nothing was created or charged: send it to the model you used before.","param":"resolution"}}
    + ```
    + 
      The same `id` with a different body:
      
    ⋯
      ```
      
    - When the body has several problems, `message` lists all of them, separated by `; `, and `param` names the first.
    + When the body has several problems, `message` lists all of them, separated by `; `, and `param` names the field of the first one.
      
      A task that ends without a video is not an HTTP error: it reads `failed` or `expired` (see [The task object](#task)). It is free.
  3. 26 Oct 2026 · Page created
↑↓ selectEnter openEsc close

Send feedback

Your message goes straight to the Wandura team. It includes the address of this page.

0 / 4000