Overview
About this model
Text-to-video with synchronized audio. Generates a soundtrack alongside the picture and returns a single MP4 with both tracks.
View model card on HuggingFaceSpecifications
Model details
- Provider
- Lightricks
- Modality
- Video
- Pricing
- from $0.05 / sec
Modalities: text, image → video
API
Call it in code
One OpenAI-compatible API. Swap the model id and you're done.
import time
import requests
BASE_URL = "https://api.ecohash.com/v1"
HEADERS = {"Authorization": "Bearer YOUR_API_KEY"}
job = requests.post(
f"{BASE_URL}/video/generations",
headers=HEADERS,
json={
"model": "ltx-2-5",
"prompt": "A sunset over mountains, cinematic",
# Self-hosted engines size the clip from these fields.
# Provider-served engines take "resolution" and "duration" instead.
"num_frames": 49,
"fps": 16,
"width": 720,
"height": 480,
},
).json()
while True:
status = requests.get(
f"{BASE_URL}/video/jobs/{job['id']}", headers=HEADERS
).json()
if status["status"] in ("completed", "failed"):
break
time.sleep(5)
video_url = status.get("url") # pre-signed, valid 24h