Runflow
Back to Gallery

alibaba/wan/v2.7/text-to-video

Wan 2.7 is the latest generation AI video model, delivering enhanced motion smoothness, superior scene fidelity, and greater visual coherence.

$0.1/second 2026-04-08

Install

pip install requests

Run the model

import requests

response = requests.post(
    "https://api.runflow.io/v1/run/wan/v2.7/text-to-video",
    headers={"Authorization": "Bearer RUNFLOW_API_KEY"},
    json={
    "prompt": "Aerial drone shot pulling back slowly to reveal a vibrant coral reef teeming ...",
    "duration": 5,
    "resolution": "1080p"
    },
)

data = response.json()
print(data["video"]["url"])

Input schema

ParameterTypeDescription
promptstringText prompt describing the desired video. Max 5000 characters.
audio_urlfileURL of driving audio. Supports WAV and MP3. Duration: 3-30s. Max 15 MB. If not provided, the model auto-generates matching background music.
aspect_ratiostringAspect ratio of the generated video.
resolutionstringOutput video resolution tier.
durationstringOutput video duration in seconds (2-15).
negative_promptstringContent to avoid in the video. Max 500 characters.
enable_prompt_expansionbooleanEnable intelligent prompt rewriting.
seedintegerRandom seed for reproducibility (0-2147483647).
enable_safety_checkerbooleanEnable content moderation for input and output.

Output schema

FieldTypeDescription
videostringThe generated video file.
seedintegerThe seed used for generation.
actual_promptstringThe actual prompt used if prompt rewriting was enabled.

Related models

Start generating with Wan 2.7 Text to Video

Get API access in minutes. No GPU setup, no infrastructure to manage.