LTX-2-19B I2V Serverless API
LTX-2 generates synchronized 4K audio-video content efficiently and realistically in a single pass.
~113.31s
~$0.455
1import requests
2import json
3
4url = "https://api.segmind.com/v1/ltx-2-19b-i2v"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "prompt": "A bright sunny afternoon in a backyard with an old stone wall and green bushes in the background, full‑body shot of a young woman in a blue denim jacket, graphic T‑shirt, dark skinny jeans and black sneakers, standing on the grass and starting to walk toward the camera with energetic steps, cheerful and excited, soft daylight and gentle shadows, she smiles and raises one hand as she excitedly shouts in clear English: 'L T X 2 video model is superfast, check it out its live on segmind'",
12 "negative_prompt": "blurry, low quality, still frame, frames, watermark, overlay, titles, has blurbox, has subtitles",
13 "image": "https://segmind-resources.s3.amazonaws.com/output/9f26da93-4913-49ea-8d46-65fe36844f02-Screenshot_2025-11-24_120343.png",
14 "width": 720,
15 "height": 1280,
16 "num_frames": 181,
17 "fps": 24,
18 "seed": 42,
19 "guidance_scale": 4
20}
21
22response = requests.post(url, headers=headers, json=data)
23
24if response.status_code == 200:
25 result = response.json()
26 print(json.dumps(result, indent=2))
27else:
28 print(f"Error: {response.status_code}")
29 print(response.text) 1import requests
2import json
3
4url = "https://api.segmind.com/v1/ltx-2-19b-i2v"
5headers = {
6 "x-api-key": "YOUR_API_KEY",
7 "Content-Type": "application/json"
8}
9
10data = {
11 "prompt": "A bright sunny afternoon in a backyard with an old stone wall and green bushes in the background, full‑body shot of a young woman in a blue denim jacket, graphic T‑shirt, dark skinny jeans and black sneakers, standing on the grass and starting to walk toward the camera with energetic steps, cheerful and excited, soft daylight and gentle shadows, she smiles and raises one hand as she excitedly shouts in clear English: 'L T X 2 video model is superfast, check it out its live on segmind'",
12 "negative_prompt": "blurry, low quality, still frame, frames, watermark, overlay, titles, has blurbox, has subtitles",
13 "image": "https://segmind-resources.s3.amazonaws.com/output/9f26da93-4913-49ea-8d46-65fe36844f02-Screenshot_2025-11-24_120343.png",
14 "width": 720,
15 "height": 1280,
16 "num_frames": 181,
17 "fps": 24,
18 "seed": 42,
19 "guidance_scale": 4
20}
21
22response = requests.post(url, headers=headers, json=data)
23
24if response.status_code == 200:
25 result = response.json()
26 print(json.dumps(result, indent=2))
27else:
28 print(f"Error: {response.status_code}")
29 print(response.text)API Endpoint
POST
https://api.segmind.com/v1/ltx-2-19b-i2vParameters
imagerequiredstring (uri)Input image URL
promptrequiredstringPrompt describing the video scene
fpsoptionalintegerFrames per second
Default:
24Range: 1 - 30guidance_scaleoptionalnumberGuidance scale for prompt adherence
Default:
4Range: 1 - 20heightoptionalintegerHeight of the output video
Default:
1280Range: 256 - 1280negative_promptoptionalstringNegative prompt to avoid certain elements
Default:
"blurry, low quality, still frame, frames, watermark, overlay, titles, has blurbox, has subtitles"num_framesoptionalintegerNumber of frames to generate
Default:
181Range: 1 - 400seedoptionalintegerRandom seed for reproducibility
Default:
42widthoptionalintegerWidth of the output video
Default:
720Range: 256 - 1280Response Type
Returns: Video
Common Error Codes
The API returns standard HTTP status codes. Detailed error messages are provided in the response body.
400
Bad Request
Invalid parameters or request format
401
Unauthorized
Missing or invalid API key
403
Forbidden
Insufficient permissions
404
Not Found
Model or endpoint not found
406
Insufficient Credits
Not enough credits to process request
429
Rate Limited
Too many requests
500
Server Error
Internal server error
502
Bad Gateway
Service temporarily unavailable
504
Timeout
Request timed out