Skip to main content
API Reference for ltx/ltx-video-shot-edit, served by Comfy Router from LTX. Input: Text, Image, Video · Output: Video + Audio
This model is queued-only. Submit the request to POST https://api.comfy.org/v2/models/ltx/ltx-video-shot-edit/requests and poll for the result, as the snippets below do. The synchronous route (POST /v2/models/ltx/ltx-video-shot-edit) answers 403 / not_enabled. Queued delivery walks through status, cancellation and collection.

Quick start

Create a key in your Comfy workspace and export it as COMFY_API_KEY. The Python and TypeScript snippets use the Comfy SDKs (pip install comfy-sdk and npm install @comfyorg/sdk); the cURL snippet is the same call over raw HTTP. Model ID: ltx/ltx-video-shot-edit Endpoint: POST https://api.comfy.org/v2/models/ltx/ltx-video-shot-edit/requests Router answers 201 with a request_id as soon as the run is admitted, and the result is collected once it is ready, from this process or another one.

Schema

Input

number
default:"1"
How strongly the edit is applied.Format: double
object[]
required
Edited stills, in any order.
string
required
Edited still as a publicly accessible HTTPS URL or a base64 data URI. PNG, JPEG or WebP, with a displayed aspect ratio within 1% of the source video.
number
required
Time in the source video, in seconds from its start, that this still replaces. It is rounded to the nearest source frame, and each keyframe must map to a different frame.Format: double
string
required
The visual change the edited stills show.
string
required
Source video as a publicly accessible HTTPS URL or a base64 data URI, up to 200 MB by URL or 15 MB as a data URI. Constant 20 to 30 fps, at most 241 frames, at most 1920 pixels on the long side and 1080 on the short side.
Generated from the schema Router serves at GET /v2/models/ltx/ltx-video-shot-edit/openapi.json, the same document it validates a call against before the request reaches the provider.

Output

string
Job completion timestamp (ISO 8601)
string
Job creation timestamp (ISO 8601)
object
Present when status is failed
string
string
string
Unique job identifier
object
Present when status is completed; output URLs expire 24 hours after completion
string
URL of the generated video
string
Job status (pending, processing, completed, failed)

Examples

Input

Output

Before you ship

The SDKs create an Idempotency-Key and reuse it for automatic retries. For manual retries, reuse the original key. Router can hold the connection for up to 10 minutes. When a request fails, Router sends an X-Comfy-Error-Type response header explaining why. A 422 means Router rejected the input before calling the provider, and a 413 means the request body was larger than Router accepts. Download generated assets promptly because result URLs can expire. Any size limit named in a field description above is the provider’s own bound on that field, quoted from the provider’s specification. Router applies a separate cap to the whole request body, which base64-encoded media counts against: see request body size. This page documents one partner model called through Comfy Router. The same comfy-sdk / @comfyorg/sdk package also ships a second client, for running a whole ComfyUI workflow graph on Comfy Cloud: Comfy(api_key=...) / new Comfy({ apiKey }), with client.workflows, client.assets and client.jobs. See Comfy SDKs.

Headers

Authentication, idempotency, request IDs, error buckets, retry pacing, spend limits.

Using the Router API

Model discovery, validation errors, retries, and billing.

Limitations

What Router does not do today, and what to use instead.