curl --request POST \
--url https://api.weryai.com/v1/generation/almighty-reference-to-video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "WERYDANCE_2_0_FAST",
"prompt": "Use image 1 as opening frame, keep style of video 1, and use audio 1 as BGM.",
"images": [
"https://example.com/image1.jpg"
],
"videos": [
"https://example.com/video1.mp4"
],
"audios": [
"https://example.com/audio1.mp3"
],
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5,
"generate_audio": "false",
"video_number": 4
}
'import requests
url = "https://api.weryai.com/v1/generation/almighty-reference-to-video"
payload = {
"model": "WERYDANCE_2_0_FAST",
"prompt": "Use image 1 as opening frame, keep style of video 1, and use audio 1 as BGM.",
"images": ["https://example.com/image1.jpg"],
"videos": ["https://example.com/video1.mp4"],
"audios": ["https://example.com/audio1.mp3"],
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5,
"generate_audio": "false",
"video_number": 4
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'WERYDANCE_2_0_FAST',
prompt: 'Use image 1 as opening frame, keep style of video 1, and use audio 1 as BGM.',
images: ['https://example.com/image1.jpg'],
videos: ['https://example.com/video1.mp4'],
audios: ['https://example.com/audio1.mp3'],
aspect_ratio: '16:9',
resolution: '720p',
duration: 5,
generate_audio: 'false',
video_number: 4
})
};
fetch('https://api.weryai.com/v1/generation/almighty-reference-to-video', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.weryai.com/v1/generation/almighty-reference-to-video",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'WERYDANCE_2_0_FAST',
'prompt' => 'Use image 1 as opening frame, keep style of video 1, and use audio 1 as BGM.',
'images' => [
'https://example.com/image1.jpg'
],
'videos' => [
'https://example.com/video1.mp4'
],
'audios' => [
'https://example.com/audio1.mp3'
],
'aspect_ratio' => '16:9',
'resolution' => '720p',
'duration' => 5,
'generate_audio' => 'false',
'video_number' => 4
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.weryai.com/v1/generation/almighty-reference-to-video"
payload := strings.NewReader("{\n \"model\": \"WERYDANCE_2_0_FAST\",\n \"prompt\": \"Use image 1 as opening frame, keep style of video 1, and use audio 1 as BGM.\",\n \"images\": [\n \"https://example.com/image1.jpg\"\n ],\n \"videos\": [\n \"https://example.com/video1.mp4\"\n ],\n \"audios\": [\n \"https://example.com/audio1.mp3\"\n ],\n \"aspect_ratio\": \"16:9\",\n \"resolution\": \"720p\",\n \"duration\": 5,\n \"generate_audio\": \"false\",\n \"video_number\": 4\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.weryai.com/v1/generation/almighty-reference-to-video")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"WERYDANCE_2_0_FAST\",\n \"prompt\": \"Use image 1 as opening frame, keep style of video 1, and use audio 1 as BGM.\",\n \"images\": [\n \"https://example.com/image1.jpg\"\n ],\n \"videos\": [\n \"https://example.com/video1.mp4\"\n ],\n \"audios\": [\n \"https://example.com/audio1.mp3\"\n ],\n \"aspect_ratio\": \"16:9\",\n \"resolution\": \"720p\",\n \"duration\": 5,\n \"generate_audio\": \"false\",\n \"video_number\": 4\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.weryai.com/v1/generation/almighty-reference-to-video")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"WERYDANCE_2_0_FAST\",\n \"prompt\": \"Use image 1 as opening frame, keep style of video 1, and use audio 1 as BGM.\",\n \"images\": [\n \"https://example.com/image1.jpg\"\n ],\n \"videos\": [\n \"https://example.com/video1.mp4\"\n ],\n \"audios\": [\n \"https://example.com/audio1.mp3\"\n ],\n \"aspect_ratio\": \"16:9\",\n \"resolution\": \"720p\",\n \"duration\": 5,\n \"generate_audio\": \"false\",\n \"video_number\": 4\n}"
response = http.request(request)
puts response.read_body{
"status": 0,
"desc": "success",
"message": "success",
"data": {
"task_id": "task_abc123",
"task_status": "waiting"
}
}{
"status": 1001,
"desc": "Parameter error",
"message": "Prompt cannot be empty"
}{
"status": 1002,
"desc": "Authentication failed",
"message": "Invalid API Key"
}Submit Almighty Reference-to-Video Task
Generate video using mixed references (images/videos/audios) and prompt.
curl --request POST \
--url https://api.weryai.com/v1/generation/almighty-reference-to-video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "WERYDANCE_2_0_FAST",
"prompt": "Use image 1 as opening frame, keep style of video 1, and use audio 1 as BGM.",
"images": [
"https://example.com/image1.jpg"
],
"videos": [
"https://example.com/video1.mp4"
],
"audios": [
"https://example.com/audio1.mp3"
],
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5,
"generate_audio": "false",
"video_number": 4
}
'import requests
url = "https://api.weryai.com/v1/generation/almighty-reference-to-video"
payload = {
"model": "WERYDANCE_2_0_FAST",
"prompt": "Use image 1 as opening frame, keep style of video 1, and use audio 1 as BGM.",
"images": ["https://example.com/image1.jpg"],
"videos": ["https://example.com/video1.mp4"],
"audios": ["https://example.com/audio1.mp3"],
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5,
"generate_audio": "false",
"video_number": 4
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'WERYDANCE_2_0_FAST',
prompt: 'Use image 1 as opening frame, keep style of video 1, and use audio 1 as BGM.',
images: ['https://example.com/image1.jpg'],
videos: ['https://example.com/video1.mp4'],
audios: ['https://example.com/audio1.mp3'],
aspect_ratio: '16:9',
resolution: '720p',
duration: 5,
generate_audio: 'false',
video_number: 4
})
};
fetch('https://api.weryai.com/v1/generation/almighty-reference-to-video', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.weryai.com/v1/generation/almighty-reference-to-video",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'WERYDANCE_2_0_FAST',
'prompt' => 'Use image 1 as opening frame, keep style of video 1, and use audio 1 as BGM.',
'images' => [
'https://example.com/image1.jpg'
],
'videos' => [
'https://example.com/video1.mp4'
],
'audios' => [
'https://example.com/audio1.mp3'
],
'aspect_ratio' => '16:9',
'resolution' => '720p',
'duration' => 5,
'generate_audio' => 'false',
'video_number' => 4
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.weryai.com/v1/generation/almighty-reference-to-video"
payload := strings.NewReader("{\n \"model\": \"WERYDANCE_2_0_FAST\",\n \"prompt\": \"Use image 1 as opening frame, keep style of video 1, and use audio 1 as BGM.\",\n \"images\": [\n \"https://example.com/image1.jpg\"\n ],\n \"videos\": [\n \"https://example.com/video1.mp4\"\n ],\n \"audios\": [\n \"https://example.com/audio1.mp3\"\n ],\n \"aspect_ratio\": \"16:9\",\n \"resolution\": \"720p\",\n \"duration\": 5,\n \"generate_audio\": \"false\",\n \"video_number\": 4\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.weryai.com/v1/generation/almighty-reference-to-video")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"WERYDANCE_2_0_FAST\",\n \"prompt\": \"Use image 1 as opening frame, keep style of video 1, and use audio 1 as BGM.\",\n \"images\": [\n \"https://example.com/image1.jpg\"\n ],\n \"videos\": [\n \"https://example.com/video1.mp4\"\n ],\n \"audios\": [\n \"https://example.com/audio1.mp3\"\n ],\n \"aspect_ratio\": \"16:9\",\n \"resolution\": \"720p\",\n \"duration\": 5,\n \"generate_audio\": \"false\",\n \"video_number\": 4\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.weryai.com/v1/generation/almighty-reference-to-video")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"WERYDANCE_2_0_FAST\",\n \"prompt\": \"Use image 1 as opening frame, keep style of video 1, and use audio 1 as BGM.\",\n \"images\": [\n \"https://example.com/image1.jpg\"\n ],\n \"videos\": [\n \"https://example.com/video1.mp4\"\n ],\n \"audios\": [\n \"https://example.com/audio1.mp3\"\n ],\n \"aspect_ratio\": \"16:9\",\n \"resolution\": \"720p\",\n \"duration\": 5,\n \"generate_audio\": \"false\",\n \"video_number\": 4\n}"
response = http.request(request)
puts response.read_body{
"status": 0,
"desc": "success",
"message": "success",
"data": {
"task_id": "task_abc123",
"task_status": "waiting"
}
}{
"status": 1001,
"desc": "Parameter error",
"message": "Prompt cannot be empty"
}{
"status": 1002,
"desc": "Authentication failed",
"message": "Invalid API Key"
}Authorizations
Authenticate using Bearer token. Get your API Key from the WeryAI Console.
Example: Authorization: Bearer sk-xxxxxxxxxxxxxxxx
Body
Model Key. Supported models for almighty-reference-to-video:
| Model Name | Model Key | Supported Aspect Ratios | Supported Durations (s) |
|---|---|---|---|
| Werydance 2.5 | WERYDANCE_2_5 | adaptive 16:9 4:3 1:1 3:4 9:16 21:9 | 4~30 |
| MiniMax H3 | HAILUO_03 | adaptive 21:9 16:9 4:3 1:1 3:4 9:16 | 5~15 |
| Werydance 2.0 | WERYDANCE_2_0 | 9:16 1:1 16:9 | 4~15 |
| Werydance 2.0 Mini | WERYDANCE_2_0_MINI | 9:16 1:1 16:9 | 4~15 |
| Werydance 2.0 Fast | WERYDANCE_2_0_FAST | 9:16 1:1 16:9 | 4~15 |
"WERYDANCE_2_0_FAST"
Generated video duration in seconds. Range depends on the selected model; WERYDANCE_2_5 supports 4-30. HAILUO_03 supports 5-15 for the generated video; reference video duration is added on top for billing.
4 <= x <= 304
Prompt text (max 2000 characters). HAILUO_03 requires a non-empty prompt; reference assets are cited in the prompt as Image 1, Video 1, Audio 1 in upload order.
2000Reference image URLs.
WERYDANCE_2_5 requirements:
- 0~30 images.
- Each image must be within 4K and no larger than 30 MB.
- Supported formats: jpeg, png, webp, bmp, tiff, gif, heic, heif.
Other Werydance models: 0~9 images. Optional, but at least one of images or videos must be provided.
HAILUO_03 requirements:
- 0~9 images.
- Supported formats: jpg, jpeg, png, webp.
- The first 5 reference images are free; each additional image is billed separately.
- Reference images, videos and audios must add up to at most 12 files in total.
30Reference video URLs.
WERYDANCE_2_5 requirements:
- 0~10 reference videos.
- Supports 480p~4K; each video must be no larger than 200 MB.
- Supported formats: mp4, mov.
- Each video duration must be [2,30] seconds; total video duration must be <= 30 seconds.
Other Werydance models: max 3 videos; each 2~15 seconds; total <= 15 seconds. Optional, but at least one of images or videos must be provided.
HAILUO_03 requirements:
- Max 3 reference videos.
- Each video duration must be [2,15] seconds; total video duration must be <= 15 seconds.
- Reference video duration is billed at the same per-second rate as the generated output resolution.
- Reference images, videos and audios must add up to at most 12 files in total.
10Reference audio URLs.
WERYDANCE_2_5 requirements:
- 0~10 reference audios.
- Each audio must be no larger than 15 MB.
- Supported formats: mp3, wav.
- Each audio duration must be [2,30] seconds; total audio duration must be <= 30 seconds.
Other Werydance models: max 3 audios; each 2~15 seconds; total <= 15 seconds. Cannot be used alone without images or videos.
HAILUO_03 requirements:
- Max 3 reference audios.
- Each audio duration must be [2,15] seconds; total audio duration must be <= 15 seconds.
- Free of charge. Cannot be used alone without
imagesorvideos. - Reference images, videos and audios must add up to at most 12 files in total.
10Video aspect ratio. Refer to the model table above for supported values per model.
"16:9"
Video resolution. Supported values: 480p, 720p. For Werydance and Seedance 2.x models, 2.5 supports up to 1080p; 2.0 supports up to 4k. Mini and Fast variants do not support 1080p or 4k. HAILUO_03 supports 768p, 2k, 4k.
"720p"
Whether to generate audio. Enter true or false manually.
HAILUO_03 always generates synchronized audio natively; this parameter is ignored.
"false"
Number of videos to generate (1~4).
1, 2, 3, 4 Callback URL
Caller ID
