curl --request POST \
--url https://api.weryai.com/v1/generation/text-to-video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "WERYAI_VIDEO_1_0",
"prompt": "A cat walking in a garden",
"negative_prompt": "low quality",
"video_number": 4,
"aspect_ratio": "16:9",
"duration": 5,
"generate_audio": false
}
'import requests
url = "https://api.weryai.com/v1/generation/text-to-video"
payload = {
"model": "WERYAI_VIDEO_1_0",
"prompt": "A cat walking in a garden",
"negative_prompt": "low quality",
"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: 'A cat walking in a garden',
negative_prompt: 'low quality',
video_number: 4,
aspect_ratio: '16:9',
duration: 5,
generate_audio: false
})
};
fetch('https://api.weryai.com/v1/generation/text-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/text-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' => 'A cat walking in a garden',
'negative_prompt' => 'low quality',
'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/text-to-video"
payload := strings.NewReader("{\n \"model\": \"WERYAI_VIDEO_1_0\",\n \"prompt\": \"A cat walking in a garden\",\n \"negative_prompt\": \"low quality\",\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/text-to-video")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"WERYAI_VIDEO_1_0\",\n \"prompt\": \"A cat walking in a garden\",\n \"negative_prompt\": \"low quality\",\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/text-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\": \"A cat walking in a garden\",\n \"negative_prompt\": \"low quality\",\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"
}Submit Text-to-Video Task
Generate videos based on text prompts
curl --request POST \
--url https://api.weryai.com/v1/generation/text-to-video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "WERYAI_VIDEO_1_0",
"prompt": "A cat walking in a garden",
"negative_prompt": "low quality",
"video_number": 4,
"aspect_ratio": "16:9",
"duration": 5,
"generate_audio": false
}
'import requests
url = "https://api.weryai.com/v1/generation/text-to-video"
payload = {
"model": "WERYAI_VIDEO_1_0",
"prompt": "A cat walking in a garden",
"negative_prompt": "low quality",
"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: 'A cat walking in a garden',
negative_prompt: 'low quality',
video_number: 4,
aspect_ratio: '16:9',
duration: 5,
generate_audio: false
})
};
fetch('https://api.weryai.com/v1/generation/text-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/text-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' => 'A cat walking in a garden',
'negative_prompt' => 'low quality',
'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/text-to-video"
payload := strings.NewReader("{\n \"model\": \"WERYAI_VIDEO_1_0\",\n \"prompt\": \"A cat walking in a garden\",\n \"negative_prompt\": \"low quality\",\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/text-to-video")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"WERYAI_VIDEO_1_0\",\n \"prompt\": \"A cat walking in a garden\",\n \"negative_prompt\": \"low quality\",\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/text-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\": \"A cat walking in a garden\",\n \"negative_prompt\": \"low quality\",\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
Model Key. Supported models for text-to-video:
| Model Name | Model Key | Supported Aspect Ratios | Supported Durations (s) |
|---|---|---|---|
| WeryAI Video 1.0 | WERYAI_VIDEO_1_0 | 9:16 1:1 16:9 | 4~15 |
| Veo 3.1 | VEO_3_1 | 9:16 16:9 | 8 |
| Veo 3.1 Fast | VEO_3_1_FAST | 9:16 16:9 | 8 |
| Sora 2 | SORA_2 | 9:16 16:9 | 4, 8, 12 |
| Sora 2 Pro | SORA_2_PRO | 9:16 16:9 | 4, 8, 12 |
| Werydance 2.5 | WERYDANCE_2_5 | adaptive 16:9 4:3 1:1 3:4 9:16 21:9 | 4~30 |
| 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 |
| Seedance 1.5 Pro | DOUBAO_1_5_PRO | 9:16 16:9 4:3 3:4 1:1 21:9 | 5, 10 |
| Kling 3.0 Standard | KLING_V3_0_STA | 9:16 1:1 16:9 | 5, 10, 15 |
| Kling 3.0 Pro | KLING_V3_0_PRO | 9:16 1:1 16:9 | 5, 10, 15 |
| Kling 2.6 Pro | KLING_V2_6_PRO | 9:16 1:1 16:9 | 5, 10 |
| Vidu Q3 | VIDU_Q3 | 9:16 3:4 1:1 4:3 16:9 | 5, 10, 15 |
| Wan 2.6 | WAN_2_6 | 9:16 4:3 1:1 3:4 16:9 | 5, 10, 15 |
| Veo 3 | VEO_3 | 9:16 16:9 | 8 |
| Veo 3 Fast | VEO_3_FAST | 9:16 16:9 | 8 |
| Google Omni Flash | GOOGLE_GEMINI_OMNI_FLASH | 9:16 16:9 | 3~10 |
| Pika 2.2 | PIKA_2_2 | - | 5, 10 |
| Pixverse V6 | PIXVERSE_V6 | 9:16 4:3 1:1 3:4 16:9 2:3 3:2 21:9 | 1~15 |
| MiniMax H3 | HAILUO_03 | 21:9 16:9 4:3 1:1 3:4 9:16 | 5~15 |
| Hailuo 2.3 Standard | HAILUO_2_3_STA | - | 6, 10 |
| Hailuo 2.3 Pro | HAILUO_2_3_PRO | - | 5 |
| Seedance 1.0 Pro Fast | DOUBAO_1_PRO_FAST | 9:16 16:9 4:3 3:4 1:1 21:9 | 5, 10 |
| Seedance 1.0 Lite | DOUBAO_1_LITE | 9:16 1:1 16:9 | 4~15 |
| Seedance 1.0 Pro | DOUBAO | 9:16 16:9 4:3 3:4 1:1 21:9 | 5, 10 |
| Kling 2.5 Turbo | KLING_V2_5_TURBO | - | 5, 10 |
| Wan 2.5 | WAN_2_5 | 9:16 16:9 1:1 | 5, 10 |
| Dreamina 3.0 Pro | DREAMINA_3_PRO | 9:16 4:3 3:4 1:1 16:9 21:9 | 5, 10 |
| Dreamina 3.0 | DREAMINA_3 | 9:16 4:3 3:4 1:1 16:9 21:9 | 5, 10 |
| Grok Imagine Video | GROK_IMAGINE_VIDEO | 9:16 1:1 16:9 4:3 3:2 2:3 3:4 | 5, 10, 15 |
"WERYAI_VIDEO_1_0"
Positive text prompt
1 - 2000"A cat walking in a garden"
Video aspect ratio. Refer to the model table above for supported values per model. Models marked with - do not support aspect ratio selection.
"16:9"
Video duration in seconds. Refer to the model table above for supported values per model.
5
Negative text prompt. Only supported by the following models:
| Model Name | Model Key |
|---|---|
| Kling 3.0 Standard | KLING_V3_0_STA |
| Kling 3.0 Pro | KLING_V3_0_PRO |
| Kling 2.6 Pro | KLING_V2_6_PRO |
| Kling 2.5 Turbo | KLING_V2_5_TURBO |
| Wan 2.6 | WAN_2_6 |
| Pika 2.2 | PIKA_2_2 |
| Pixverse V6 | PIXVERSE_V6 |
1000Number of videos to generate (1~4).
1, 2, 3, 4 Video resolution. Supported values per model. 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.
| Model Name | Model Key | Supported Resolutions |
|---|---|---|
| WeryAI Video 1.0 | WERYAI_VIDEO_1_0 | 480p 720p |
| Veo 3.1 | VEO_3_1 | 720p 1080p |
| Veo 3.1 Fast | VEO_3_1_FAST | 720p 1080p |
| Sora 2 | SORA_2 | 720p |
| Sora 2 Pro | SORA_2_PRO | 720p 1080p |
| Werydance 2.5 | WERYDANCE_2_5 | 480p 720p 1080p |
| Seedance 2.5 | SEEDANCE_2_5 | 480p 720p 1080p |
| Werydance 2.0 | WERYDANCE_2_0 | 480p 720p 1080p 4k |
| Seedance 2.0 | SEEDANCE_2_0 | 480p 720p 1080p 4k |
| Werydance 2.0 Mini | WERYDANCE_2_0_MINI | 480p 720p |
| Werydance 2.0 Fast | WERYDANCE_2_0_FAST | 480p 720p |
| Seedance 1.5 Pro | DOUBAO_1_5_PRO | 480p 720p 1080p |
| Vidu Q3 | VIDU_Q3 | 360p 540p 720p 1080p |
| Wan 2.6 | WAN_2_6 | 720p 1080p |
| Veo 3 | VEO_3 | 720p 1080p |
| Veo 3 Fast | VEO_3_FAST | 720p 1080p |
| Pika 2.2 | PIKA_2_2 | 720p 1080p |
| Pixverse V6 | PIXVERSE_V6 | 360p 540p 720p 1080p |
| Seedance 1.0 Pro Fast | DOUBAO_1_PRO_FAST | 480p 720p 1080p |
| Seedance 1.0 Lite | DOUBAO_1_LITE | 480p 720p |
| Seedance 1.0 Pro | DOUBAO | 480p 720p 1080p |
| Wan 2.5 | WAN_2_5 | 480p 720p 1080p |
| Dreamina 3.0 | DREAMINA_3 | 720p 1080p |
| Grok Imagine Video | GROK_IMAGINE_VIDEO | 480p 720p |
| MiniMax H3 | HAILUO_03 | 768p 2k 4k |
"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 |
| Veo 3.1 Fast | VEO_3_1_FAST |
| Werydance 2.5 | WERYDANCE_2_5 |
| Werydance 2.0 | WERYDANCE_2_0 |
| Werydance 2.0 Mini | WERYDANCE_2_0_MINI |
| Werydance 2.0 Fast | WERYDANCE_2_0_FAST |
| Seedance 1.5 Pro | DOUBAO_1_5_PRO |
| Kling 3.0 Standard | KLING_V3_0_STA |
| Kling 3.0 Pro | KLING_V3_0_PRO |
| Kling 2.6 Pro | KLING_V2_6_PRO |
| Vidu Q3 | VIDU_Q3 |
| Veo 3 | VEO_3 |
| Veo 3 Fast | VEO_3_FAST |
| Google Omni Flash | GOOGLE_GEMINI_OMNI_FLASH |
| Pixverse V6 | PIXVERSE_V6 |
HAILUO_03 always generates synchronized audio natively; this parameter is ignored.
"false"
Callback URL
Caller ID
