# LTX Video-0.9.7 13B Distilled > Generate videos from prompts using LTX Video-0.9.7 13B Distilled and custom LoRA ## Overview - **Endpoint**: `https://inference.mixio.pro/models/run` - **Model ID**: `mixio/ltx-video-13b-distilled` - **Category**: text-to-video ## Credits - **Currency**: credits - **Rounding**: Per-unit credit rates use the catalog precision; the final request charge rounds up to a whole credit. - **Estimate API**: `/models/pricing/estimate` - **Rate card**: `video-standard` - **Base credits**: 53 - **Minimum credits**: 53 ## API Information ### Input Schema - **`seed`** (`unknown`, _optional_): Random seed for generation - **`loras`** (`array`, _optional_): LoRA weights to use for generation - Default: `[]` - **`prompt`** (`string`, _required_): Text prompt to guide generation - **`frame_rate`** (`integer`, _optional_): The frame rate of the video. - Default: `24` - **`num_frames`** (`integer`, _optional_): The number of frames in the video. - Default: `121` - **`resolution`** (`string`, _optional_): Resolution of the generated video. - Default: `"720p"` - Options: `480p`, `720p` - **`aspect_ratio`** (`string`, _optional_): Aspect ratio of the generated video. - Default: `"16:9"` - Options: `9:16`, `1:1`, `16:9` - **`expand_prompt`** (`boolean`, _optional_): Whether to expand the prompt using a language model. - Default: `false` - **`reverse_video`** (`boolean`, _optional_): Whether to reverse the video. - Default: `false` - **`negative_prompt`** (`string`, _optional_): Negative prompt for generation - Default: `"worst quality, inconsistent motion, blurry, jittery, distorted"` - **`enable_detail_pass`** (`boolean`, _optional_): Whether to use a detail pass. If True, the model will perform a second pass to refine the video and enhance details. This incurs a 2.0x cost multiplier on the base price. - Default: `false` - **`enable_safety_checker`** (`boolean`, _optional_): Whether to enable the safety checker. - Default: `true` - **`temporal_adain_factor`** (`number`, _optional_): The factor for adaptive instance normalization (AdaIN) applied to generated video chunks after the first. This can help deal with a gradual increase in saturation/contrast in the generated video by normalizing the color distribution across the video. A high value will ensure the color distribution is more consistent across the video, while a low value will allow for more variation in color distribution. - Default: `0.5` - **`tone_map_compression_ratio`** (`number`, _optional_): The compression ratio for tone mapping. This is used to compress the dynamic range of the video to improve visual quality. A value of 0.0 means no compression, while a value of 1.0 means maximum compression. - Default: `0` - **`first_pass_num_inference_steps`** (`integer`, _optional_): Number of inference steps during the first pass. - Default: `8` - **`second_pass_skip_initial_steps`** (`integer`, _optional_): The number of inference steps to skip in the initial steps of the second pass. By skipping some steps at the beginning, the second pass can focus on smaller details instead of larger changes. - Default: `5` - **`second_pass_num_inference_steps`** (`integer`, _optional_): Number of inference steps during the second pass. - Default: `8` **Example**: ```json { "prompt": "" } ``` ### Output Schema - **`seed`** (`integer`): The seed used for generation. - **`video`** (`unknown`): The generated video file. - **`prompt`** (`string`): The prompt used for generation. ## Usage Examples ### cURL ```bash curl "https://inference.mixio.pro/models/run" \ -H "content-type: application/json" \ -H "x-api-key: $MIXIO_API_KEY" \ -d '{"endpointId": "mixio/ltx-video-13b-distilled", "input": {"prompt": "..."}}' ``` ### TypeScript ```typescript import { client, postModelsRun } from "@mixio-pro/sdk-ts"; client.setConfig({ baseUrl: "https://inference.mixio.pro", headers: { "x-api-key": process.env.MIXIO_API_KEY } }); const { data } = await postModelsRun({ body: { endpointId: "mixio/ltx-video-13b-distilled", input: { prompt: "..." } } }); ``` ### Python ```python from mixio_pro import Sdk sdk = Sdk(base_url="https://inference.mixio.pro", headers={"x-api-key": "your-key"}) result = sdk.client.post("/models/run", json={"endpointId": "mixio/ltx-video-13b-distilled", "input": {"prompt": "..."}}) print(result.json()["requestId"]) ``` ## Additional Resources - [Console](https://console.mixio.pro/models/mixio/ltx-video-13b-distilled) - [API Docs](https://inference.mixio.pro/docs) - [OpenAPI Schema](https://inference.mixio.pro/models/openapi.json?endpoint_id=mixio/ltx-video-13b-distilled)