VideoWan 3.0
Image to video · Text to video
Starting price $0.0793 / second
By Alibaba
Wan 2.2 5B Fast is a small, quick version of Alibaba's Wan 2.2: a short clip from a text prompt at 480p, 580p or 720p, with frame interpolation for smoother motion.
wan/v2.2-5b/text-to-video/fast-wanQuote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.
# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan/v2.2-5b/text-to-video/fast-wan",
"input": {
"prompt": "A koi fish glides beneath lily pads in a clear garden pond, its orange scales catching the sunlight as ripples spread across the surface."
}
}'
# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
-H "Authorization: Bearer $RAYWAKE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model": "wan/v2.2-5b/text-to-video/fast-wan", "quote_id": "QUOTE_ID", "input": {"prompt":"A koi fish glides beneath lily pads in a clear garden pond, its orange scales catching the sunlight as ripples spread across the surface."}}'
# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
-H "Authorization: Bearer $RAYWAKE_API_KEY"| Name | Type | Description |
|---|---|---|
promptrequired | string | The text prompt to guide video generation. |
negative_prompt | string | Negative prompt for video generation. |
num_frames | number (enum) | Number of frames to generate. Must be between 17 to 161 (inclusive). |
frames_per_second | number (enum) | Frames per second of the generated video. Must be between 4 to 60. When using interpolation and `adjust_fps_for_interpolation` is set to true (default true,) the final FPS will be multiplied by the number of interpolated frames plus one. For example, if the generated frames per second is 16 and the number of interpolated frames is 1, the final frames per second will be 32. If `adjust_fps_for_interpolation` is set to false, this value will be used as-is. |
seed | integer | Random seed for reproducibility. If None, a random seed is chosen. |
resolution | string (enum) | Resolution of the generated video (580p or 720p). |
aspect_ratio | string (enum) | Aspect ratio of the generated video (16:9 or 9:16). |
enable_prompt_expansion | boolean | Whether to enable prompt expansion. This will use a large language model to expand the prompt with additional details while maintaining the original meaning. |
guidance_scale | number | Classifier-free guidance scale. Higher values give better adherence to the prompt but may decrease quality. |
interpolator_model | string (enum) | The model to use for frame interpolation. If None, no interpolation is applied. |
num_interpolated_frames | number (enum) | Number of frames to interpolate between each pair of generated frames. Must be between 0 and 4. |
adjust_fps_for_interpolation | boolean | If true, the number of frames per second will be multiplied by the number of interpolated frames plus one. For example, if the generated frames per second is 16 and the number of interpolated frames is 1, the final frames per second will be 32. If false, the passed frames per second will be used as-is. |
video_quality | string (enum) | The quality of the output video. Higher quality means better visual quality but larger file size. |
video_write_mode | string (enum) | The write mode of the output video. Faster write mode means faster results but larger file size, balanced write mode is a good compromise between speed and quality, and small write mode is the slowest but produces the smallest file size. |
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"outputs": [
{ "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]The exact charge for your input comes from a quote. How charges settle
Fields marked * are required. Review the price before generating.
Wan 2.2 5B Fast takes a prompt, an optional negative prompt and a shape of 16:9, 9:16 or 1:1. Prompt expansion is off by default; switch it on to have a language model add detail to a short prompt.
Frame interpolation, set to FILM by default, adds in-between frames and raises the frame rate to match. You can switch to RIFE or turn it off, and pick a file write mode that favors speed, balance or a small file.
Check motion direction, temporal flicker and whether the ending completes the action.