{"openapi":"3.0.2","info":{"title":"runway/gen4_turbo","description":"The request body Comfy Router accepts for the model \"runway/gen4_turbo\", 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":"997e1bf5e175"},"paths":{"/v2/models/runway/gen4_turbo":{"post":{"operationId":"runRouterModel","summary":"Run runway/gen4_turbo synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"example":{"duration":5,"promptImage":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAIAAADTED8xAAAC2klEQVR42u3TQQ0AQAgEMeTgX8W5gi8OjoROVgGhUdLhwgkEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAEgASABIAAkACQAJAAkACQAJAAkACQAJAAkACQAFjSy7SPAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8IIAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASABIAEgASABIAEgASABIAEgASABIAEgASABIAAgACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAadSRm+WukYdfewAAAABJRU5ErkJggg==","ratio":"1280:720","seed":42},"properties":{"duration":{"$ref":"#/components/schemas/RunwayDurationEnum"},"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/image_to_video` route it is required and constrained to the RunwayModelEnum (`gen4_turbo`).","nullable":true,"type":"string"},"promptImage":{"$ref":"#/components/schemas/RunwayPromptImageObject"},"promptText":{"description":"Text prompt for the generation","maxLength":1000,"type":"string"},"ratio":{"$ref":"#/components/schemas/RunwayAspectRatioEnum"},"seed":{"description":"Random seed for generation","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"}},"required":["promptImage","seed","duration","ratio"],"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":{"RunwayAspectRatioEnum":{"enum":["1280:720","720:1280","1104:832","832:1104","960:960","1584:672","1280:768","768:1280"],"type":"string"},"RunwayDurationEnum":{"enum":[2,3,4,5,6,7,8,9,10],"type":"integer"},"RunwayPromptImageDetailedObject":{"description":"Represents an image with its position in the video sequence.","properties":{"position":{"description":"The position of the image in the output video. Runway documented 'last' as supported by the gen3a_turbo model only, and that model reached its sunset date on 2026-07-30; no model this operation still admits is documented to accept it. Consult Runway's own documentation before relying on it.","enum":["first","last"],"type":"string"},"uri":{"description":"A HTTPS URL or data URI containing an encoded image.","type":"string"}},"required":["uri","position"],"type":"object"},"RunwayPromptImageObject":{"description":"Image(s) to use for the video generation. Can be a single URI or an array of image objects with positions.","oneOf":[{"description":"A single HTTPS URL or data URI for the first frame image.","type":"string"},{"description":"An array of image objects with positions. No two images can have the same position.","items":{"$ref":"#/components/schemas/RunwayPromptImageDetailedObject"},"type":"array"}]},"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"}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"x-comfy-router-model-id":"runway/gen4_turbo","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["image","text"],"x-comfy-router-output-modalities":["video"]}
