Runway Video-to-Video API

Edit / restyle an existing video (Aleph).

OpenAPI Specification

runwayml-video-to-video-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: Runway Character Performance Video-to-Video API
  description: 'The Runway (RunwayML) developer API for generative AI media. All generation is asynchronous: a POST to a generation endpoint creates a task and returns a task id, which the client polls on GET /tasks/{id} until the task reaches SUCCEEDED or FAILED. Every request must include an Authorization Bearer API secret and a dated X-Runway-Version header (for example 2024-11-06). Usage is billed in credits (roughly $0.01 per credit) against a developer organization. This description was authored by API Evangelist from Runway''s public documentation and is not an official Runway artifact; verify shapes against docs.dev.runwayml.com.'
  version: '2024-11-06'
  contact:
    name: Runway
    url: https://docs.dev.runwayml.com
servers:
- url: https://api.dev.runwayml.com/v1
  description: Runway developer API
security:
- bearerAuth: []
tags:
- name: Video-to-Video
  description: Edit / restyle an existing video (Aleph).
paths:
  /video_to_video:
    post:
      operationId: videoToVideo
      tags:
      - Video-to-Video
      summary: Create a video-to-video task
      description: Transform an existing video with a text prompt and optional reference keyframes using the Aleph model. Returns a task id to poll.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VideoToVideoInput'
      responses:
        '200':
          description: The created task.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskCreated'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    VideoToVideoInput:
      type: object
      required:
      - videoUri
      - model
      properties:
        model:
          type: string
          enum:
          - gen4_aleph
          example: gen4_aleph
        videoUri:
          type: string
          description: URL or data URI of the source video to transform.
        promptText:
          type: string
        references:
          type: array
          items:
            type: object
            properties:
              uri:
                type: string
        ratio:
          type: string
        seed:
          type: integer
    TaskCreated:
      type: object
      properties:
        id:
          type: string
          description: The task id to poll on GET /tasks/{id}.
  responses:
    RateLimited:
      description: Too many requests - the account rate or concurrency limit was exceeded.
    Unauthorized:
      description: Missing or invalid API secret.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API secret created in the Runway developer portal (dev.runwayml.com), passed as Authorization Bearer YOUR_API_SECRET. Requests must also send a dated X-Runway-Version header.