# Wandura Gen 1.0: a video with sound from your images and a prompt

> **TL;DR**: send 1 to 10 images and a prompt to the same video-task API as [Wandura Ref 1.0](https://docs.wandura.ai/developers/api-v2/wandura-ref-1-0), with `model` set to `wandura-gen-1-0`. You get one continuous video of 4 to 30 seconds with its own sound, at `480p` or `720p`. People and animals in your images stay themselves; a product keeps its own label. No reference video: a request with a clip goes to `wandura-ref-1-0`. Everything else (keys, the `{"id"}` answer, the task object, callbacks, deadlines, cancel, price per second less your partner price) works as on the Ref page. Failed, refused and timed-out tasks are free.

```mermaid
sequenceDiagram
  participant T as Your tool
  participant W as api.wandura.ai
  T->>W: POST /api/v3/contents/generations/tasks (model wandura-gen-1-0, images + prompt)
  W-->>T: 200 with the task id (or 400 UnsupportedRequest)
  Note over W: holds a ceiling price, makes one take with sound
  W->>T: POST to your callback_url when the task ends (signed task object)
  T->>W: GET /api/v3/contents/generations/tasks/ID
  W-->>T: task object (status, content.video_url, wandura block)
```

## What it makes
| Request | Made? |
|---|---|
| 1 to 10 images (`image_url`, any `role`) and a prompt, `duration` 4 to 30, `480p` or `720p` | Yes: one continuous take of `duration` seconds |
| `generate_audio: true` (the default) | The video has its own sound: the voices and music your prompt describes |
| An image with `role: "first_frame"` or `"last_frame"` | Yes, used as a reference for the opening or closing scene, not pasted as the exact frame (said in `wandura.warnings`) |
| A reference video (`video_url`) | No: `400 UnsupportedRequest` (`param`: `content`). Send it to `wandura-ref-1-0` |
| Text only, no image | No: `400 UnsupportedRequest` (`param`: `content`) |
| A reference audio (`audio_url`) | No: `400 UnsupportedRequest` (`param`: `content`) |
| `resolution: "1080p"` | No: `400 UnsupportedRequest` (`param`: `resolution`) |
| More than 10 images, `duration` outside 4–30 or not a whole number | No: `400 InvalidParameter` |

How each image is used: a person, an animal or a character is first drawn as a character sheet so it stays the same in every frame; a product, a place or a style picture goes to the model as you sent it.

## Create a task
```bash
curl -X POST https://api.wandura.ai/api/v3/contents/generations/tasks \
  -H "Authorization: Bearer $WANDURA_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wandura-gen-1-0",
    "content": [
      {"type": "text", "text": "The woman in @Image1 holds the bottle from @Image2 in a bright bathroom and says \"my new favourite serum\"."},
      {"type": "image_url", "image_url": {"url": "https://cdn.example.com/u/woman.jpg"}, "role": "reference_image"},
      {"type": "image_url", "image_url": {"url": "https://cdn.example.com/u/bottle.jpg"}, "role": "reference_image"}
    ],
    "ratio": "9:16",
    "duration": 8,
    "resolution": "480p",
    "generate_audio": true
  }'
# HTTP 200
# {"id":"run_Gn5kT2wQx8Lm"}
```

| Field | Notes |
|---|---|
| `model` | Required. `wandura-gen-1-0`. |
| `content` | Required. One `text` (the prompt; name the images `@Image1` … `@Image10`) and 1 to 10 `image_url` (https, or a base64 PNG / JPEG / WEBP). |
| `duration` | Required. A whole number of seconds, 4 to 30. |
| `resolution` | `480p` (also when left out) or `720p`. |
| `ratio` | `16:9`, `9:16`, `1:1`, `4:3` or `3:4`. `adaptive`, `21:9` or none: the shape of your first image (said in `wandura.warnings` when it differs from what you asked). |
| `generate_audio` | `true` (default): the video has sound. `false`: silent. |
| Everything else | `callback_url`, `execution_expires_after`, `deadline_at`, `id`, `client_reference_id`, `user_prompt`, `backend_prompt`, `source`, `return_last_frame`, `seed`: as on [Wandura Ref 1.0](https://docs.wandura.ai/developers/api-v2/wandura-ref-1-0#create). |

The task object, the `wandura` block, callbacks, deadlines and cancel are the same as [Wandura Ref 1.0](https://docs.wandura.ai/developers/api-v2/wandura-ref-1-0#task), with `model: "wandura-gen-1-0"`.

## Price
Priced per second of video by resolution, at your org's partner price, like Ref, plus the prompt writing and a character sheet per person or animal in the images. There is no reference-video second to pay. When the task starts, the most it can cost is held; when it ends you pay what it used, never more than the hold.

| Example (list price) | Held at the start |
|---|---|
| 8 s at 480p | $1.1635 |
| 30 s at 480p | $2.5935 |

A task that fails, is refused, is cancelled while queued or passes its deadline is free.

## Errors
| Status | `error.code` | When |
|---|---|---|
| 400 | `UnsupportedRequest` (+ `param`) | a reference video, text only, a reference audio (`content`); `1080p` (`resolution`). Nothing created or held |
| 400 | `InvalidParameter` (+ `param`) | more than 10 images, a `duration` outside 4–30, a broken link or tag, `model` not a Wandura model |

All other errors (401, 402, 403, 409, 429, 503, 500) are the same as [Wandura Ref 1.0](https://docs.wandura.ai/developers/api-v2/wandura-ref-1-0#errors).
