# LTX-2.5 Pro > Generates videos from text or images with native audio, camera motion controls and 1080p output. ## Overview - **Endpoint**: `https://api.higgsfield.ai/lightricks/ltx-2.5/text-to-video/pro` - **Model ID**: `lightricks/ltx-2.5/text-to-video/pro` - **Category**: text2video - **Kind**: inference ## Pricing Public pricing information is not available for this model. ## Authentication Keep credentials in server-side environment variables. The SDKs accept the same `KEY_ID:KEY_SECRET` value under their documented variable names. ```bash export HF_CREDENTIALS="YOUR_KEY_ID:YOUR_KEY_SECRET" # TypeScript export HF_KEY="YOUR_KEY_ID:YOUR_KEY_SECRET" # Python and cURL ``` The official SDKs configure the authorization header. Keep credentials server-side; the TypeScript SDK blocks browser use. ## API Information Use `subscribe` to submit the model request and wait for a terminal result. TypeScript performs automatic polling with `withPolling: true`; Python's synchronous `subscribe` call also waits. ### Input Parameters - **`fps`** (`integer`, _optional_): - Default: `25` - Options: `24`, `25`, `50` - **`prompt`** (`string`, _required_): Write your prompt here - **`duration`** (`integer`, _required_): - Default: `6` - Options: `6`, `8`, `10` - **`resolution`** (`string`, _optional_): - Default: `"720p"` - Options: `720p`, `1080p` - **`aspect_ratio`** (`string`, _optional_): - Default: `"16:9"` - Options: `16:9`, `9:16` - **`generate_audio`** (`boolean`, _optional_): - Default: `true` - **`camera_movement`** (`string`, _optional_): - Options: `dolly_in`, `dolly_out`, `dolly_left`, `dolly_right`, `jib_up`, `jib_down`, `static`, `focus_shift` ### Input JSON Schema ```json { "type": "object", "title": "LTX-2.5 Pro Text to Video Playground", "required": [ "prompt", "duration" ], "properties": { "fps": { "enum": [ 24, 25, 50 ], "type": "integer", "title": "Frames per second", "default": 25 }, "prompt": { "type": "string", "title": "Prompt", "maxLength": 5000, "minLength": 2, "description": "Write your prompt here" }, "duration": { "enum": [ 6, 8, 10 ], "type": "integer", "title": "Duration", "default": 6 }, "resolution": { "enum": [ "720p", "1080p" ], "type": "string", "title": "Resolution", "default": "720p" }, "aspect_ratio": { "enum": [ "16:9", "9:16" ], "type": "string", "title": "Aspect ratio", "default": "16:9" }, "generate_audio": { "type": "boolean", "title": "Generate audio", "default": true }, "camera_movement": { "enum": [ "dolly_in", "dolly_out", "dolly_left", "dolly_right", "jib_up", "jib_down", "static", "focus_shift" ], "type": "string", "title": "Camera movement" } }, "additionalProperties": false } ``` ### Required Parameters Example ```json { "fps": 25, "prompt": "A cinematic scene at sunset", "duration": 6, "resolution": "720p", "aspect_ratio": "16:9", "generate_audio": true } ``` ### Output Schema The shared polling endpoint returns one of the following status shapes: ```json { "title": "RequestStatus", "oneOf": [ { "title": "PendingRequestStatus", "type": "object", "properties": { "request_id": { "type": "string", "format": "uuid" }, "status_url": { "type": "string", "format": "uri" }, "cancel_url": { "type": "string", "format": "uri" }, "status": { "type": "string", "enum": [ "queued", "in_progress", "nsfw", "canceled" ] } }, "required": [ "status", "request_id" ] }, { "title": "FailedRequestStatus", "type": "object", "properties": { "request_id": { "type": "string", "format": "uuid" }, "status_url": { "type": "string", "format": "uri" }, "cancel_url": { "type": "string", "format": "uri" }, "status": { "type": "string", "const": "failed" }, "error": { "type": "string" } }, "required": [ "status", "request_id", "error" ] }, { "title": "CompletedRequestStatus", "type": "object", "properties": { "request_id": { "type": "string", "format": "uuid" }, "status_url": { "type": "string", "format": "uri" }, "cancel_url": { "type": "string", "format": "uri" }, "status": { "type": "string", "const": "completed" }, "video": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" } }, "required": [ "url" ] }, "zip": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" } }, "required": [ "url" ] }, "mov": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" } }, "required": [ "url" ] }, "jsx": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" } }, "required": [ "url" ] }, "fbx": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" } }, "required": [ "url" ] }, "ply": { "type": "object", "properties": { "url": { "type": "string", "format": "uri" } }, "required": [ "url" ] } }, "required": [ "status", "request_id", "video" ] } ] } ``` ## SDK Installation Install one of the official server-side SDKs: ```bash npm install @higgsfield/client # or pip install higgsfield-client ``` ## Usage Examples ### TypeScript ```typescript import { config, higgsfield } from "@higgsfield/client/v2"; config({ credentials: process.env.HF_CREDENTIALS, }); const result = await higgsfield.subscribe( "lightricks/ltx-2.5/text-to-video/pro", { input: { "fps": 25, "prompt": "A cinematic scene at sunset", "duration": 6, "resolution": "720p", "aspect_ratio": "16:9", "generate_audio": true }, withPolling: true, }, ); console.log(result); ``` ### Python ```python import higgsfield_client result = higgsfield_client.subscribe( 'lightricks/ltx-2.5/text-to-video/pro', arguments={'fps': 25, 'prompt': 'A cinematic scene at sunset', 'duration': 6, 'resolution': '720p', 'aspect_ratio': '16:9', 'generate_audio': True}, ) print(result) ``` ### cURL ```bash curl --request POST \ --url 'https://api.higgsfield.ai/lightricks/ltx-2.5/text-to-video/pro' \ --header "Authorization: Key $HF_KEY" \ --header "Content-Type: application/json" \ --data @- <<'JSON' { "fps": 25, "prompt": "A cinematic scene at sunset", "duration": 6, "resolution": "720p", "aspect_ratio": "16:9", "generate_audio": true } JSON ``` ## Additional Documentation # About **LTX-2.5 Pro** uses the model ID `lightricks/ltx-2.5/text-to-video/pro`. LTX-2.5 Pro Text to Video on Runware with native audio and optional camera movement. ## 1. Calling the API Send requests to `https://api.higgsfield.ai/lightricks/ltx-2.5/text-to-video/pro` with a JSON body matching the parameters below. ### Install Install an official server-side SDK. cURL needs no package. ```bash control=package group=install-typescript variant=npm label=npm when=javascript npm install @higgsfield/client ``` ```bash control=package group=install-python variant=pip label=pip when=python pip install higgsfield-client ``` ### Setup Keep credentials in server-side environment variables. The SDKs accept the same `KEY_ID:KEY_SECRET` value under their documented variable names. ```bash export HF_CREDENTIALS="YOUR_KEY_ID:YOUR_KEY_SECRET" # TypeScript export HF_KEY="YOUR_KEY_ID:YOUR_KEY_SECRET" # Python and cURL ``` ### Request parameters | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `fps` | `integer` | No | `25` | Frames per second. Options: 24, 25, 50. | | `prompt` | `string` | Yes | `—` | Prompt. Minimum length: 2. Maximum length: 5000. | | `duration` | `integer` | Yes | `6` | Duration. Options: 6, 8, 10. | | `resolution` | `string` | No | `"720p"` | Resolution. Options: 720p, 1080p. | | `aspect_ratio` | `string` | No | `"16:9"` | Aspect ratio. Options: 16:9, 9:16. | | `generate_audio` | `boolean` | No | `true` | Generate audio. | | `camera_movement` | `string` | No | `—` | Camera movement. Options: dolly_in, dolly_out, dolly_left, dolly_right, jib_up, jib_down, static, focus_shift. | ## 2. Authentication The official SDKs read credentials from the server environment and send the required `Authorization: Key KEY_ID:KEY_SECRET` header. ### API Key Never expose the secret in browser-side code or commit it to source control. The TypeScript SDK is server-side only. For direct HTTP calls, use: ```http Authorization: Key $HF_KEY ``` ## 3. Queue `subscribe` submits the asynchronous request and waits for a terminal result. The TypeScript SDK polls automatically when `withPolling: true`; the Python SDK's synchronous `subscribe` call also waits. A completed request returns the generated file in the `video` field. ### Submit and wait ```ts control=language group=submit variant=javascript label=TypeScript import { config, higgsfield } from "@higgsfield/client/v2"; config({ credentials: process.env.HF_CREDENTIALS, }); const result = await higgsfield.subscribe( "lightricks/ltx-2.5/text-to-video/pro", { input: { "fps": 25, "prompt": "A cinematic scene at sunset", "duration": 6, "resolution": "720p", "aspect_ratio": "16:9", "generate_audio": true }, withPolling: true, }, ); console.log(result); ``` ```python control=language group=submit variant=python label=Python import higgsfield_client result = higgsfield_client.subscribe( 'lightricks/ltx-2.5/text-to-video/pro', arguments={'fps': 25, 'prompt': 'A cinematic scene at sunset', 'duration': 6, 'resolution': '720p', 'aspect_ratio': '16:9', 'generate_audio': True}, ) print(result) ``` ```bash control=language group=submit variant=curl label=cURL curl --request POST \ --url 'https://api.higgsfield.ai/lightricks/ltx-2.5/text-to-video/pro' \ --header "Authorization: Key $HF_KEY" \ --header "Content-Type: application/json" \ --data @- <<'JSON' { "fps": 25, "prompt": "A cinematic scene at sunset", "duration": 6, "resolution": "720p", "aspect_ratio": "16:9", "generate_audio": true } JSON ``` ### Explicit lifecycle control Use the Python SDK when a worker needs explicit status, result, or cancellation control for an existing request. The TypeScript v2 client currently exposes automatic polling through `subscribe`. ```python import higgsfield_client request_id = "{request_id}" status = higgsfield_client.status(request_id=request_id) result = higgsfield_client.result(request_id=request_id) higgsfield_client.cancel(request_id=request_id) ``` ## Additional Resources - [Model page](https://console.higgsfield.ai/models/lightricks/ltx-2.5/text-to-video/pro) - [This LLM-readable document](https://dash.higgsfield.ai/models/lightricks/ltx-2.5/text-to-video/pro/llms.txt)