{"openapi":"3.0.2","info":{"title":"runway/aleph2","description":"The request body Comfy Router accepts for the model \"runway/aleph2\", 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":"fec441482380"},"paths":{"/v2/models/runway/aleph2":{"post":{"operationId":"runRouterModel","summary":"Run runway/aleph2 synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"Request to edit an input video into a new video using Runway's API.","example":{"promptText":"recolor the scene in cool blue tones","videoUri":"https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_1MB.mp4"},"properties":{"contentModeration":{"$ref":"#/components/schemas/RunwayContentModeration"},"keyframes":{"description":"Timed guidance images placed at specific points in the input video. Up to 5 keyframes.","items":{"$ref":"#/components/schemas/RunwayVideoToVideoKeyframe"},"maxItems":5,"minItems":1,"type":"array"},"model":{"description":"Model to use for generation. On the Comfy Router route `POST /v2/models/runway/{model}` this field is supplied from the path and MUST NOT be sent; on the v1 `POST /proxy/runway/video_to_video` route it is required and constrained to the RunwayVideoToVideoModelEnum (`aleph2`).","nullable":true,"type":"string"},"promptImage":{"description":"A list of up to 5 image keyframes for guiding the edit at specific points in the video.","items":{"$ref":"#/components/schemas/RunwayVideoToVideoPromptImage"},"maxItems":5,"minItems":1,"type":"array"},"promptText":{"description":"A non-empty string up to 1000 characters describing what should appear in the output.","maxLength":1000,"minLength":1,"type":"string"},"seed":{"description":"Random seed for generation.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},"videoUri":{"description":"The input video to edit (HTTPS URL, Runway upload URI, or data URI). Must be 30 seconds or shorter.","type":"string"}},"required":["promptText","videoUri"],"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/RunwayTaskStatusResponse"},{"properties":{"output":{"description":"The finished generation's asset URLs — for `runway/gen4_turbo` and `runway/aleph2` each element is a VIDEO URL. Present once the task terminates successfully; this list IS the result.","items":{"type":"string"},"type":"array"}},"type":"object"}],"description":"Comfy Router output schema for the Runway video models: the terminal `GET /v1/tasks/{id}` document, forwarded unchanged. Both ids are SUBMIT-AND-POLL — `routerresult/classification.go` records `{provider: runway, endpoint: /image_to_video}` and `{provider: runway, endpoint: /video_to_video}` as `ReturnModeSubmitPoll`, both sharing the one `GET /proxy/runway/tasks/{task_id}` poll route — and Router polls on the caller's behalf, so the body a caller receives is the finished task rather than the `{\"id\": ...}` handle each underlying submit answers with.\nTHE ASSET IS THE `output` LIST ITSELF. `output` is an array of URL STRINGS — not objects with a URL inside — so the leaf a caller reads is `output[]`, and there is no deeper field to key completion off. For these models its element is a GENERATED VIDEO URL. The image model of the same family answers the same document with an image URL in that list; see `RunwayImageRouterOutput`.\n`output` is absent until the task reaches a terminal state, and a `SUCCEEDED` task carrying an empty `output` is a success that produced nothing — `routerpollstate.classifyRunway` (`FamilyRunway`) draws exactly that line, keying success on a non-empty `output` and answering `success_without_output` otherwise. Through Router that distinction is already settled, because such a task is answered as a Comfy Router error rather than with this document, so a `200` here always carries at least one URL.\nThe URLs are served from Runway's own asset host and are NOT permanent — download them promptly rather than storing them. `status` is Runway's own UPPERCASE vocabulary (`PENDING`, `RUNNING`, `THROTTLED`, `SUCCEEDED`, `FAILED`, `CANCELLED`); `SUCCEEDED` is the one terminal success, `FAILED` and `CANCELLED` are terminal failures, and the classifier upper-cases before comparing. `progress` is populated only while `status` is `RUNNING`, so it is not present on the document Router returns.","example":{"createdAt":"2027-01-01T00:00:00Z","id":"5f7c1b28-9a03-4e61-8d2f-1b2c3d4e5f60","output":["https://example.invalid/runway/gen4_turbo/generated.mp4"],"status":"SUCCEEDED"}}}}}}}}},"components":{"schemas":{"RunwayContentModeration":{"description":"Settings that affect the behavior of the content moderation system.","properties":{"publicFigureThreshold":{"description":"When set to `low`, the content moderation system will be less strict about preventing generations that include recognizable public figures.","enum":["auto","low"],"type":"string"}},"type":"object"},"RunwayTaskStatusEnum":{"description":"Possible statuses for a Runway task.","enum":["SUCCEEDED","RUNNING","FAILED","PENDING","CANCELLED","THROTTLED"],"type":"string"},"RunwayTaskStatusResponse":{"properties":{"createdAt":{"description":"Task creation timestamp","format":"date-time","type":"string"},"id":{"description":"Task ID","type":"string"},"output":{"description":"Array of the finished task's output asset URLs. This route is shared by every Runway model, so the medium follows the model that was submitted - a video URL for the image_to_video and video_to_video models, an image URL for the text_to_image model.","items":{"type":"string"},"type":"array"},"progress":{"description":"Float value between 0 and 1 representing the progress of the task. Only available if status is RUNNING.","format":"float","maximum":1,"minimum":0,"type":"number"},"status":{"$ref":"#/components/schemas/RunwayTaskStatusEnum"}},"required":["id","status","createdAt"],"type":"object"},"RunwayVideoToVideoKeyframe":{"description":"Timed guidance image placed at a specific point in the input video.","oneOf":[{"properties":{"seconds":{"description":"Absolute timestamp in seconds from the start of the input video when this guidance image should apply.","maximum":30,"minimum":0,"type":"number"},"uri":{"description":"A HTTPS URL, Runway or data URI containing an encoded image.","type":"string"}},"required":["uri","seconds"],"type":"object"},{"properties":{"at":{"description":"Position as a fraction [0.0, 1.0] of the input video duration when this guidance image should apply.","maximum":1,"minimum":0,"type":"number"},"uri":{"description":"A HTTPS URL, Runway or data URI containing an encoded image.","type":"string"}},"required":["uri","at"],"type":"object"}]},"RunwayVideoToVideoPromptImage":{"description":"An image keyframe for guiding the edit at a specific point in the video.","properties":{"position":{"$ref":"#/components/schemas/RunwayVideoToVideoPromptImagePosition"},"uri":{"description":"A HTTPS URL, Runway or data URI containing an encoded image.","type":"string"}},"required":["uri","position"],"type":"object"},"RunwayVideoToVideoPromptImagePosition":{"description":"The position in the output video where the image should apply.","oneOf":[{"description":"\"first\" places the image at the start (timestamp 0); \"last\" places it at the end (timestamp = duration).","enum":["first","last"],"type":"string"},{"description":"Places the image at an absolute timestamp.","properties":{"timestampSeconds":{"description":"Absolute timestamp in seconds from the start of the output video.","minimum":0,"type":"number"},"type":{"enum":["timestamp"],"type":"string"}},"required":["type","timestampSeconds"],"type":"object"},{"description":"Places the image at a relative position.","properties":{"positionPercentage":{"description":"Position as a fraction [0.0, 1.0] of the total video duration.","maximum":1,"minimum":0,"type":"number"},"type":{"enum":["position"],"type":"string"}},"required":["type","positionPercentage"],"type":"object"}]}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"x-comfy-router-model-id":"runway/aleph2","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["video","text","image"],"x-comfy-router-output-modalities":["video"]}
