RunwayML

RunwayML · GPT アクション

RunwayML API

API for generating videos and checking the status of tasks in RunwayML

  • GET /statusGetTaskStatus

    Get the status of your task

  • POST /generate/textGenerateVideoFromText

    Generate a video from a text prompt

  • POST /generate/imageGenerateVideoFromImage

    Generate a video from an image prompt

元の API スキーマ
{
  "openapi": "3.1.0",
  "info": {
    "title": "RunwayML API",
    "description": "API for generating videos and checking the status of tasks in RunwayML",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://runwayml.p.rapidapi.com"
    }
  ],
  "paths": {
    "/status": {
      "get": {
        "description": "Get the status of your task",
        "operationId": "GetTaskStatus",
        "parameters": [
          {
            "name": "uuid",
            "in": "query",
            "description": "The UUID of the task to retrieve the status for",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "deprecated": false
      }
    },
    "/generate/text": {
      "post": {
        "description": "Generate a video from a text prompt",
        "operationId": "GenerateVideoFromText",
        "requestBody": {
          "description": "Details for the video generation",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text_prompt": {
                    "type": "string",
                    "description": "The text prompt for the video"
                  },
                  "width": {
                    "type": "integer",
                    "description": "The width of the video"
                  },
                  "height": {
                    "type": "integer",
                    "description": "The height of the video"
                  },
                  "motion": {
                    "type": "integer",
                    "description": "The motion setting for the video"
                  },
                  "seed": {
                    "type": "integer",
                    "description": "The seed value for the video"
                  },
                  "upscale": {
                    "type": "boolean",
                    "description": "Whether to upscale the video"
                  },
                  "interpolate": {
                    "type": "boolean",
                    "description": "Whether to interpolate the video"
                  }
                }
              }
            }
          },
          "deprecated": false
        }
      }
    },
    "/generate/image": {
      "post": {
        "description": "Generate a video from an image prompt",
        "operationId": "GenerateVideoFromImage",
        "requestBody": {
          "description": "Details for the video generation",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "img_prompt": {
                    "type": "string",
                    "description": "The image prompt for the video"
                  },
                  "motion": {
                    "type": "integer",
                    "description": "The motion setting for the video"
                  },
                  "seed": {
                    "type": "integer",
                    "description": "The seed value for the video"
                  },
                  "upscale": {
                    "type": "boolean",
                    "description": "Whether to upscale the video"
                  },
                  "interpolate": {
                    "type": "boolean",
                    "description": "Whether to interpolate the video"
                  }
                }
              }
            }
          },
          "deprecated": false
        }
      }
    }
  },
  "components": {
    "schemas": {}
  }
}