## Basic model info

Model name: alibaba/wan-3
Model description: Wan 3.0 generates video from a text prompt or a starting image, with cinematic motion and support for 480p, 720p, and 1080p output up to 30 seconds.


## Model inputs

- prompt (required): Text prompt for video generation (string)
- image (optional): Optional first-frame image to animate into a video (jpg/png/bmp/webp, ≤10MB). When provided, the video is generated from this image guided by the prompt. (string)
- negative_prompt (optional): Negative prompt — describes content that should not appear in the video (string)
- resolution (optional): Output video resolution (string)
- aspect_ratio (optional): Aspect ratio of the generated video. 'adaptive' lets the model choose the best ratio for the prompt. Ignored when an image is provided (the input image's aspect ratio is used). (string)
- duration (optional): Duration of the generated video in seconds (integer)
- enable_prompt_expansion (optional): Automatically expand and optimize the prompt for better results. Improves quality for short prompts but increases latency. (boolean)
- seed (optional): Random seed for reproducible generation. Range: 0-2147483647 (integer)


## Model output schema

{
  "type": "string",
  "title": "Output",
  "format": "uri"
}

If the input or output schema includes a format of URI, it is referring to a file.


## Example inputs and outputs

Use these example outputs to better understand the types of inputs the model accepts, and the types of outputs the model returns:

### Example (https://replicate.com/p/xgx1epgvtdrmy0d06mwafqr6j0)

#### Input

```json
{
  "prompt": "a turtle swimming through a library, 35mm film ",
  "duration": 5,
  "resolution": "1080p",
  "aspect_ratio": "adaptive",
  "negative_prompt": "",
  "enable_prompt_expansion": true
}
```

#### Output

```json
"https://replicate.delivery/xezq/oeKJ5kG2szVZZij9ejo1zt1dXHslnPnPr0VrzwksOslizkGXA/tmps3b3c9bp.mp4"
```


### Example (https://replicate.com/p/sbf29d0znxrmy0d1mxzaczz6mw)

#### Input

```json
{
  "prompt": "A stunning, perfectly manicured female hand rests elegantly on a smooth, black marble surface, her fingers slightly spread to showcase each intricately designed, living fingernail. The camera remains perfectly still, ensuring an uninterrupted, high resolution full frame view of the hand and its enchanting animated nail art. The soft, warm ambient lighting casts subtle shadows across the textured marble, enhancing the hyper-realistic depth of her flawless, porcelain smooth skin. Each fingernail is a miniature portal of magic, alive with independent yet synchronised micro scenes: Thumb Nail A tiny koi pond, where goldfish gracefully swim beneath a translucent, glass like surface, their scales shimmering as they dart between delicate lily pads swaying gently in the water\u2019s micro currents. Index Finger: A blooming cherry blossom tree, where soft pink petals flutter in an invisible breeze, some occasionally detaching and dissolving into golden light. Middle Finger: A miniature celestial night sky, where tiny constellations shift and twinkle, meteors streaking across the deep, cosmic expanse, casting faint, dancing reflections on the nail\u2019s glossy surface. Ring Finger: A tiny, enchanted forest, where glowing fireflies hover and flicker, their gentle luminescence casting soft pulses of golden light across the leaves, which sway subtly as if responding to the heartbeat of the world within. Pinky Finger: A coiled, ethereal dragon, its microscopic, iridescent scales shifting in colour from deep crimson to molten gold. It blinks once, then exhales a swirling wisp of blue fire, which vanishes the moment it drifts beyond the nail\u2019s edge. Her fingers remain completely still, yet the nail animations play simultaneously, creating a mesmerising symphony of motion within a perfectly composed frame. The lighting subtly shifts, casting gentle reflections off the glossy nails, reinforcing their three dimensional realism.",
  "duration": 10,
  "resolution": "1080p",
  "aspect_ratio": "16:9",
  "enable_prompt_expansion": false
}
```

#### Output

```json
"https://replicate.delivery/xezq/XnwaF4RaxILwMJi82h2t2cO1LKEISa9QFPugamz4Mfo3tIvLA/tmpek_lyuan.mp4"
```


### Example (https://replicate.com/p/teck7h0xq9rmy0d1mxzbhn5tsg)

#### Input

```json
{
  "prompt": "This is a 30-second, real cinematic sea monster reveal, with an overall atmosphere inspired by Hollywood disaster monster blockbusters. The story begins with a small fishing boat struggling through a storm with huge waves and howling wind, and the letters \u201cWAN\u201d are clearly visible on the hull. The camera first establishes the harsh sea conditions and the tiny, fragile state of the boat, then gradually builds pressure through details such as abnormal stirring of the sea surface, shadows underwater, the boat shuddering, and unnatural swells rising from the waves. Finally, a massive deep-sea beast, similar in look to a Pacific Rim-style kaiju, bursts out of the seabed through the waves. Overall, the look must be realistic, heavy, with true-to-life proportions, strong water impact, a high-contrast atmosphere of storm and lightning, and an emphasis on cinematic special-effects texture, the volume of seawater, wet kaiju skin details, and the oppressive sense of giant scale.\nStoryboard 1: Night, stormy sea, real cinematic texture. A wide shot shows a small fishing boat pushing forward through giant waves. The hull is old and slick, constantly slapped by the sea, and the white letters \u201cWAN\u201d are clearly visible on its side. The sea surges violently, wind lifts sheets of rain, storm clouds churn in the sky, and distant lightning briefly lights up the whole area. The frame emphasizes real seawater, the stormy environment, hull details, and a sense of smallness and helplessness.\nStoryboard 2: A medium-close shot moves toward the bow or the side of the deck. Waves slam violently against the hull, seawater rushes across the deck, and ropes, fishing nets, and metal railings swing wildly in the wind and rain. The camera rolls with the boat's motion, creating a realistic sense of shaking, and rain constantly hits the foreground and the surface of the boat. The WAN logo on the hull briefly enters the frame again. The overall look emphasizes realistic materials, harsh weather, wet metal and wooden structures, and a strong sense of survival crisis.\nStoryboard 3: The camera looks out over the sea from the fishing boat's point of view. In the storm, the originally chaotic waves begin to show unnatural huge swells, as if something colossal is rapidly approaching from the seabed. The surface forms massive whirlpools and abnormal churning, wave crests are pushed up from below, and the seawater flows in disordered directions. When lightning illuminates the sea, a faint, enormous dark shape is barely visible far beneath the surface. The frame highlights suspense, the oppressive sea surface, and the horror-omen of a giant closing in.\nStoryboard 4: A live-action realistic shot cuts to the fishing boat's deck. The crew struggles to keep their footing in the storm, faces wet with rain and full of terror, turning to look at the abnormal sea. Wind blows at raincoats and hair, deck lights sway, and the waves behind keep rising. The camera moves quickly toward the character's face, then follows his line of sight toward the distant churning sea, linking emotion with danger. The overall look strengthens the on-the-spot feeling of a disaster film and the character's smallness.\nStoryboard 5: The camera cuts to a half-underwater or low shot close to the sea surface. Between the storm and the surging waves, an enormous black shadow sweeps quickly past from beneath or beside the fishing boat, stirring up huge bubbles, currents, and a lifting of the sea surface. The fishing boat is suddenly thrown upward or tilts violently, and the hull groans under the strain. The faint light from lightning and the boat's lamps only outlines part of the monster's silhouette, keeping it mysterious yet very oppressive.\nStoryboard 6: The camera returns to the sea surface. Ahead, the water is suddenly pushed upward as if by a huge force, forming a rapidly rising wall of waves, with rain and white foam flung up by enormous power. In the foreground the fishing boat is tossed by the waves, and in the distance the center of the sea swells into a huge circular bulge, as if a precursor to a submarine volcanic eruption. The atmosphere reaches the peak of tension, and the monster is about to appear.\nStoryboard 7: Climax shot. The sea roars apart, and a massive deep-sea beast bursts out of the seabed through the waves, raising tens of meters of waves and clouds of mist. In the style of Pacific Rim kaiju, the beast is huge, ferocious, with an alien creature structure, a rough, heavy, wet skin, sharp bony spikes, a huge head silhouette, glowing details, or horrifying textures like deep-sea creatures. Lightning tears across the night sky, briefly illuminating parts of the whole body and its wide-open jaws. The frame emphasizes true scale, the impact of seawater, and the oppressive presence of the monster.\nStoryboard 8: A medium-close or low-angle shot aims at the beast's head and upper body. In the storm and lightning, the beast raises its torso, its skin covered with seawater, scars, horny structures, and deep-sea creature textures, opening its mouth to let out a stunning roar. Rain runs down its exoskeleton and scales, and details of its eyes or head look especially terrifying under the lightning. The emphasis is on wet biological texture, realistic skin structure, a sense of weight, and cinematic monster design.\nStoryboard 9: The camera returns to the fishing boat, which is violently flipped up by the shockwave and waves from the beast's emergence. The deck tilts, seawater pours in, ropes snap, and the deck lights flash. The WAN logo flashes past on the violently shaking hull, and the fishing boat is nearly swallowed by a giant wave. The frame emphasizes how fragile human creations are before the beast, with seawater, wooden boards, metal debris, and the curtain of rain together forming a chaotic disaster scene.\nStoryboard 10: The final shot pulls back. The beast towers above the raging sea, with huge waves churning around it, and the fishing boat looks extremely tiny in the foreground or lower to the side. Lightning strikes the sky again, briefly lighting the monster's enormous silhouette, its back spikes, and the churning seawater, forming an epic final image like a disaster monster poster. The frame holds on the most shocking moment and ends with a sense of scale and doom.\nThe score follows the style of a Hollywood disaster monster film. The opening builds unease with low ambient sounds, deep-sea low-frequency rumbles, sparse drums, and oppressive strings. As the sea begins to move abnormally, stronger low-end pulses, metallic impacts, and layered string tension are gradually added. Just before the beast surfaces, the music enters an almost breath-holding hover and keeps rising. When the beast bursts through the waves, huge brass, heavy percussion, and low-frequency impacts explode into a disaster-level climax. The ending closes with long, heavy, doom-laden sustained tones and drumbeats that reinforce the epic sense of the monster standing on the sea.",
  "duration": 30,
  "resolution": "1080p",
  "aspect_ratio": "16:9",
  "enable_prompt_expansion": false
}
```

#### Output

```json
"https://replicate.delivery/xezq/BJ2mUG7XR0IuKBoCpn9WoQMjYjJQUxVeKbmDbpbWYK5CyIvLA/tmpqq5oba0r.mp4"
```


## Model readme

> # Wan 3.0
> 
> Wan 3.0 is Alibaba's video model. Give it a prompt and it generates a short video with cinematic motion and camera movement. You can also provide a starting image to animate.
> 
> ## What it's good at
> 
> - **Text to video.** Turn a description into a video clip.
> - **Image to video.** Provide a first-frame image and the model animates it, guided by your prompt.
> - **Multiple resolutions.** Choose 480p, 720p, or 1080p.
> - **Long clips.** Generate up to 30 seconds.
> - **Adaptive framing.** Let the model pick the best aspect ratio for your prompt, or set one explicitly.
> 
> ## Inputs
> 
> - `prompt`: the video you want.
> - `image`: optional first-frame image to animate, as jpg, png, bmp, or webp. When you provide one, the model animates it.
> - `resolution`: `480p`, `720p`, or `1080p` (the default).
> - `aspect_ratio`: `adaptive` (the default) lets the model choose, or set 16:9, 9:16, 1:1, 4:3, or 3:4. The model ignores this when you provide an image.
> - `duration`: length of the video in seconds, from 2 to 30 (default 5).
> - `negative_prompt`: what to leave out of the video.
> - `enable_prompt_expansion`: rewrites short prompts into more detailed ones. On by default.
> - `seed`: set a seed to get the same result again.

