VideoWan 3.0
Image to video · Text to video
Starting price $0.0793 / second
By Alibaba
Animate a still with Wan 2.7. Set the opening look with a first frame, guide the ending with an optional last frame, and describe the movement that connects them.
wan/v2.7/image-to-videoThis model has other modes with their own ids: wan/v2.7/text-to-video, wan/v2.7/reference-to-video, wan/v2.7/edit-video.
Quote 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.7/image-to-video",
"input": {
"prompt": "The chef in the image plates a dessert, drizzles chocolate over it and slides the plate toward the camera with a smile."
}
}'
# 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.7/image-to-video", "quote_id": "QUOTE_ID", "input": {"prompt":"The chef in the image plates a dessert, drizzles chocolate over it and slides the plate toward the camera with a smile."}}'
# 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 |
|---|---|---|
prompt | string | Text prompt describing the desired video. Max 5000 characters. |
image_url | string (image URL) | URL of the first frame image. Formats: JPEG, JPG, PNG, BMP, WEBP. Max 20 MB. |
end_image_url | string (image URL) | URL of the last frame image for first-and-last-frame-to-video. Same constraints as image_url. |
video_url | string (URL) | URL of a video clip to continue from. Format: MP4, MOV. Duration: 2-10s. Max 100 MB. Cannot be combined with image_url. |
audio_url | string (URL) | URL of driving audio. Supports WAV and MP3. Duration: 2-30s. Max 15 MB. |
resolution | string (enum) | Output video resolution tier. |
duration | number (enum) | Output video duration in seconds (2-15). |
negative_prompt | string | Content to avoid in the video. Max 500 characters. |
enable_prompt_expansion | boolean | Enable intelligent prompt rewriting. |
seed | integer | Random seed for reproducibility (0-2147483647). |
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.7 renders 2 to 15 seconds in 16:9, 9:16, 1:1, 4:3 or 3:4. Upload a WAV or MP3 to drive the clip; without one, text clips get background music made to match.
The image mode starts from a first frame, can end on a last frame, or continues a video clip of 2 to 10 seconds instead. The reference mode builds a 2 to 10 second scene around the people and objects in your images; the edit mode restyles or changes a clip of 2 to 10 seconds and can keep its sound. A negative prompt keeps things out.
Check motion continuity, the ending transition and sound alignment across the clip.