LTX Video Image-to-Video
Animate a source image with LTX 2.5 Fast or Pro.
Overview
Use the image to video endpoint with a supported model. Use the returned Task ID to retrieve its state, or provide callback_url for the deliveries documented below.
Quick start
- Create an API key and set it as RUNAPI_API_KEY.
- Choose a supported model and send a POST request whose body matches that model's schema.
- Store the returned task ID, then poll until a terminal state or handle the callbacks documented below.
Endpoint
- Base URL
https://runapi.ai- API version
v1- Authentication
Authorization: Bearer YOUR_API_TOKEN
Supported models
Open a model page for current pricing, rate limits, and commercial-usage details.
Request schema
Fields and allowed values depend on the selected model. When supplied, callback_url receives the Task deliveries documented below.
ltx-2.5-fast-image-to-video8 fields
callback_urlstringRunAPI callback URL for the terminal task result.
duration_secondsintegerOutput duration in seconds. Fast 1440p or 48/50 fps is limited to 10 seconds.
Allowed values:6, 8, 10, 12, 14, 16, 18, 20
Default: 10
fpsintegerFrames per second. 48/50 fps is limited to 10 seconds. Frame rate does not affect the per-second price.
Allowed values:24, 25, 48, 50
Default: 24
modelstringLTX 2.5 model slug.
output_resolutionstringOutput video resolution. Fast 1440p is limited to 10 seconds.
Allowed values:720p, 1080p, 1440p
Default: 1080p
promptstringVideo description, from 1 to 5,000 characters.
Range:1 - 5000
seedintegerOptional random seed.
Range:0 - 2147483647
source_image_urlstringHTTP(S) URL of a JPG, PNG or WEBP source image, up to 10 MB. The provider validates the remote file and derives the output aspect ratio.
ltx-2.5-pro-image-to-video8 fields
callback_urlstringRunAPI callback URL for the terminal task result.
duration_secondsintegerOutput duration in seconds, up to 10 seconds for Pro.
Allowed values:6, 8, 10
Default: 10
fpsintegerFrames per second. 48/50 fps is limited to 10 seconds. Frame rate does not affect the per-second price.
Allowed values:24, 25, 48, 50
Default: 24
modelstringLTX 2.5 model slug.
output_resolutionstringOutput video resolution.
Allowed values:720p, 1080p
Default: 1080p
promptstringVideo description, from 1 to 5,000 characters.
Range:1 - 5000
seedintegerOptional random seed.
Range:0 - 2147483647
source_image_urlstringHTTP(S) URL of a JPG, PNG or WEBP source image, up to 10 MB. The provider validates the remote file and derives the output aspect ratio.
Conditional rules
These requirements apply when all listed conditions match.
-
When
model = ltx-2.5-fast-image-to-video- Required
- Not accepted
aspect_ratio,source_audio_url
-
When
model = ltx-2.5-pro-image-to-video- Required
- Not accepted
aspect_ratio,source_audio_url
Create acceptance
POST /api/v1/ltx_video/image_to_video
Response schema
{
"properties": {
"id": {
"type": "string"
},
"status": {
"enum": [
"processing"
],
"type": "string"
},
"task_replayed": {
"type": "boolean"
}
},
"required": [
"id",
"status"
],
"type": "object",
"unevaluatedProperties": false
}
Response example
{
"id": "tsk_reference_demo",
"status": "processing"
}
Polling processing
GET /api/v1/ltx_video/image_to_video/:id
Response schema
{
"properties": {
"id": {
"type": "string"
},
"status": {
"enum": [
"processing"
],
"type": "string"
}
},
"required": [
"id",
"status"
],
"type": "object",
"unevaluatedProperties": false
}
Response example
{
"id": "tsk_reference_demo",
"status": "processing"
}
Polling completed
GET /api/v1/ltx_video/image_to_video/:id
Response schema
{
"properties": {
"first_frame_image_url": {
"type": "string",
"x-runapi-generated-media": true
},
"id": {
"type": "string"
},
"last_frame_image_url": {
"type": "string",
"x-runapi-generated-media": true
},
"status": {
"enum": [
"completed"
],
"type": "string"
},
"usage": {
"properties": {
"cost": {
"type": "number"
}
},
"required": [
"cost"
],
"type": "object",
"unevaluatedProperties": false
},
"videos": {
"items": {
"properties": {
"url": {
"type": "string",
"x-runapi-generated-media": true
}
},
"required": [
"url"
],
"type": "object",
"unevaluatedProperties": false
},
"type": "array"
}
},
"required": [
"id",
"status",
"videos",
"usage"
],
"type": "object",
"unevaluatedProperties": false
}
Response example
{
"id": "tsk_reference_demo",
"status": "completed",
"usage": {
"cost": 0.05
},
"videos": [
{
"url": "https://file.runapi.ai/reference-video.mp4"
}
]
}
Polling failed
GET /api/v1/ltx_video/image_to_video/:id
Response schema
{
"properties": {
"error": {
"type": "string"
},
"id": {
"type": "string"
},
"status": {
"enum": [
"failed"
],
"type": "string"
}
},
"required": [
"id",
"status",
"error"
],
"type": "object",
"unevaluatedProperties": false
}
Response example
{
"error": "Task processing failed.",
"id": "tsk_reference_demo",
"status": "failed"
}
Customer callback: completed
POST callback_url
Response schema
{
"properties": {
"first_frame_image_url": {
"type": "string",
"x-runapi-generated-media": true
},
"id": {
"type": "string"
},
"last_frame_image_url": {
"type": "string",
"x-runapi-generated-media": true
},
"status": {
"enum": [
"completed"
],
"type": "string"
},
"usage": {
"properties": {
"cost": {
"type": "number"
}
},
"required": [
"cost"
],
"type": "object",
"unevaluatedProperties": false
},
"videos": {
"items": {
"properties": {
"url": {
"type": "string",
"x-runapi-generated-media": true
}
},
"required": [
"url"
],
"type": "object",
"unevaluatedProperties": false
},
"type": "array"
}
},
"required": [
"id",
"status",
"videos",
"usage"
],
"type": "object",
"unevaluatedProperties": false
}
Response example
{
"id": "tsk_reference_demo",
"status": "completed",
"usage": {
"cost": 0.05
},
"videos": [
{
"url": "https://file.runapi.ai/reference-video.mp4"
}
]
}
Customer callback: failed
POST callback_url
Response schema
{
"properties": {
"error": {
"oneOf": [
{
"type": "string"
},
{
"properties": {
"code": {
"type": "string"
},
"limit_cents": {
"type": "integer"
},
"message": {
"type": "string"
},
"reset_at": {
"format": "date-time",
"type": [
"string",
"null"
]
},
"used_cents": {
"type": "integer"
},
"window": {
"enum": [
"1h",
"1d",
"7d",
"daily",
"weekly",
"monthly",
"lifetime"
],
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"unevaluatedProperties": false
}
]
},
"id": {
"type": "string"
},
"status": {
"enum": [
"failed"
],
"type": "string"
}
},
"required": [
"id",
"status",
"error"
],
"type": "object",
"unevaluatedProperties": false
}
Response example
{
"error": {
"code": "generation_failed",
"message": "Task processing failed."
},
"id": "tsk_reference_demo",
"status": "failed"
}
Errors
POST /api/v1/ltx_video/image_to_video
Response schema
{
"properties": {
"error": {
"description": "Human-readable error message.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
Response example
{
"error": "Authentication required"
}
Errors
GET /api/v1/ltx_video/image_to_video/:id
Response schema
{
"properties": {
"error": {
"description": "Human-readable error message.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
Response example
{
"error": "Authentication required"
}
Errors
POST /api/v1/ltx_video/image_to_video
Response schema
{
"oneOf": [
{
"properties": {
"error": {
"description": "Human-readable error message.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
},
{
"properties": {
"error": {
"description": "Human-readable validation summary.",
"type": "string"
},
"errors": {
"additionalProperties": {
"items": {
"type": "string"
},
"type": "array"
},
"description": "Validation messages keyed by public request field, with an array of human-readable strings for each field.",
"type": "object"
}
},
"required": [
"error",
"errors"
],
"type": "object",
"unevaluatedProperties": false
}
]
}
Response example
{
"error": "model must be one of: ltx-2.5-fast-image-to-video, ltx-2.5-pro-image-to-video"
}
Errors
POST /api/v1/ltx_video/image_to_video
Response schema
{
"properties": {
"error": {
"description": "Human-readable error message.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
Response example
{
"error": "Insufficient balance"
}
Errors
POST /api/v1/ltx_video/image_to_video
Response schema
{
"properties": {
"error": {
"description": "Human-readable error message.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
Response example
{
"error": "API key credit limit exceeded"
}
Errors
POST /api/v1/ltx_video/image_to_video
Response schema
{
"properties": {
"error": {
"description": "Human-readable error message.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
Response example
{
"error": "The request uses features that are not supported for the selected model"
}
Errors
POST /api/v1/ltx_video/image_to_video
Response schema
{
"properties": {
"error": {
"description": "Human-readable error message.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
Response example
{
"error": "Rate limit reached. Please retry later."
}
Errors
POST /api/v1/ltx_video/image_to_video
Response schema
{
"properties": {
"error": {
"description": "Human-readable error message.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
Response example
{
"error": "Service under maintenance, please try again later"
}
Errors
POST /api/v1/ltx_video/image_to_video
Response schema
{
"properties": {
"error": {
"description": "Human-readable error message.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
Response example
{
"error": "The request timed out"
}
Errors
GET /api/v1/ltx_video/image_to_video/:id
Response schema
{
"properties": {
"error": {
"description": "Human-readable error message.",
"type": "string"
}
},
"required": [
"error"
],
"type": "object",
"unevaluatedProperties": false
}
Response example
{
"error": "Task with id 'tsk_reference_demo' not found"
}
Generated Code Samples
Use cURL directly, or install an SDK for your language. Each sample submits the validated request shown in this reference.
Install
pip install runapi-ltx-video
import os
from runapi.ltx_video import LtxVideoClient
client = LtxVideoClient(api_key=os.environ["RUNAPI_API_KEY"])
task = client.image_to_video.create(
model="ltx-2.5-fast-image-to-video",
prompt="The camera slowly moves forward.",
source_image_url="https://cdn.runapi.ai/public/samples/image.jpg",
output_resolution="720p",
duration_seconds=6,
fps=24
)