curl --request POST \
--url https://api.deapi.ai/api/v2/videos/animations/price \
--header 'Accept: <accept>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"width": 512,
"height": 512,
"frames": 120,
"fps": 30,
"model": "Ltxv_13B_0_9_8_Distilled_FP8",
"steps": 1
}
'import requests
url = "https://api.deapi.ai/api/v2/videos/animations/price"
payload = {
"width": 512,
"height": 512,
"frames": 120,
"fps": 30,
"model": "Ltxv_13B_0_9_8_Distilled_FP8",
"steps": 1
}
headers = {
"Accept": "<accept>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Accept: '<accept>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
width: 512,
height: 512,
frames: 120,
fps: 30,
model: 'Ltxv_13B_0_9_8_Distilled_FP8',
steps: 1
})
};
fetch('https://api.deapi.ai/api/v2/videos/animations/price', 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.deapi.ai/api/v2/videos/animations/price",
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([
'width' => 512,
'height' => 512,
'frames' => 120,
'fps' => 30,
'model' => 'Ltxv_13B_0_9_8_Distilled_FP8',
'steps' => 1
]),
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"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.deapi.ai/api/v2/videos/animations/price"
payload := strings.NewReader("{\n \"width\": 512,\n \"height\": 512,\n \"frames\": 120,\n \"fps\": 30,\n \"model\": \"Ltxv_13B_0_9_8_Distilled_FP8\",\n \"steps\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Accept", "<accept>")
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.deapi.ai/api/v2/videos/animations/price")
.header("Accept", "<accept>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"width\": 512,\n \"height\": 512,\n \"frames\": 120,\n \"fps\": 30,\n \"model\": \"Ltxv_13B_0_9_8_Distilled_FP8\",\n \"steps\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deapi.ai/api/v2/videos/animations/price")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Accept"] = '<accept>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"width\": 512,\n \"height\": 512,\n \"frames\": 120,\n \"fps\": 30,\n \"model\": \"Ltxv_13B_0_9_8_Distilled_FP8\",\n \"steps\": 1\n}"
response = http.request(request)
puts response.read_body{
"data": {
"price": 0.15,
"is_estimated": false,
"estimate_basis": "request_params"
}
}{
"data": {},
"message": "<string>",
"errors": [
"<unknown>"
],
"statusCode": 123
}{
"data": {},
"message": "<string>",
"errors": [
"<unknown>"
],
"statusCode": 123
}{
"message": "The selected model does not support Text To Image.",
"errors": {
"model": [
"This model is not available on your plan. Please upgrade to access it."
]
}
}{
"message": "Too Many Attempts."
}Video Animation Price Calculation
Estimate the price of an image-to-video animation request.
curl --request POST \
--url https://api.deapi.ai/api/v2/videos/animations/price \
--header 'Accept: <accept>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"width": 512,
"height": 512,
"frames": 120,
"fps": 30,
"model": "Ltxv_13B_0_9_8_Distilled_FP8",
"steps": 1
}
'import requests
url = "https://api.deapi.ai/api/v2/videos/animations/price"
payload = {
"width": 512,
"height": 512,
"frames": 120,
"fps": 30,
"model": "Ltxv_13B_0_9_8_Distilled_FP8",
"steps": 1
}
headers = {
"Accept": "<accept>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Accept: '<accept>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
width: 512,
height: 512,
frames: 120,
fps: 30,
model: 'Ltxv_13B_0_9_8_Distilled_FP8',
steps: 1
})
};
fetch('https://api.deapi.ai/api/v2/videos/animations/price', 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.deapi.ai/api/v2/videos/animations/price",
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([
'width' => 512,
'height' => 512,
'frames' => 120,
'fps' => 30,
'model' => 'Ltxv_13B_0_9_8_Distilled_FP8',
'steps' => 1
]),
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"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.deapi.ai/api/v2/videos/animations/price"
payload := strings.NewReader("{\n \"width\": 512,\n \"height\": 512,\n \"frames\": 120,\n \"fps\": 30,\n \"model\": \"Ltxv_13B_0_9_8_Distilled_FP8\",\n \"steps\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Accept", "<accept>")
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.deapi.ai/api/v2/videos/animations/price")
.header("Accept", "<accept>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"width\": 512,\n \"height\": 512,\n \"frames\": 120,\n \"fps\": 30,\n \"model\": \"Ltxv_13B_0_9_8_Distilled_FP8\",\n \"steps\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deapi.ai/api/v2/videos/animations/price")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Accept"] = '<accept>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"width\": 512,\n \"height\": 512,\n \"frames\": 120,\n \"fps\": 30,\n \"model\": \"Ltxv_13B_0_9_8_Distilled_FP8\",\n \"steps\": 1\n}"
response = http.request(request)
puts response.read_body{
"data": {
"price": 0.15,
"is_estimated": false,
"estimate_basis": "request_params"
}
}{
"data": {},
"message": "<string>",
"errors": [
"<unknown>"
],
"statusCode": 123
}{
"data": {},
"message": "<string>",
"errors": [
"<unknown>"
],
"statusCode": 123
}{
"message": "The selected model does not support Text To Image.",
"errors": {
"model": [
"This model is not available on your plan. Please upgrade to access it."
]
}
}{
"message": "Too Many Attempts."
}Authorizations
Sanctum personal access token, sent as Authorization: Bearer <token>. The token is opaque — it carries no claims and no embedded expiry, so do not attempt to decode it. Issue and revoke tokens from your account dashboard.
Headers
application/json Body
Image to video price calculation parameters
Every example in this schema is a working set for the model example shown — they are not defaults and not portable. Sizes, step counts, frame counts and frame rates are all per-model: read info.limits and info.defaults for the model you actually intend to use from GET /api/v2/models. Substituting a different model while keeping these values is the most common source of a 422.
Width of the generated video in pixels. The accepted range is model-specific — read info.limits.min_width/max_width and min_height/max_height for your model from GET /api/v2/models. Some models also publish dimension_multiple or resolution_step: values are snapped DOWN to that grid before validation, so an off-grid size is silently reduced rather than rejected. max_pixels and max_ratio, where present, cap total area and aspect ratio on top of the per-side bounds.
512
Height of the generated video in pixels. The accepted range is model-specific — read info.limits.min_width/max_width and min_height/max_height for your model from GET /api/v2/models. Some models also publish dimension_multiple or resolution_step: values are snapped DOWN to that grid before validation, so an off-grid size is silently reduced rather than rejected. max_pixels and max_ratio, where present, cap total area and aspect ratio on top of the per-side bounds.
512
Number of video frames to generate. The accepted range is model-specific — read info.limits.min_frames/max_frames for your model from GET /api/v2/models; a value outside it is rejected with 422.
120
FPS of the generated video. The model dictates the value: read info.defaults.fps for your model from GET /api/v2/models. Where min_fps equals max_fps that is the only accepted value; anything outside the range is rejected with 422.
30
The model to use for video generation. Available models can be retrieved via the GET /api/v2/models endpoint.
"Ltxv_13B_0_9_8_Distilled_FP8"
Number of inference steps. Required when the model publishes step bounds: send it if info.limits.min_steps / max_steps or info.defaults.steps is present for your model in GET /api/v2/models, and stay inside that range. Key off those fields rather than info.features.supports_steps, which some models omit while still using steps.
1
Response
Calculated price for img2video inference.
Show child attributes
Show child attributes
Was this page helpful?