Submit Multi-Image-to-Video Task
curl --request POST \
--url https://api.weryai.com/v1/generation/multi-image-to-video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "WERYAI_VIDEO_1_0",
"prompt": "Create a smooth transition between these images",
"images": [
"https://example.com/image1.jpg",
"https://example.com/image2.jpg"
],
"video_number": 4,
"aspect_ratio": "16:9",
"duration": 5,
"generate_audio": false
}
'import requests
url = "https://api.weryai.com/v1/generation/multi-image-to-video"
payload = {
"model": "WERYAI_VIDEO_1_0",
"prompt": "Create a smooth transition between these images",
"images": ["https://example.com/image1.jpg", "https://example.com/image2.jpg"],
"video_number": 4,
"aspect_ratio": "16:9",
"duration": 5,
"generate_audio": False
}
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: 'WERYAI_VIDEO_1_0',
prompt: 'Create a smooth transition between these images',
images: ['https://example.com/image1.jpg', 'https://example.com/image2.jpg'],
video_number: 4,
aspect_ratio: '16:9',
duration: 5,
generate_audio: false
})
};
fetch('https://api.weryai.com/v1/generation/multi-image-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/multi-image-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' => 'WERYAI_VIDEO_1_0',
'prompt' => 'Create a smooth transition between these images',
'images' => [
'https://example.com/image1.jpg',
'https://example.com/image2.jpg'
],
'video_number' => 4,
'aspect_ratio' => '16:9',
'duration' => 5,
'generate_audio' => false
]),
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/multi-image-to-video"
payload := strings.NewReader("{\n \"model\": \"WERYAI_VIDEO_1_0\",\n \"prompt\": \"Create a smooth transition between these images\",\n \"images\": [\n \"https://example.com/image1.jpg\",\n \"https://example.com/image2.jpg\"\n ],\n \"video_number\": 4,\n \"aspect_ratio\": \"16:9\",\n \"duration\": 5,\n \"generate_audio\": false\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/multi-image-to-video")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"WERYAI_VIDEO_1_0\",\n \"prompt\": \"Create a smooth transition between these images\",\n \"images\": [\n \"https://example.com/image1.jpg\",\n \"https://example.com/image2.jpg\"\n ],\n \"video_number\": 4,\n \"aspect_ratio\": \"16:9\",\n \"duration\": 5,\n \"generate_audio\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.weryai.com/v1/generation/multi-image-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\": \"WERYAI_VIDEO_1_0\",\n \"prompt\": \"Create a smooth transition between these images\",\n \"images\": [\n \"https://example.com/image1.jpg\",\n \"https://example.com/image2.jpg\"\n ],\n \"video_number\": 4,\n \"aspect_ratio\": \"16:9\",\n \"duration\": 5,\n \"generate_audio\": false\n}"
response = http.request(request)
puts response.read_body{
"status": 0,
"desc": "success",
"message": "success",
"data": {
"batch_id": 123456789,
"task_ids": [
"task_abc123"
]
}
}{
"status": 1001,
"desc": "Parameter error",
"message": "Prompt cannot be empty"
}{
"status": 1002,
"desc": "Authentication failed",
"message": "Invalid API Key"
}Video Generation
Submit Multi-Image-to-Video Task
Generate videos based on multiple reference images and text prompts
POST
/
v1
/
generation
/
multi-image-to-video
Submit Multi-Image-to-Video Task
curl --request POST \
--url https://api.weryai.com/v1/generation/multi-image-to-video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "WERYAI_VIDEO_1_0",
"prompt": "Create a smooth transition between these images",
"images": [
"https://example.com/image1.jpg",
"https://example.com/image2.jpg"
],
"video_number": 4,
"aspect_ratio": "16:9",
"duration": 5,
"generate_audio": false
}
'import requests
url = "https://api.weryai.com/v1/generation/multi-image-to-video"
payload = {
"model": "WERYAI_VIDEO_1_0",
"prompt": "Create a smooth transition between these images",
"images": ["https://example.com/image1.jpg", "https://example.com/image2.jpg"],
"video_number": 4,
"aspect_ratio": "16:9",
"duration": 5,
"generate_audio": False
}
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: 'WERYAI_VIDEO_1_0',
prompt: 'Create a smooth transition between these images',
images: ['https://example.com/image1.jpg', 'https://example.com/image2.jpg'],
video_number: 4,
aspect_ratio: '16:9',
duration: 5,
generate_audio: false
})
};
fetch('https://api.weryai.com/v1/generation/multi-image-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/multi-image-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' => 'WERYAI_VIDEO_1_0',
'prompt' => 'Create a smooth transition between these images',
'images' => [
'https://example.com/image1.jpg',
'https://example.com/image2.jpg'
],
'video_number' => 4,
'aspect_ratio' => '16:9',
'duration' => 5,
'generate_audio' => false
]),
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/multi-image-to-video"
payload := strings.NewReader("{\n \"model\": \"WERYAI_VIDEO_1_0\",\n \"prompt\": \"Create a smooth transition between these images\",\n \"images\": [\n \"https://example.com/image1.jpg\",\n \"https://example.com/image2.jpg\"\n ],\n \"video_number\": 4,\n \"aspect_ratio\": \"16:9\",\n \"duration\": 5,\n \"generate_audio\": false\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/multi-image-to-video")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"WERYAI_VIDEO_1_0\",\n \"prompt\": \"Create a smooth transition between these images\",\n \"images\": [\n \"https://example.com/image1.jpg\",\n \"https://example.com/image2.jpg\"\n ],\n \"video_number\": 4,\n \"aspect_ratio\": \"16:9\",\n \"duration\": 5,\n \"generate_audio\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.weryai.com/v1/generation/multi-image-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\": \"WERYAI_VIDEO_1_0\",\n \"prompt\": \"Create a smooth transition between these images\",\n \"images\": [\n \"https://example.com/image1.jpg\",\n \"https://example.com/image2.jpg\"\n ],\n \"video_number\": 4,\n \"aspect_ratio\": \"16:9\",\n \"duration\": 5,\n \"generate_audio\": false\n}"
response = http.request(request)
puts response.read_body{
"status": 0,
"desc": "success",
"message": "success",
"data": {
"batch_id": 123456789,
"task_ids": [
"task_abc123"
]
}
}{
"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
application/json
Model Key. Supported models for multi-image-to-video:
| Model Name | Model Key |
|---|---|
| Veo 3.1 | VEO_3_1 |
| Werydance 2.0 | WERYDANCE_2_0 |
| Werydance 2.0 Mini | WERYDANCE_2_0_MINI |
| Werydance 2.0 Fast | WERYDANCE_2_0_FAST |
| Kling O1 | KLING_O1 |
| Pika 2.2 | PIKA_2_2 |
| Google Omni Flash | GOOGLE_GEMINI_OMNI_FLASH |
| Seedance 1.0 Lite | DOUBAO_1_LITE |
Example:
"WERYAI_VIDEO_1_0"
Positive text prompt
Required string length:
1 - 2000Example:
"Create a smooth transition between these images"
Reference image list (maximum 3 images, supports jpg, jpeg, png, webp)
Maximum array length:
3Example:
[
"https://example.com/image1.jpg",
"https://example.com/image2.jpg"
]
Video aspect ratio
Example:
"16:9"
Video duration (seconds)
Example:
5
Negative text prompt
Maximum string length:
1000Number of videos to generate (1~4).
Available options:
1, 2, 3, 4 Video resolution. Supported values per model:
| Model Name | Model Key | Supported Resolutions |
|---|---|---|
| Veo 3.1 | VEO_3_1 | 720p 1080p |
| Werydance 2.0 | WERYDANCE_2_0 | 480p 720p 1080p |
| Werydance 2.0 Mini | WERYDANCE_2_0_MINI | 480p 720p |
| Werydance 2.0 Fast | WERYDANCE_2_0_FAST | 480p 720p |
| Pika 2.2 | PIKA_2_2 | 720p 1080p |
| Seedance 1.0 Lite | DOUBAO_1_LITE | 480p 720p |
Whether to generate audio. Enter true or false manually. Only supported by the following models:
| Model Name | Model Key |
|---|---|
| Veo 3.1 | VEO_3_1 |
| Werydance 2.0 | WERYDANCE_2_0 |
| Werydance 2.0 Mini | WERYDANCE_2_0_MINI |
| Werydance 2.0 Fast | WERYDANCE_2_0_FAST |
| Google Omni Flash | GOOGLE_GEMINI_OMNI_FLASH |
Example:
"false"
Callback URL
Caller ID
⌘I
