> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ltx.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ltx.io/_mcp/server.

# Input Formats

> Complete guide to providing image and video inputs to the LTX API. Learn about upload methods, supported formats, codecs, and constraints.

## Input Methods

The API accepts media through `image_uri`, `video_uri`, and `audio_uri` parameters using three methods:

| Method                                     | Max Size                                                                                      |
| ------------------------------------------ | --------------------------------------------------------------------------------------------- |
| [**Cloud Storage**](#cloud-storage-upload) | 200 MB                                                                                        |
| [**HTTPS URL**](#https-url)                | 15 MB (images), 32 MB (videos/audio) — [higher on some endpoints](#per-endpoint-video-limits) |
| [**Data URI**](#data-uri-base64)           | 7 MB (images), 15 MB (videos/audio)                                                           |

---

### Cloud Storage Upload

Upload via [`v1/upload`](/api-documentation/api-reference/upload/create-upload) endpoint. Returns a `storage_uri` for use in generation requests. Pass it as-is.

```json
{
  "image_uri": "ltx://<bucket>/uploads/<file-id>"
}
```

| Max file size | Upload URL expires | File available | Authentication |
| ------------- | ------------------ | -------------- | -------------- |
| 200 MB        | 1 hour             | 24 hours       | API key        |

> **Note**
>
> 200 MB is the upload endpoint cap. Each feature applies its own size limit when the file is used in a generation request (for example, images are capped at 15 MB), so a large upload may be rejected at generation time depending on the endpoint. See [Per-endpoint video limits](#per-endpoint-video-limits).

---

### HTTPS URL

Direct link to publicly accessible files. API fetches during request.

```json
{
  "image_uri": "YOUR_IMAGE_URI"
}
```

| Property | Images | Videos | Audio |
| -------- | ------ | ------ | ----- |
| Max size | 15 MB  | 32 MB  | 32 MB |
| Timeout  | 30s    | 30s    | 30s   |

**Requirements:**

* HTTPS only
* Domain names (no IPs)
* Publicly accessible
* No redirects
* The response's `Content-Type` must be one of the MIME types in [Supported Formats](#supported-formats). For example, `image/jpg` and `application/octet-stream` are rejected.

---

### Data URI (Base64)

Inline base64-encoded data. Format: `data:{mime-type};base64,{encoded-data}`

```json
{
  "image_uri": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAA..."
}
```

| Property         | Images | Videos | Audio |
| ---------------- | ------ | ------ | ----- |
| Max encoded size | 7 MB   | 15 MB  | 15 MB |

> **Note**
>
> Base64 encoding increases file size by \~33%. The whole JSON request body is capped at 32 MB, so a request carrying several data URIs can exceed it even when each fits its own limit. Over the cap, the API returns `413 request_too_large_error`.

---

## Per-endpoint video limits

Video input is capped at 32 MB on most endpoints. These accept more:

| Endpoint                                                                                                        | Max video size |
| --------------------------------------------------------------------------------------------------------------- | -------------- |
| [extend](/api-documentation/api-reference/async-video-generation/submit-extend)                                 | 100 MB         |
| [video-to-video-hdr](/api-documentation/api-reference/async-video-generation/submit-video-to-video-hdr)         | 200 MB         |
| [video-to-video-reframe](/api-documentation/api-reference/async-video-generation/submit-video-to-video-reframe) | 200 MB         |
| [video-alpha-gen](/api-documentation/api-reference/async-video-generation/submit-video-alpha-gen)               | 200 MB         |
| [video-upscale](/api-documentation/api-reference/async-video-generation/submit-video-upscale)                   | 200 MB         |

To send a file this large, use [Cloud Storage](#cloud-storage-upload) or an [HTTPS URL](#https-url). [Data URI](#data-uri-base64) input keeps its own lower limit on every endpoint.

---

## Supported Formats

### Images

| Format     | MIME Type    |
| ---------- | ------------ |
| PNG        | `image/png`  |
| JPEG / JPG | `image/jpeg` |
| WEBP       | `image/webp` |

### Videos

| Format | MIME Type          | Codecs       |
| ------ | ------------------ | ------------ |
| MP4    | `video/mp4`        | H.264, H.265 |
| MOV    | `video/quicktime`  | H.264, H.265 |
| MKV    | `video/x-matroska` | H.264, H.265 |

### Audio

| Format | MIME Type    | Codecs                                                     |
| ------ | ------------ | ---------------------------------------------------------- |
| WAV    | `audio/wav`  | PCM (16-bit, 24-bit, 32-bit float), AAC, MP3, Vorbis, FLAC |
| MP3    | `audio/mpeg` | MP3                                                        |
| M4A    | `audio/mp4`  | AAC                                                        |
| OGG    | `audio/ogg`  | Opus, Vorbis                                               |

> **Note**
>
> Other PCM formats, such as 32-bit integer or 8-bit, are not supported.