curl --request POST \
--url https://api.ekly.ai/v1/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"duration_seconds": 5,
"model": "seedance-2-5-fal",
"prompt": "A slow aerial shot over a misty pine forest at dawn",
"tier": "720p"
}
'import requests
url = "https://api.ekly.ai/v1/videos"
payload = {
"duration_seconds": 5,
"model": "seedance-2-5-fal",
"prompt": "A slow aerial shot over a misty pine forest at dawn",
"tier": "720p"
}
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({
duration_seconds: 5,
model: 'seedance-2-5-fal',
prompt: 'A slow aerial shot over a misty pine forest at dawn',
tier: '720p'
})
};
fetch('https://api.ekly.ai/v1/videos', 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.ekly.ai/v1/videos",
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([
'duration_seconds' => 5,
'model' => 'seedance-2-5-fal',
'prompt' => 'A slow aerial shot over a misty pine forest at dawn',
'tier' => '720p'
]),
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.ekly.ai/v1/videos"
payload := strings.NewReader("{\n \"duration_seconds\": 5,\n \"model\": \"seedance-2-5-fal\",\n \"prompt\": \"A slow aerial shot over a misty pine forest at dawn\",\n \"tier\": \"720p\"\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.ekly.ai/v1/videos")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"duration_seconds\": 5,\n \"model\": \"seedance-2-5-fal\",\n \"prompt\": \"A slow aerial shot over a misty pine forest at dawn\",\n \"tier\": \"720p\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ekly.ai/v1/videos")
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 \"duration_seconds\": 5,\n \"model\": \"seedance-2-5-fal\",\n \"prompt\": \"A slow aerial shot over a misty pine forest at dawn\",\n \"tier\": \"720p\"\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2023-11-07T05:31:56Z",
"id": "6f1c2d3e-9a0b-4c7d-8e1f-2a3b4c5d6e7f",
"model": "seedance-2-5-fal",
"prompt": "<string>",
"status": "pending",
"type": "image",
"completed_at": "2023-11-07T05:31:56Z",
"credits_charged": 123,
"error": {
"code": "<string>",
"message": "<string>"
},
"idempotency_key": "<string>",
"outputs": [
{
"url": "<string>",
"asset_id": "<string>",
"content_type": "video/mp4",
"duration_seconds": 123,
"height": 123,
"width": 123
}
]
}{
"error": {
"code": "unauthenticated",
"message": "This API key is not valid. Create a new one in Settings → Team.",
"trace_id": "c3746d5302dc4be6b2e8fa99fa762a8c"
}
}{
"error": {
"code": "payment_required",
"message": "Insufficient credits: this generation needs 39.6 credits and 12.0 are available.",
"trace_id": "c3746d5302dc4be6b2e8fa99fa762a8c"
}
}{
"error": {
"code": "forbidden",
"message": "API keys can only call the /v1 API.",
"trace_id": "c3746d5302dc4be6b2e8fa99fa762a8c"
}
}{
"error": {
"code": "conflict",
"message": "This idempotency key was already used with a different request.",
"trace_id": "c3746d5302dc4be6b2e8fa99fa762a8c"
}
}{
"error": {
"code": "validation_error",
"details": [
{
"loc": [
"body",
"model"
],
"msg": "Field required",
"type": "missing"
}
],
"message": "Request validation failed.",
"trace_id": "c3746d5302dc4be6b2e8fa99fa762a8c"
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded; retry after 12s.",
"trace_id": "c3746d5302dc4be6b2e8fa99fa762a8c"
}
}Generate a video
Submits a video generation from a prompt, a first/last frame, reference media, an earlier generation (source_generation_id, to extend it) or a character image plus motion video (motion-control models). GET /v1/models/{id} lists the inputs each mode needs; reference inputs take asset ids. Returns immediately with status: pending; credits are reserved now and settled when the job finishes. Poll GET /v1/generations/{id} until completed or failed.
curl --request POST \
--url https://api.ekly.ai/v1/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"duration_seconds": 5,
"model": "seedance-2-5-fal",
"prompt": "A slow aerial shot over a misty pine forest at dawn",
"tier": "720p"
}
'import requests
url = "https://api.ekly.ai/v1/videos"
payload = {
"duration_seconds": 5,
"model": "seedance-2-5-fal",
"prompt": "A slow aerial shot over a misty pine forest at dawn",
"tier": "720p"
}
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({
duration_seconds: 5,
model: 'seedance-2-5-fal',
prompt: 'A slow aerial shot over a misty pine forest at dawn',
tier: '720p'
})
};
fetch('https://api.ekly.ai/v1/videos', 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.ekly.ai/v1/videos",
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([
'duration_seconds' => 5,
'model' => 'seedance-2-5-fal',
'prompt' => 'A slow aerial shot over a misty pine forest at dawn',
'tier' => '720p'
]),
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.ekly.ai/v1/videos"
payload := strings.NewReader("{\n \"duration_seconds\": 5,\n \"model\": \"seedance-2-5-fal\",\n \"prompt\": \"A slow aerial shot over a misty pine forest at dawn\",\n \"tier\": \"720p\"\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.ekly.ai/v1/videos")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"duration_seconds\": 5,\n \"model\": \"seedance-2-5-fal\",\n \"prompt\": \"A slow aerial shot over a misty pine forest at dawn\",\n \"tier\": \"720p\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ekly.ai/v1/videos")
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 \"duration_seconds\": 5,\n \"model\": \"seedance-2-5-fal\",\n \"prompt\": \"A slow aerial shot over a misty pine forest at dawn\",\n \"tier\": \"720p\"\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2023-11-07T05:31:56Z",
"id": "6f1c2d3e-9a0b-4c7d-8e1f-2a3b4c5d6e7f",
"model": "seedance-2-5-fal",
"prompt": "<string>",
"status": "pending",
"type": "image",
"completed_at": "2023-11-07T05:31:56Z",
"credits_charged": 123,
"error": {
"code": "<string>",
"message": "<string>"
},
"idempotency_key": "<string>",
"outputs": [
{
"url": "<string>",
"asset_id": "<string>",
"content_type": "video/mp4",
"duration_seconds": 123,
"height": 123,
"width": 123
}
]
}{
"error": {
"code": "unauthenticated",
"message": "This API key is not valid. Create a new one in Settings → Team.",
"trace_id": "c3746d5302dc4be6b2e8fa99fa762a8c"
}
}{
"error": {
"code": "payment_required",
"message": "Insufficient credits: this generation needs 39.6 credits and 12.0 are available.",
"trace_id": "c3746d5302dc4be6b2e8fa99fa762a8c"
}
}{
"error": {
"code": "forbidden",
"message": "API keys can only call the /v1 API.",
"trace_id": "c3746d5302dc4be6b2e8fa99fa762a8c"
}
}{
"error": {
"code": "conflict",
"message": "This idempotency key was already used with a different request.",
"trace_id": "c3746d5302dc4be6b2e8fa99fa762a8c"
}
}{
"error": {
"code": "validation_error",
"details": [
{
"loc": [
"body",
"model"
],
"msg": "Field required",
"type": "missing"
}
],
"message": "Request validation failed.",
"trace_id": "c3746d5302dc4be6b2e8fa99fa762a8c"
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded; retry after 12s.",
"trace_id": "c3746d5302dc4be6b2e8fa99fa762a8c"
}
}Authorizations
An organization API key created in Settings → Team, sent as Authorization: Bearer <key>.
Headers
Reuse the same value when retrying the same request; a repeat returns the original generation without charging again. Reusing it with a different body returns 409.
128Body
Generate a video. The same endpoint covers text-, image- and reference-driven generation, video extension (source_generation_id) and motion control (a motion-control model with character_image and motion_video). GET /v1/models/{id} lists which inputs each mode needs.
Requested aspect ratio (e.g. 16:9)
Asset id from POST /v1/uploads or a generation output's asset_id. Audio file URL for audio-to-video models like Wan 2.2 InfiniteTalk
Audio duration in seconds for per-second credit calculation (Wan 2.2 InfiniteTalk)
Kling V3/O3 CFG scale (0-1) controlling prompt adherence
When image has multiple people, select which character (0 = leftmost)
0 <= x <= 10Asset id from POST /v1/uploads or a generation output's asset_id. URL of the character/avatar image whose appearance will be preserved. Character must have clear body proportions, no occlusion, and occupy >5% of image area.
'image' (match person orientation, max 10s output) or 'video' (match reference video orientation, max 30s output)
Topaz Precision compression-artifact removal, 0-1
Requested duration seconds (5-8 for veo-2)
Asset id from POST /v1/uploads or a generation output's asset_id. List of image URLs for Kling multi-image video generation
Kling V3/O3 elements (characters/objects) to reference as @Element1, @Element2
Topaz enhancement model (e.g. 'Proteus', 'Starlight Precise 2.6')
64Asset id from POST /v1/uploads or a generation output's asset_id. Face image URL for talking avatar models like Wan 2.2 InfiniteTalk
Asset id from POST /v1/uploads or a generation output's asset_id. First frame URL for video generation based on start/end frames
Wan output frame rate
4 <= x <= 60Enable audio generation for Veo 3+ models (default: true for Veo 3+)
Topaz Precision film grain, 0-0.1
Topaz Precision halo reduction, 0-1
Client-supplied non-whitespace key (1-128 chars); an identical retry returns the original generation without re-charging
1 - 128^\S+$Preserve source-video audio in Kling O3 video-to-video modes
Preserve audio from the reference video
Asset id from POST /v1/uploads or a generation output's asset_id. FLUX.3 keyframes with exact 24 fps timeline positions
Show child attributes
Show child attributes
Asset id from POST /v1/uploads or a generation output's asset_id. Last frame URL for video generation based on start/end frames
Generation mode id declared by a matrix video model
Video model identifier (veo-3.1-generate-001, wan-2.2-infinitetalk-fal, etc.)
Asset id from POST /v1/uploads or a generation output's asset_id. URL of the reference video containing the motion to transfer. Must show realistic character with entire/upper body visible including head, without obstruction.
Kling V3/O3 multi-shot prompts; list of {prompt, duration} shots
Optional negative prompt
Topaz Precision noise reduction, 0-1
Wan output frame count
40 <= x <= 120Must be a multiple of 4Gemini Omni Flash only: chain this generation onto a previous Omni interaction (result_meta.interaction_id) for conversational video editing
256Project scope for the generated asset (optional)
Text prompt for video generation (optional for audio-to-video models like Wan 2.2)
Video quality setting (high, medium, low, std, pro)
Topaz Precision original-detail recovery, 0-1
Asset id from POST /v1/uploads or a generation output's asset_id. Reference audio URLs; model-specific limits and visual-reference requirements come from the video catalog
Asset id from POST /v1/uploads or a generation output's asset_id. Single reference image URL for Kling reference tab
Asset id from POST /v1/uploads or a generation output's asset_id. List of reference image URLs for image-to-video generation
User-facing aliases for Seedance references, keyed by reference_images/reference_videos/reference_audios
Show child attributes
Show child attributes
Asset id from POST /v1/uploads or a generation output's asset_id. Reference video URLs; model-specific limits come from the video catalog
Wan output resolution
480p, 580p, 720p Kling V3/O3 multi-shot structure: 'customize' or 'intelligent'
Topaz Starlight Precise 2.6 softness, 1 (sharpest) to 5 (softest)
Completed source video generation id (same value as get_generation.generation_id)
Asset id from POST /v1/uploads or a generation output's asset_id. Source/reference video URL for Kling O3 edit/restyle modes
Quality or resolution tier id declared by a matrix video model
Speed/quality variant declared by the model's variant parameter (e.g. P-Video 2 Pro: speed, quality, cost); priced by the model's credit matrix
64Response
Successful Response
One generation. Poll GET /v1/generations/{id} until status is completed or failed.
"6f1c2d3e-9a0b-4c7d-8e1f-2a3b4c5d6e7f"
"seedance-2-5-fal"
pending, completed, failed image, video, audio Credits actually charged; null while pending.
Show child attributes
Show child attributes
Show child attributes
Show child attributes