## Basic model info

Model name: alibaba/wan-3-prime
Model description: Generate videos from text prompts using Alibaba's Wan 3.0 Prime model. Up to 1080p and 30 seconds, with 480p, 720p, and 1080p output.


## 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/djkkpntwfhrmt0d080sawt42rg)

#### Input

```json
{
  "prompt": "a man doing jumping jacks",
  "duration": 5,
  "resolution": "1080p",
  "aspect_ratio": "adaptive",
  "negative_prompt": "",
  "enable_prompt_expansion": true
}
```

#### Output

```json
"https://replicate.delivery/xezq/PE9wA1QbeG1sDi24T7AuwCaAQXXi6ivQ1ae43b5DMJxztRHXA/tmpcdvhv28v.mp4"
```


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

#### Input

```json
{
  "seed": 7,
  "prompt": "A red sports car driving along a coastal highway at sunset, cinematic drone shot",
  "duration": 5,
  "resolution": "480p",
  "aspect_ratio": "16:9",
  "enable_prompt_expansion": false
}
```

#### Output

```json
"https://replicate.delivery/xezq/DtuMjxXke9R0FywPG61Yu1LegywJ0XJZ2EjNiftJBZ3YakOuA/tmpucguykis.mp4"
```


## Model readme

> # Wan 3.0 Prime text-to-video
> 
> Wan 3.0 Prime is a text-to-video model from Alibaba's [Wan family](https://github.com/Wan-Video/Wan2.1). Describe a scene in natural language and it generates a video with coherent motion and lighting.
> 
> The model generates video at 480p, 720p, or 1080p, with durations from 2 to 30 seconds. Let the model pick the best aspect ratio for your prompt with the `adaptive` setting, or choose your own.
> 
> ## Inputs
> 
> - **prompt** — Text description of the video to generate (required)
> - **negative_prompt** — Describes content that should not appear in the video
> - **resolution** — 480p, 720p, or 1080p (default: 1080p)
> - **aspect_ratio** — adaptive, 16:9, 9:16, 1:1, 4:3, or 3:4 (default: adaptive)
> - **duration** — Length in seconds, 2–30 (default: 5)
> - **enable_prompt_expansion** — Automatically expand short prompts for better results. Improves quality but adds latency (default: true)
> - **seed** — Random seed for reproducible results
> 
> ## Tips
> 
> - **Be descriptive.** Include details about the scene, lighting, camera movement, and action. "A golden retriever running through autumn leaves in a park, camera tracking from the side, warm afternoon light" works much better than "a dog in a park."
> - **Use negative prompts** to reduce common artifacts — try "blurry, distorted, low quality, static."
> - **Enable prompt expansion** for short prompts. It fills in visual details that improve generation quality.
> - **Pick the right aspect ratio** for your use case — 9:16 for vertical/mobile content, 16:9 for widescreen, 1:1 for social. Or use `adaptive` to let the model decide.
> 
> ## Limitations
> 
> - Complex multi-character scenes with specific interactions can be inconsistent.
> - Text rendering within generated videos is unreliable.
> - Longer durations may show motion degradation or scene drift.
> - Precise spatial relationships ("object A is to the left of object B") are not always followed exactly.
> 
> ## Links
> 
> - [GitHub](https://github.com/Wan-Video/Wan2.1)
> - [Apache 2.0 License](https://github.com/Wan-Video/Wan2.1/blob/main/LICENSE)

