—
LTX 2.3 22B — Text to Video with LoRA
Generate video with audio from text using LTX-2.3 and custom LoRA
Input
Add your inputs and customize the generation settings.
Result & Pricing
Video output — your generated video will appear here.
Your video will appear here
Choose your inputs and customize your settings.
Model pricing (tax excluded) per generated video megapixel
| Specification | Webot INR |
|---|---|
| Rate | ₹0.22 |
Calculate credits in the input panel for your selected settings.
Prices, estimates and credit deductions exclude tax. Any applicable tax is charged only when you buy plans or credits.
Detail-pass cost factor: ×4. Prices are converted to INR. Credits use your current plan rate.
- Prices shown are estimates, not final charges. Final billing details will be available in Reports after generation is complete.
API
WEBOT API · Text to Video with LoRA
Generate from your server with your WEBOT account credits.
Use your 120-character WEBOT customer key (a–z, A–Z, 0–9). Send
Authorization: Bearer YOUR_KEY. Keys are secrets: call from a server, never from public frontend code. Results come from verified webhooks and remain saved if your stream disconnects.1. Configure your server
WEBOT_BASE_URL=https://webot.online
WEBOT_API_KEY=<your-server-side-WEBOT-key>This base URL is resolved from verified domain mappings and your direct creator reseller. Forwarded Host headers are not trusted. New custom reseller domains need DNS, TLS and platform verification before activation.
2. Quote, then generate
| Method | Endpoint | Purpose |
|---|---|---|
| POST | https://webot.online/api/v1/models/ltx_2_3_22b_text_to_video_lora/quote | Validate input and calculate credits (no deduction). |
| POST | https://webot.online/api/v1/models/ltx_2_3_22b_text_to_video_lora/requests | Reserve quoted credits and queue an asynchronous job. |
| GET | https://webot.online/api/v1/models/ltx_2_3_22b_text_to_video_lora/requests/{request_id}/result | Read your saved result: 202 pending, 200 terminal. |
| GET | https://webot.online/api/v1/models/ltx_2_3_22b_text_to_video_lora/requests/{request_id}/events | Authenticated SSE: generation / terminal events. |
Send JSON {"input":{…}} to quote. Send the same input plus integer quoted_credits to generate, with Authorization: Bearer … and Idempotency-Key. Use a unique 16–128 character key per new job; persist it and reuse the same key and input on any uncertain response. Never retry with a new key: that creates a second chargeable job.
Credits are reserved only after validation and a durable request is saved. A changed quote or insufficient balance returns 409. Credits exclude purchase taxes. The quoted amount is an initial reservation. After generation, the final charge replaces it using confirmed usage. Any verified unused allocation becomes available automatically; additional usage may require more credits. Missing billing stays pending, including for failed jobs.
3. Input example
Save this as input.json. Replace sample prompts, files and media URLs with your own. Schemas do not guarantee provider acceptance of the content.
{
"loras": [
{
"path": "https://example.com/source.png",
"scale": 1
}
],
"prompt": "Audit sample text",
"video_size": {
"width": 1024,
"height": 576
},
"use_multiscale": false,
"camera_lora": "none",
"negative_prompt": "news broadcast, 3d animation, computer graphics, pc game, console game, video game, cartoon, childish, watermark, logo, text, on screen text, subtitles, titles, signature, slowmo, static",
"enable_prompt_expansion": true,
"num_frames": 121,
"video_cfg_scale": 3,
"scheduler": "ltx2",
"enable_safety_checker": true,
"video_rescaling_scale": 0.7,
"fps": 24,
"audio_stg_scale": 0,
"sync_mode": false,
"generate_audio": true,
"use_restart_sampling": false,
"video_quality": "high",
"gradient_estimation_gamma": 2,
"video_modality_scale": 3,
"num_inference_steps": 40,
"acceleration": "regular",
"video_output_type": "X264 (.mp4)",
"audio_modality_scale": 3,
"camera_lora_scale": 1,
"video_write_mode": "balanced",
"video_stg_scale": 0,
"audio_rescaling_scale": 0.7,
"distill_lora_first_pass_scale": 0.2,
"audio_cfg_scale": 7,
"distill_lora_second_pass_scale": 0.5
}4. Language examples
# Save the model's example input as input.json, then replace prompts/media URLs.
# Requires curl and jq. Store NONCE once for this job; reuse it on any retry.
export NONCE="$(openssl rand -hex 16)"
BASE="${WEBOT_BASE_URL%/}"
jq -n --slurpfile input input.json '{input:$input[0]}' > quote-body.json
curl --fail-with-body -sS "$BASE/api/v1/models/ltx_2_3_22b_text_to_video_lora/quote" \
-H "Authorization: Bearer $WEBOT_API_KEY" -H 'Content-Type: application/json' \
--data-binary @quote-body.json > quote.json
CREDITS=$(jq -er '.quote.credits_consumed' quote.json)
jq --argjson credits "$CREDITS" '. + {quoted_credits:$credits}' quote-body.json > request-body.json
curl --fail-with-body -sS "$BASE/api/v1/models/ltx_2_3_22b_text_to_video_lora/requests" \
-H "Authorization: Bearer $WEBOT_API_KEY" -H "Idempotency-Key: $NONCE" \
-H 'Content-Type: application/json' --data-binary @request-body.json > job.json
# Subscribe; after a nonterminal disconnect, reconnect this SAME URL.
curl --fail-with-body -N "$(jq -er '.events_url' job.json)" -H "Authorization: Bearer $WEBOT_API_KEY"
# Read saved output after terminal notification (never call provider status/results).
curl --fail-with-body -sS "$(jq -er '.result_url' job.json)" -H "Authorization: Bearer $WEBOT_API_KEY"// Node.js 18+. Save your customized input in input.json.
import { readFileSync } from 'node:fs';
import { randomUUID } from 'node:crypto';
const base = process.env.WEBOT_BASE_URL.replace(/\/$/, '');
const key = process.env.WEBOT_API_KEY;
const input = JSON.parse(readFileSync('input.json', 'utf8'));
const nonce = process.env.WEBOT_JOB_NONCE || randomUUID(); // Persist before submission.
async function post(path, body, nonce) {
const response = await fetch(base + path, {method:'POST', headers:{
Authorization:`Bearer ${key}`, 'Content-Type':'application/json',
...(nonce ? {'Idempotency-Key':nonce} : {})}, body:JSON.stringify(body)});
const json = await response.json();
if (!response.ok) throw new Error(JSON.stringify(json));
return json;
}
const {quote} = await post('/api/v1/models/ltx_2_3_22b_text_to_video_lora/quote', {input});
const job = await post('/api/v1/models/ltx_2_3_22b_text_to_video_lora/requests', {input, quoted_credits:quote.credits_consumed}, nonce);
console.log(job); // Stable WEBOT request_id, events_url, result_url.
// Stream saved webhook state. Reconnect ONLY the event stream, not the generation.
while (!job.terminal || job.financial_pending) {
const stream = await fetch(job.events_url, {headers:{Authorization:`Bearer ${key}`}});
if (!stream.ok) throw new Error(`Event stream HTTP ${stream.status}`);
let buffer = '';
for await (const chunk of stream.body.pipeThrough(new TextDecoderStream())) {
buffer += chunk;
let end;
while ((end = buffer.indexOf('\n\n')) !== -1) {
const event = buffer.slice(0, end); buffer = buffer.slice(end + 2);
const data = event.split('\n').find(line => line.startsWith('data: '));
if (!data) continue;
const state = JSON.parse(data.slice(6));
if (state.error && !state.status) throw new Error(JSON.stringify(state.error));
if (state.terminal && !state.financial_pending) { console.log(state.output ?? state.error); process.exit(0); }
}
}
await new Promise(resolve => setTimeout(resolve, 1500));
}
console.log(job.output ?? job.error);// Node.js 18+. Save your customized input in input.json.
import { readFileSync } from 'node:fs';
import { randomUUID } from 'node:crypto';
const base = process.env.WEBOT_BASE_URL!.replace(/\/$/, '');
const key = process.env.WEBOT_API_KEY!;
const input = JSON.parse(readFileSync('input.json', 'utf8'));
const nonce = process.env.WEBOT_JOB_NONCE || randomUUID(); // Persist before submission.
async function post(path: string, body: unknown, nonce?: string) {
const response = await fetch(base + path, {method:'POST', headers:{
Authorization:`Bearer ${key}`, 'Content-Type':'application/json',
...(nonce ? {'Idempotency-Key':nonce} : {})}, body:JSON.stringify(body)});
const json = await response.json();
if (!response.ok) throw new Error(JSON.stringify(json));
return json;
}
const {quote} = await post('/api/v1/models/ltx_2_3_22b_text_to_video_lora/quote', {input});
const job = await post('/api/v1/models/ltx_2_3_22b_text_to_video_lora/requests', {input, quoted_credits:quote.credits_consumed}, nonce);
console.log(job); // Stable WEBOT request_id, events_url, result_url.
// Stream saved webhook state. Reconnect ONLY the event stream, not the generation.
while (!job.terminal || job.financial_pending) {
const stream = await fetch(job.events_url, {headers:{Authorization:`Bearer ${key}`}});
if (!stream.ok) throw new Error(`Event stream HTTP ${stream.status}`);
let buffer = '';
for await (const chunk of stream.body.pipeThrough(new TextDecoderStream())) {
buffer += chunk;
let end;
while ((end = buffer.indexOf('\n\n')) !== -1) {
const event = buffer.slice(0, end); buffer = buffer.slice(end + 2);
const data = event.split('\n').find(line => line.startsWith('data: '));
if (!data) continue;
const state = JSON.parse(data.slice(6));
if (state.error && !state.status) throw new Error(JSON.stringify(state.error));
if (state.terminal && !state.financial_pending) { console.log(state.output ?? state.error); process.exit(0); }
}
}
await new Promise(resolve => setTimeout(resolve, 1500));
}
console.log(job.output ?? job.error);# Python 3.9+, pip install requests
import json, os, time, uuid, requests
base = os.environ['WEBOT_BASE_URL'].rstrip('/')
headers = {'Authorization': 'Bearer ' + os.environ['WEBOT_API_KEY']}
with open('input.json', encoding='utf-8') as file:
input_data = json.load(file)
nonce = os.environ.get('WEBOT_JOB_NONCE') or str(uuid.uuid4()) # Persist before submitting.
def post(path, body, extra=None):
response = requests.post(base + path, headers={**headers, **(extra or {})}, json=body, timeout=180)
response.raise_for_status()
return response.json()
quote = post('/api/v1/models/ltx_2_3_22b_text_to_video_lora/quote', {'input': input_data})['quote']
job = post('/api/v1/models/ltx_2_3_22b_text_to_video_lora/requests', {'input': input_data, 'quoted_credits': quote['credits_consumed']}, {'Idempotency-Key': nonce})
state = job
while not state['terminal'] or state.get('financial_pending', False):
# Reconnect while nonterminal; this reads WEBOT's database, never a provider status API.
with requests.get(job['events_url'], headers=headers, stream=True, timeout=(10, 40)) as stream:
stream.raise_for_status()
for line in stream.iter_lines(decode_unicode=True):
if line and line.startswith('data: '):
state = json.loads(line[6:])
if 'status' not in state: raise RuntimeError(state)
if state['terminal'] and not state.get('financial_pending', False): break
if not state['terminal'] or state.get('financial_pending', False): time.sleep(1.5)
print(state['output'] if state['status'] == 'completed' else state['error'])<?php // PHP 8.1+ with cURL
$base = rtrim(getenv('WEBOT_BASE_URL'), '/');
$input = json_decode(file_get_contents('input.json'), false, 64, JSON_THROW_ON_ERROR);
$nonce = getenv('WEBOT_JOB_NONCE') ?: bin2hex(random_bytes(16)); // Persist this before submission.
function post(string $path, array $body, ?string $nonce = null): array {
global $base;
$headers = ['Authorization: Bearer '.getenv('WEBOT_API_KEY'), 'Content-Type: application/json'];
if ($nonce) $headers[] = 'Idempotency-Key: '.$nonce;
$ch = curl_init($base.$path);
curl_setopt_array($ch, [CURLOPT_RETURNTRANSFER=>true, CURLOPT_POST=>true,
CURLOPT_TIMEOUT=>180, CURLOPT_HTTPHEADER=>$headers,
CURLOPT_POSTFIELDS=>json_encode($body, JSON_THROW_ON_ERROR)]);
$raw = curl_exec($ch); $status = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch);
if ($raw === false || $status < 200 || $status >= 300) throw new RuntimeException('WEBOT HTTP '.$status);
return json_decode($raw, true, 64, JSON_THROW_ON_ERROR);
}
$quote = post('/api/v1/models/ltx_2_3_22b_text_to_video_lora/quote', ['input'=>$input])['quote'];
$job = post('/api/v1/models/ltx_2_3_22b_text_to_video_lora/requests', ['input'=>$input, 'quoted_credits'=>$quote['credits_consumed']], $nonce);
echo json_encode($job, JSON_PRETTY_PRINT); // Connect to events_url with the same Bearer header.// Go 1.20+; save as main.go.
package main
import ("bytes"; "encoding/json"; "fmt"; "io"; "net/http"; "os"; "strings"; "time"; "crypto/rand"; "encoding/hex")
func main() {
base := strings.TrimRight(os.Getenv("WEBOT_BASE_URL"), "/")
raw, err := os.ReadFile("input.json"); if err != nil { panic(err) }
nonce := os.Getenv("WEBOT_JOB_NONCE")
if nonce == "" { b := make([]byte,16); if _,err:=rand.Read(b);err!=nil {panic(err)}; nonce=hex.EncodeToString(b) }
// Persist nonce before the submission; reuse on ambiguous responses.
client := &http.Client{Timeout:180*time.Second}
post := func(path string, body any, id string) map[string]any {
data, err := json.Marshal(body); if err != nil {panic(err)}
req, err := http.NewRequest("POST",base+path,bytes.NewReader(data)); if err!=nil {panic(err)}
req.Header.Set("Authorization","Bearer "+os.Getenv("WEBOT_API_KEY")); req.Header.Set("Content-Type","application/json")
if id!="" {req.Header.Set("Idempotency-Key",id)}
res,err:=client.Do(req); if err!=nil {panic(err)}; defer res.Body.Close()
data,err=io.ReadAll(res.Body); if err!=nil {panic(err)}
if res.StatusCode<200||res.StatusCode>=300 {panic(string(data))}
var result map[string]any; if err=json.Unmarshal(data,&result);err!=nil {panic(err)}; return result
}
input:=json.RawMessage(raw)
quote:=post("/api/v1/models/ltx_2_3_22b_text_to_video_lora/quote",map[string]any{"input":input},"")["quote"].(map[string]any)
job:=post("/api/v1/models/ltx_2_3_22b_text_to_video_lora/requests",map[string]any{"input":input,"quoted_credits":quote["credits_consumed"]},nonce)
fmt.Println(job) // Stream events_url with the same Authorization header.
}// Java 11+, Jackson databind dependency; class Main in Main.java.
import java.net.URI;
import java.net.http.*;
import java.nio.file.*;
import java.time.Duration;
import java.util.UUID;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.databind.node.ObjectNode;
public class Main {
static final ObjectMapper json = new ObjectMapper();
static final HttpClient client = HttpClient.newHttpClient();
static final String base = System.getenv("WEBOT_BASE_URL").replaceAll("/$", "");
static JsonNode post(String path, JsonNode body, String nonce) throws Exception {
var b = HttpRequest.newBuilder(URI.create(base+path)).timeout(Duration.ofSeconds(180))
.header("Authorization","Bearer "+System.getenv("WEBOT_API_KEY")).header("Content-Type","application/json")
.POST(HttpRequest.BodyPublishers.ofString(json.writeValueAsString(body)));
if(nonce!=null)b.header("Idempotency-Key",nonce);
var r=client.send(b.build(),HttpResponse.BodyHandlers.ofString());
if(r.statusCode()<200||r.statusCode()>=300)throw new IllegalStateException(r.body());
return json.readTree(r.body());
}
public static void main(String[] args) throws Exception {
var input=json.readTree(Files.readString(Path.of("input.json")));
ObjectNode body=json.createObjectNode();body.set("input",input);
var quote=post("/api/v1/models/ltx_2_3_22b_text_to_video_lora/quote",body,null).get("quote");
body.put("quoted_credits",quote.get("credits_consumed").asInt());
String nonce=System.getenv("WEBOT_JOB_NONCE");if(nonce==null)nonce=UUID.randomUUID().toString(); // Persist before POST.
var job=post("/api/v1/models/ltx_2_3_22b_text_to_video_lora/requests",body,nonce);System.out.println(job);
// Subscribe to job.events_url with Authorization; use BodyHandlers.ofLines().
}
}// .NET 8 console app, top-level statements.
using System.Net.Http;
using System.Text;
using System.Text.Json.Nodes;
var client = new HttpClient { Timeout = TimeSpan.FromSeconds(180) };
var root = Environment.GetEnvironmentVariable("WEBOT_BASE_URL")!.TrimEnd('/');
var key = Environment.GetEnvironmentVariable("WEBOT_API_KEY");
async Task<JsonNode> Post(string path, JsonNode body, string? nonce = null) {
using var req = new HttpRequestMessage(HttpMethod.Post, root + path);
req.Headers.Add("Authorization", "Bearer " + key);
if (nonce != null) req.Headers.Add("Idempotency-Key", nonce);
req.Content = new StringContent(body.ToJsonString(), Encoding.UTF8, "application/json");
using var res = await client.SendAsync(req);
var raw = await res.Content.ReadAsStringAsync();res.EnsureSuccessStatusCode();
return JsonNode.Parse(raw)!;
}
var input = JsonNode.Parse(await File.ReadAllTextAsync("input.json"));
var body = new JsonObject { ["input"] = input };
var quote = await Post("/api/v1/models/ltx_2_3_22b_text_to_video_lora/quote", body);
body["quoted_credits"] = quote["quote"]!["credits_consumed"]!.GetValue<int>();
var nonce = Environment.GetEnvironmentVariable("WEBOT_JOB_NONCE") ?? Guid.NewGuid().ToString(); // Persist before submitting.
var job = await Post("/api/v1/models/ltx_2_3_22b_text_to_video_lora/requests", body, nonce);
Console.WriteLine(job); // Subscribe to events_url with the same Bearer header and ResponseHeadersRead.# Ruby 3+, standard library only.
require 'net/http'
require 'json'
require 'securerandom'
base = ENV.fetch('WEBOT_BASE_URL').sub(%r{/$}, '')
post = lambda do |path, body, nonce = nil|
uri = URI(base + path)
req = Net::HTTP::Post.new(uri)
req['Authorization'] = 'Bearer ' + ENV.fetch('WEBOT_API_KEY')
req['Content-Type'] = 'application/json'
req['Idempotency-Key'] = nonce if nonce
req.body = JSON.generate(body)
res = Net::HTTP.start(uri.host, uri.port, use_ssl: true, read_timeout: 180) { |http| http.request(req) }
raise res.body unless res.is_a?(Net::HTTPSuccess)
JSON.parse(res.body)
end
input = JSON.parse(File.read('input.json'))
quote = post.call('/api/v1/models/ltx_2_3_22b_text_to_video_lora/quote', {'input' => input})['quote']
nonce = ENV['WEBOT_JOB_NONCE'] || SecureRandom.uuid # Persist this before submission.
job = post.call('/api/v1/models/ltx_2_3_22b_text_to_video_lora/requests', {'input' => input, 'quoted_credits' => quote['credits_consumed']}, nonce)
puts JSON.pretty_generate(job) # Subscribe to events_url with the same Authorization header.// Swift 5.9 server-side/CLI only. Do not embed customer keys in shipped apps.
import Foundation
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
@main struct Main {
static func main() async throws {
let env=ProcessInfo.processInfo.environment
let base=env["WEBOT_BASE_URL"]!.trimmingCharacters(in: CharacterSet(charactersIn:"/"))
let input=try JSONSerialization.jsonObject(with: Data(contentsOf:URL(fileURLWithPath:"input.json")))
func post(_ path:String,_ body:[String:Any],_ nonce:String?=nil) async throws -> [String:Any] {
var req=URLRequest(url:URL(string:base+path)!);req.httpMethod="POST";req.timeoutInterval=180
req.setValue("Bearer "+env["WEBOT_API_KEY"]!,forHTTPHeaderField:"Authorization")
req.setValue("application/json",forHTTPHeaderField:"Content-Type")
if let nonce {req.setValue(nonce,forHTTPHeaderField:"Idempotency-Key")}
req.httpBody=try JSONSerialization.data(withJSONObject:body)
let (data,res)=try await URLSession.shared.data(for:req)
guard let http=res as? HTTPURLResponse,(200..<300).contains(http.statusCode) else {throw NSError(domain:"WEBOT",code:1)}
return try JSONSerialization.jsonObject(with:data) as! [String:Any]
}
let quote=try await post("/api/v1/models/ltx_2_3_22b_text_to_video_lora/quote",["input":input])["quote"] as! [String:Any]
let nonce=env["WEBOT_JOB_NONCE"] ?? UUID().uuidString // Persist before submission.
let job=try await post("/api/v1/models/ltx_2_3_22b_text_to_video_lora/requests",["input":input,"quoted_credits":quote["credits_consumed"]!],nonce)
print(job) // Subscribe to events_url with the same Authorization header.
}
}// Server-side Kotlin/JVM 17+, Gradle dependencies: OkHttp 4.12, org.json 20240303.
import okhttp3.*
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.RequestBody.Companion.toRequestBody
import org.json.JSONObject
import java.io.File
import java.util.UUID
import java.util.concurrent.TimeUnit
fun main() {
val base=System.getenv("WEBOT_BASE_URL").trimEnd('/')
val client=OkHttpClient.Builder().readTimeout(180,TimeUnit.SECONDS).build()
fun post(path:String,body:JSONObject,nonce:String?=null):JSONObject {
val b=Request.Builder().url(base+path).header("Authorization","Bearer "+System.getenv("WEBOT_API_KEY"))
.post(body.toString().toRequestBody("application/json".toMediaType()))
if(nonce!=null)b.header("Idempotency-Key",nonce)
return client.newCall(b.build()).execute().use {res ->
val raw=res.body!!.string();check(res.isSuccessful){raw};JSONObject(raw)
}
}
val body=JSONObject().put("input",JSONObject(File("input.json").readText()))
val quote=post("/api/v1/models/ltx_2_3_22b_text_to_video_lora/quote",body).getJSONObject("quote")
body.put("quoted_credits",quote.getInt("credits_consumed"))
val nonce=System.getenv("WEBOT_JOB_NONCE") ?: UUID.randomUUID().toString() // Persist before submission.
val job=post("/api/v1/models/ltx_2_3_22b_text_to_video_lora/requests",body,nonce)
println(job) // Subscribe to events_url with the same Authorization header.
}5. Receive all results
The response includes a stable WEBOT request_id, events_url and result_url. Subscribe with a Bearer-authenticated HTTP stream. Nonterminal streams end after 25 seconds; reconnect to the same URL after at least 1.5 seconds. Current saved state is replayed immediately, including completion that happened while disconnected. A terminal event contains the result envelope. The JSON terminal flag describes generation completion. Keep reconnecting while financial_pending is true; stop after the terminal event confirms financial settlement. Never poll provider status/results. Native browser EventSource cannot send a Bearer header; keep the key on your server.
Completed output contains the full model result, including every generated media/document item, not just the first URL. Failed output is null with error and refund_state. Results are strictly limited to the key owner, including on reseller domains. Model-independent aliases: /api/v1/requests/{request_id}/result and /events. Revoking a key blocks subsequent reads and streams; saved results remain accessible with another valid key of the same account.
6. Schemas and parameter defaults
Required fields are marked with *. Required text must contain non-whitespace content. Defaults apply when an optional parameter is omitted; null, false, 0 and an empty array are distinct values. “No documented default” means WEBOT does not invent one. Examples are sample inputs, not defaults. WEBOT generation constraints can require an explicit value even when the provider publishes an automatic default.
Input schema · fields, constraints and defaults
| Parameter | Type | Required | Default when omitted | Description / constraints |
|---|---|---|---|---|
camera_lora | string | No | "none" | The camera LoRA to use. This allows you to control the camera movement of the generated video more accurately than just prompting the model to move the camera. enum: ["dolly_in","dolly_out","dolly_left","dolly_right","jib_up","jib_down","static","none"] |
negative_prompt | string | No | "news broadcast, 3d animation, computer graphics, pc game, console game, video game, cartoon, childish, watermark, logo, text, on screen text, subtitles, titles, signature, slowmo, static" | The negative prompt to generate the video from. |
enable_prompt_expansion | boolean | No | true | Whether to enable prompt expansion. |
num_frames | integer | No | 121 | Number of generated frames, in steps of 8 plus 1 (for example, 121 or 241). Source-length matching can override this value. enum: [9,17,25,33,41,49,57,65,73,81,89,97,105,113,121,129,137,145,153,161,169,177,185,193,201,209,217,225,233,241,249,257,265,273,281,289,297,305,313,321,329,337,345,353,361,369,377,385,393,401,409,417,425,433,441,449,457,465,473,481] · minimum: 9 · maximum: 481 |
video_cfg_scale | number | No | 3 | The Classifier-Free Guidance (CFG) scale for the video. Higher values result in more consistent and focused video content. minimum: 1 · maximum: 20 |
loras | array | Yes * | No documented default | The LoRAs to use for the generation. |
loras[].scale | number | No | 1 | Scale factor for LoRA application (0.0 to 4.0). minimum: 0 · maximum: 4 |
loras[].weight_name | string | null | No | No documented default | Name of the LoRA weight. Only used if `path` is a HuggingFace repository, and is only required when the repository contains multiple LoRA weights. |
loras[].path | string | Yes * | No documented default | URL, HuggingFace repo ID (owner/repo) to lora weights. |
scheduler | string | No | "ltx2" | The scheduler to use. enum: ["ltx2","linear_quadratic","beta"] |
enable_safety_checker | boolean | No | true | Whether to enable the safety checker. |
video_rescaling_scale | number | No | 0.7 | The rescaling scale for the video. Controls the ratio between classifier-free guidance and spatiotemporal guidance. minimum: 0 · maximum: 1 |
fps | number | No | 24 | The frames per second of the generated video. minimum: 1 · maximum: 60 |
prompt | string | Yes * | No documented default | The prompt to generate the video from. |
audio_stg_scale | number | No | 0 | The Spatiotemporal Guidance (STG) scale for the audio. Higher values result in more consistent and focused audio content. minimum: 0 · maximum: 20 |
sync_mode | boolean | No | false | If `True`, the media will be returned as a data URI and the output data won't be available in the request history. |
generate_audio | boolean | No | true | Whether to generate audio for the video. |
use_restart_sampling | boolean | No | false | Whether to use restart sampling. This will inject a small amount of noise during each denoising step, which can help improve the quality of the generated video. |
video_quality | string | No | "high" | The quality of the generated video. enum: ["low","medium","high","maximum"] |
gradient_estimation_gamma | number | No | 2 | The gamma of gradient estimation during denoising. Set to 0 to disable. minimum: 0 · maximum: 10 |
video_modality_scale | number | No | 3 | The modality scale for the video. Controls the ratio between video and audio modalities. minimum: 0 · maximum: 10 |
num_inference_steps | integer | No | 40 | The number of inference steps to use. minimum: 8 · maximum: 50 |
acceleration | string | No | "regular" | The acceleration level to use. enum: ["none","regular","high","full"] |
video_output_type | string | No | "X264 (.mp4)" | The output type of the generated video. enum: ["X264 (.mp4)","VP9 (.webm)","PRORES4444 (.mov)","GIF (.gif)"] |
audio_modality_scale | number | No | 3 | The modality scale for the audio. Controls the ratio between video and audio modalities. minimum: 0 · maximum: 10 |
camera_lora_scale | number | No | 1 | The scale of the camera LoRA to use. This allows you to control the camera movement of the generated video more accurately than just prompting the model to move the camera. minimum: 0 · maximum: 1 |
video_write_mode | string | No | "balanced" | The write mode of the generated video. enum: ["fast","balanced","small"] |
video_stg_scale | number | No | 0 | The Spatiotemporal Guidance (STG) scale for the video. Higher values result in more consistent and focused video content. minimum: 0 · maximum: 20 |
audio_rescaling_scale | number | No | 0.7 | The rescaling scale for the audio. Controls the ratio between classifier-free guidance and spatiotemporal guidance. minimum: 0 · maximum: 1 |
use_multiscale | boolean | No | false | Off: generation uses the selected video size. Multi-scale generation is currently unavailable because it can increase the output size. enum: [false] |
distill_lora_first_pass_scale | number | No | 0.2 | The scale of the distill LoRA to use for the first pass. Set to 0 to disable. minimum: 0 · maximum: 1 |
audio_cfg_scale | number | No | 7 | The Classifier-Free Guidance (CFG) scale for the audio. Higher values result in more consistent and focused audio content. minimum: 1 · maximum: 20 |
video_size | object | string | No | "landscape_16_9" | Choose the output video size or enter custom dimensions. Automatic sizing is currently unavailable. |
video_size.variant0.width | integer | No | 512 | The width of the generated image. maximum: 14142 · exclusiveMinimum: 0 |
video_size.variant0.height | integer | No | 512 | The height of the generated image. maximum: 14142 · exclusiveMinimum: 0 |
distill_lora_second_pass_scale | number | No | 0.5 | The scale of the distill LoRA to use for the second and subsequent passes. minimum: 0 · maximum: 1 |
seed | integer | null | No | No documented default | The seed for the random number generator. |
{
"type": "object",
"properties": {
"camera_lora": {
"default": "none",
"examples": [
"none"
],
"type": "string",
"description": "The camera LoRA to use. This allows you to control the camera movement of the generated video more accurately than just prompting the model to move the camera.",
"enum": [
"dolly_in",
"dolly_out",
"dolly_left",
"dolly_right",
"jib_up",
"jib_down",
"static",
"none"
],
"title": "Camera LoRA"
},
"negative_prompt": {
"default": "news broadcast, 3d animation, computer graphics, pc game, console game, video game, cartoon, childish, watermark, logo, text, on screen text, subtitles, titles, signature, slowmo, static",
"type": "string",
"description": "The negative prompt to generate the video from.",
"title": "Negative Prompt"
},
"enable_prompt_expansion": {
"default": true,
"type": "boolean",
"description": "Whether to enable prompt expansion.",
"title": "Enable Prompt Expansion"
},
"num_frames": {
"default": 121,
"minimum": 9,
"maximum": 481,
"type": "integer",
"description": "Number of generated frames, in steps of 8 plus 1 (for example, 121 or 241). Source-length matching can override this value.",
"title": "Number of Frames",
"enum": [
9,
17,
25,
33,
41,
49,
57,
65,
73,
81,
89,
97,
105,
113,
121,
129,
137,
145,
153,
161,
169,
177,
185,
193,
201,
209,
217,
225,
233,
241,
249,
257,
265,
273,
281,
289,
297,
305,
313,
321,
329,
337,
345,
353,
361,
369,
377,
385,
393,
401,
409,
417,
425,
433,
441,
449,
457,
465,
473,
481
]
},
"video_cfg_scale": {
"default": 3,
"minimum": 1,
"maximum": 20,
"type": "number",
"description": "The Classifier-Free Guidance (CFG) scale for the video. Higher values result in more consistent and focused video content.",
"title": "Video CFG Scale"
},
"loras": {
"items": {
"type": "object",
"properties": {
"scale": {
"default": 1,
"minimum": 0,
"maximum": 4,
"type": "number",
"description": "Scale factor for LoRA application (0.0 to 4.0).",
"title": "Scale"
},
"weight_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Name of the LoRA weight. Only used if `path` is a HuggingFace repository, and is only required when the repository contains multiple LoRA weights.",
"title": "Weight Name"
},
"path": {
"type": "string",
"description": "URL, HuggingFace repo ID (owner/repo) to lora weights.",
"title": "Path"
}
},
"required": [
"path"
],
"description": "LoRA weight configuration.",
"x-webot-order-properties": [
"path",
"weight_name",
"scale"
],
"title": "LoRAInput"
},
"type": "array",
"description": "The LoRAs to use for the generation.",
"title": "LoRAs"
},
"scheduler": {
"default": "ltx2",
"examples": [
"ltx2"
],
"type": "string",
"description": "The scheduler to use.",
"enum": [
"ltx2",
"linear_quadratic",
"beta"
],
"title": "Scheduler"
},
"enable_safety_checker": {
"default": true,
"type": "boolean",
"description": "Whether to enable the safety checker.",
"title": "Enable Safety Checker"
},
"video_rescaling_scale": {
"default": 0.7,
"minimum": 0,
"maximum": 1,
"type": "number",
"description": "The rescaling scale for the video. Controls the ratio between classifier-free guidance and spatiotemporal guidance.",
"title": "Video Rescaling Scale"
},
"fps": {
"default": 24,
"minimum": 1,
"maximum": 60,
"type": "number",
"description": "The frames per second of the generated video.",
"title": "FPS"
},
"prompt": {
"examples": [
"A cowboy walking through a dusty town at high noon, camera following from behind, cinematic depth, realistic lighting, western mood, 4K film grain."
],
"type": "string",
"description": "The prompt to generate the video from.",
"title": "Prompt"
},
"audio_stg_scale": {
"default": 0,
"minimum": 0,
"maximum": 20,
"type": "number",
"description": "The Spatiotemporal Guidance (STG) scale for the audio. Higher values result in more consistent and focused audio content.",
"title": "Audio STG Scale"
},
"sync_mode": {
"default": false,
"type": "boolean",
"description": "If `True`, the media will be returned as a data URI and the output data won't be available in the request history.",
"title": "Sync Mode"
},
"generate_audio": {
"default": true,
"type": "boolean",
"description": "Whether to generate audio for the video.",
"title": "Generate Audio"
},
"use_restart_sampling": {
"default": false,
"type": "boolean",
"description": "Whether to use restart sampling. This will inject a small amount of noise during each denoising step, which can help improve the quality of the generated video.",
"title": "Use Restart Sampling"
},
"video_quality": {
"default": "high",
"type": "string",
"description": "The quality of the generated video.",
"enum": [
"low",
"medium",
"high",
"maximum"
],
"title": "Video Quality"
},
"gradient_estimation_gamma": {
"default": 2,
"minimum": 0,
"maximum": 10,
"type": "number",
"description": "The gamma of gradient estimation during denoising. Set to 0 to disable.",
"title": "Gradient Estimation Gamma"
},
"video_modality_scale": {
"default": 3,
"minimum": 0,
"maximum": 10,
"type": "number",
"description": "The modality scale for the video. Controls the ratio between video and audio modalities.",
"title": "Video Modality Scale"
},
"num_inference_steps": {
"default": 40,
"minimum": 8,
"maximum": 50,
"type": "integer",
"description": "The number of inference steps to use.",
"title": "Number of Inference Steps"
},
"acceleration": {
"default": "regular",
"examples": [
"regular"
],
"type": "string",
"description": "The acceleration level to use.",
"enum": [
"none",
"regular",
"high",
"full"
],
"title": "Acceleration"
},
"video_output_type": {
"default": "X264 (.mp4)",
"type": "string",
"description": "The output type of the generated video.",
"enum": [
"X264 (.mp4)",
"VP9 (.webm)",
"PRORES4444 (.mov)",
"GIF (.gif)"
],
"title": "Video Output Type"
},
"audio_modality_scale": {
"default": 3,
"minimum": 0,
"maximum": 10,
"type": "number",
"description": "The modality scale for the audio. Controls the ratio between video and audio modalities.",
"title": "Audio Modality Scale"
},
"camera_lora_scale": {
"default": 1,
"minimum": 0,
"maximum": 1,
"type": "number",
"description": "The scale of the camera LoRA to use. This allows you to control the camera movement of the generated video more accurately than just prompting the model to move the camera.",
"title": "Camera LoRA Scale"
},
"video_write_mode": {
"default": "balanced",
"type": "string",
"description": "The write mode of the generated video.",
"enum": [
"fast",
"balanced",
"small"
],
"title": "Video Write Mode"
},
"video_stg_scale": {
"default": 0,
"minimum": 0,
"maximum": 20,
"type": "number",
"description": "The Spatiotemporal Guidance (STG) scale for the video. Higher values result in more consistent and focused video content.",
"title": "Video STG Scale"
},
"audio_rescaling_scale": {
"default": 0.7,
"minimum": 0,
"maximum": 1,
"type": "number",
"description": "The rescaling scale for the audio. Controls the ratio between classifier-free guidance and spatiotemporal guidance.",
"title": "Audio Rescaling Scale"
},
"use_multiscale": {
"default": false,
"type": "boolean",
"description": "Off: generation uses the selected video size. Multi-scale generation is currently unavailable because it can increase the output size.",
"title": "Use Multi-Scale",
"enum": [
false
]
},
"distill_lora_first_pass_scale": {
"default": 0.2,
"minimum": 0,
"maximum": 1,
"type": "number",
"description": "The scale of the distill LoRA to use for the first pass. Set to 0 to disable.",
"title": "Distill Lora First Pass Scale"
},
"audio_cfg_scale": {
"default": 7,
"minimum": 1,
"maximum": 20,
"type": "number",
"description": "The Classifier-Free Guidance (CFG) scale for the audio. Higher values result in more consistent and focused audio content.",
"title": "Audio CFG Scale"
},
"video_size": {
"anyOf": [
{
"type": "object",
"properties": {
"width": {
"default": 512,
"maximum": 14142,
"exclusiveMinimum": 0,
"description": "The width of the generated image.",
"type": "integer",
"title": "Width"
},
"height": {
"default": 512,
"maximum": 14142,
"exclusiveMinimum": 0,
"description": "The height of the generated image.",
"type": "integer",
"title": "Height"
}
},
"x-webot-order-properties": [
"width",
"height"
],
"title": "ImageSize"
},
{
"type": "string",
"enum": [
"square_hd",
"square",
"portrait_4_3",
"portrait_16_9",
"landscape_4_3",
"landscape_16_9"
]
}
],
"description": "Choose the output video size or enter custom dimensions. Automatic sizing is currently unavailable.",
"default": "landscape_16_9",
"title": "Video Size"
},
"distill_lora_second_pass_scale": {
"default": 0.5,
"minimum": 0,
"maximum": 1,
"type": "number",
"description": "The scale of the distill LoRA to use for the second and subsequent passes.",
"title": "Distill Lora Second Pass Scale"
},
"seed": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "The seed for the random number generator.",
"title": "Seed"
}
},
"required": [
"loras",
"prompt"
],
"x-webot-order-properties": [
"prompt",
"num_frames",
"video_size",
"generate_audio",
"use_multiscale",
"fps",
"num_inference_steps",
"video_cfg_scale",
"video_stg_scale",
"video_rescaling_scale",
"video_modality_scale",
"audio_cfg_scale",
"audio_stg_scale",
"audio_rescaling_scale",
"audio_modality_scale",
"gradient_estimation_gamma",
"use_restart_sampling",
"scheduler",
"acceleration",
"camera_lora",
"camera_lora_scale",
"negative_prompt",
"seed",
"enable_prompt_expansion",
"enable_safety_checker",
"video_output_type",
"video_quality",
"video_write_mode",
"sync_mode",
"loras",
"distill_lora_first_pass_scale",
"distill_lora_second_pass_scale"
],
"title": "LTX23LoRATextToVideoInput"
}Output (inside result.output) schema · fields, constraints and defaults
| Parameter | Type | Required | Default when omitted | Description / constraints |
|---|---|---|---|---|
prompt | string | Yes * | No documented default | The prompt used for the generation. |
video | object | Yes * | No documented default | The generated video. |
video.file_size | integer | null | No | No documented default | The size of the file in bytes. |
video.width | integer | null | No | No documented default | The width of the video |
video.content_type | string | null | No | No documented default | The mime type of the file. |
video.duration | number | null | No | No documented default | The duration of the video |
video.num_frames | integer | null | No | No documented default | The number of frames in the video |
video.height | integer | null | No | No documented default | The height of the video |
video.fps | number | null | No | No documented default | The FPS of the video |
video.url | string | Yes * | No documented default | The URL where the file can be downloaded from. |
video.file_name | string | null | No | No documented default | The name of the file. It will be auto-generated if not provided. |
seed | integer | Yes * | No documented default | The seed used for the random number generator. |
{
"type": "object",
"properties": {
"prompt": {
"examples": [
"A cowboy walking through a dusty town at high noon, camera following from behind, cinematic depth, realistic lighting, western mood, 4K film grain."
],
"type": "string",
"description": "The prompt used for the generation.",
"title": "Prompt"
},
"video": {
"type": "object",
"properties": {
"file_size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"examples": [
4404019
],
"description": "The size of the file in bytes.",
"title": "File Size"
},
"width": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "The width of the video",
"title": "Width"
},
"content_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"examples": [
"image/png"
],
"description": "The mime type of the file.",
"title": "Content Type"
},
"duration": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "The duration of the video",
"title": "Duration"
},
"num_frames": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "The number of frames in the video",
"title": "Num Frames"
},
"height": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "The height of the video",
"title": "Height"
},
"fps": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "The FPS of the video",
"title": "Fps"
},
"url": {
"type": "string",
"description": "The URL where the file can be downloaded from.",
"title": "Url"
},
"file_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"examples": [
"z9RV14K95DvU.png"
],
"description": "The name of the file. It will be auto-generated if not provided.",
"title": "File Name"
}
},
"required": [
"url"
],
"x-webot-order-properties": [
"url",
"content_type",
"file_name",
"file_size",
"width",
"height",
"fps",
"duration",
"num_frames"
],
"title": "VideoFile",
"description": "The generated video."
},
"seed": {
"examples": [
149063119
],
"type": "integer",
"description": "The seed used for the random number generator.",
"title": "Seed"
}
},
"required": [
"video",
"seed",
"prompt"
],
"x-webot-order-properties": [
"video",
"seed",
"prompt"
],
"title": "LTX23TextToVideoOutput"
}Errors and limits
401 invalid/expired/revoked key · 403 key scope or domain mismatch · 404 unavailable model or unowned request · 409 quote changed, balance, concurrency or idempotency conflict · 413 JSON exceeds 2 MB · 415 wrong content type · 422 invalid fields/media · 429 rate limit · 503 temporary/ambiguous submission. Respect Retry-After. Current limits per account: 12 quotes/submissions, 120 result reads and 8 stream connections per minute. One submission preparation at a time per account. Do not automatically regenerate failed jobs.
Your requests
LTX 2.3 22B - Text to Video with LoRA · Your account only
Select Requests to load your history.
| Request ID | Created at (IST) | Status | Credits used | Refunded | Processing time | Report |
|---|
Your model analytics
LTX 2.3 22B - Text to Video with LoRA · Request dates in IST
Select Analytics to load your metrics.
Request counts
Daily requests by their current status
Request outcomes
Completed, failed and pending requests
Credits used
Daily recorded charges before refunds
Processing time
Daily average for completed requests with recorded timing
Processing percentiles
Completed requests only · Time from submission to recorded completion
How to use LTX 2.3 22B — Text to Video with LoRA
Write what you want to see, and this model turns your description into a video. Your prompt describes the subject, action, surroundings and camera view.
Required inputs
- LoRAs: A compatible learned adapter that changes a model’s style, subject or behaviour. It is an add-on to a base model, not a normal reference photo. Use adapters made for the supported base model.
- Prompt: Your instructions to the model. Say what you want, include the important details and avoid contradictory directions. For a video, describe the action as well as the scene.
Workflow
- Prepare your source material and fill the required inputs above. Review the supported settings for this model.
- Sign in to calculate the credit estimate. Review the estimate before choosing Generate.
- Keep this model page open while the request runs. Completed results arrive in the result area; use the available player or download controls to review the output.
When to use this workflow
- Visualise a scene or story idea.
- Create a short visual for a presentation or social post.
Key settings
- LoRAs
- A compatible learned adapter that changes a model’s style, subject or behaviour. It is an add-on to a base model, not a normal reference photo. Use adapters made for the supported base model.
- Scale
- A scale or enlargement amount. For an image enlargement factor, 2× doubles both width and height, producing four times as many pixels. Other uses of “scale” can differ; check this model’s description. Minimum: 0. Maximum: 4
- Weight Name
- The specific saved file or subfolder to load from a compatible model repository. It identifies an existing component; it is not a description of the picture you want.
- Path
- A compatible saved model or learned adapter file. This is not an ordinary picture. Use the exact format and base-model compatibility required by this tool.
- Prompt
- Your instructions to the model. Say what you want, include the important details and avoid contradictory directions. For a video, describe the action as well as the scene.
- Number of Frames
- The total number of still pictures used to form the clip. This is different from FPS. When playback FPS stays fixed, more frames make a longer clip. For example, 120 frames at 24 FPS last 5 seconds. Some models accept only particular frame counts. Supported choices: 9, 17, 25, 33, 41, 49, 57, 65, 73, 81, 89, 97, 105, 113, 121, 129, 137, 145, 153, 161, 169, 177, 185, 193, 201, 209, 217, 225, 233, 241, 249, 257, 265, 273, 281, 289, 297, 305, 313, 321, 329, 337, 345, 353, 361, 369, 377, 385, 393, 401, 409, 417, 425, 433, 441, 449, 457, 465,…