{"openapi":"3.0.2","info":{"title":"ltx/ltx-2-5-fast","description":"The request body Comfy Router accepts for the model \"ltx/ltx-2-5-fast\", and the response body it returns. The INPUT schema is the same schema the server validates a call against before it reaches the provider, so what is published and what is enforced cannot differ. `x-comfy-router-input-modalities` records the media kinds the model is documented to accept; the request schema is shared across sibling models and may admit media kinds this model ignores. The OUTPUT schema describes the provider's native result document exactly as Router returns it: Router does not validate, narrow or re-envelope the response, so the output schema is descriptive rather than enforced, and Comfy owns no output shape of its own.","version":"36d5297387ff"},"paths":{"/v2/models/ltx/ltx-2-5-fast":{"post":{"operationId":"runRouterModel","summary":"Run ltx/ltx-2-5-fast synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"The LTX text-to-video fields, shared by the v1 `POST /proxy/ltx/v1/text-to-video` and `POST /proxy/ltx/v2/text-to-video` request bodies and the Comfy Router input schema for the `ltx/*` models. See the note above this component for why the two surfaces share properties but not `required`.\n`required` here is the ROUTER-SAFE floor: `model` is absent from it because Router writes the path's model into the body after routervalidate.Guard has already validated the caller's bytes. The v1 wrapper `LTXText2VideoRequest` re-adds it.","example":{"duration":2,"fps":24,"generate_audio":false,"prompt":"A single red maple leaf resting on a plain white background.","resolution":"1280x720"},"properties":{"duration":{"description":"Video duration in seconds (maximum depends on resolution and frame rate)","enum":[2,3,4,5,6,8,10,12,14,16,18,20],"type":"integer"},"fps":{"default":25,"description":"Frame rate in frames per second","enum":[24,25,48,50],"type":"integer"},"generate_audio":{"default":true,"description":"Generate audio for the video","type":"boolean"},"model":{"description":"Model to use for generation. On the Comfy Router route `POST /v2/models/ltx/{model}` this field is supplied from the path and may be omitted. The spellings LTX serves on this operation -- the set Comfy Router addresses as `ltx/\u003cmodel\u003e` -- are ltx-2-5-fast and ltx-2-5-pro; they are written out here rather than constrained to an enum for the reason the comment above gives. Which resolutions each one admits is the `x-comfy-model-resolutions` matrix on the `resolution` property below.","nullable":true,"type":"string"},"prompt":{"description":"Text prompt describing the desired video content","maxLength":10000,"type":"string"},"resolution":{"description":"Output video resolution. The enum is the union over all models; the supported set is per model. Supported pairs: ltx-2-5-fast: 1280x720, 720x1280, 1920x1080, 1080x1920, 2560x1440, 1440x2560, 3840x2160, 2160x3840; ltx-2-5-pro: 1280x720, 720x1280, 1920x1080, 1080x1920. Other (model, resolution) pairs are not supported; the v2 routes reject them with 400. The same matrix is published machine-readably in this property's x-comfy-model-resolutions extension.","enum":["1280x720","720x1280","1920x1080","1080x1920","2560x1440","1440x2560","3840x2160","2160x3840"],"type":"string","x-comfy-model-resolutions":{"ltx-2-5-fast":["1280x720","720x1280","1920x1080","1080x1920","2560x1440","1440x2560","3840x2160","2160x3840"],"ltx-2-5-pro":["1280x720","720x1280","1920x1080","1080x1920"]}}},"required":["prompt","duration","resolution"],"type":"object"}}}},"responses":{"200":{"description":"OK - the model's native JSON output, returned unchanged; the schema describes the provider's terminal result document as Router returns it.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/LTXJobStatusResponse"}],"description":"Comfy Router output schema for the LTX models: the terminal `LTXJobStatusResponse` poll document, forwarded unchanged. LTX v2 is submit-and-poll and Router polls on the caller's behalf, so the body a caller receives is the finished job (`status: completed`) rather than the task handle the underlying submit returns.\nThe generated video is at `result.video_url`, and `result` is only present on a completed job. Output URLs expire 24 hours after completion, so download promptly rather than storing the link. A failed job carries `error.type` and `error.message` instead of `result`.","example":{"completed_at":"2026-01-01T00:02:10Z","created_at":"2026-01-01T00:00:00Z","id":"3f7a1b28-5c0d-4e91-8a6f-1b2c3d4e5f60","result":{"video_url":"https://example.invalid/ltx/generated.mp4"},"status":"completed"}}}}}}}}},"components":{"schemas":{"LTXJobStatusResponse":{"properties":{"completed_at":{"description":"Job completion timestamp (ISO 8601)","type":"string"},"created_at":{"description":"Job creation timestamp (ISO 8601)","type":"string"},"error":{"description":"Present when status is failed","properties":{"message":{"type":"string"},"type":{"type":"string"}},"type":"object"},"id":{"description":"Unique job identifier","type":"string"},"result":{"description":"Present when status is completed; output URLs expire 24 hours after completion","properties":{"video_url":{"description":"URL of the generated video","type":"string"}},"type":"object"},"status":{"description":"Job status (pending, processing, completed, failed)","type":"string"}},"type":"object"}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"x-comfy-router-model-id":"ltx/ltx-2-5-fast","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["text"],"x-comfy-router-output-modalities":["video","audio"]}
