Skip to content

提交视频生成任务

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /runwayml/v1/image_to_video:
    post:
      summary: 提交视频生成任务
      deprecated: false
      description: >-
        官方文档:https://docs.dev.runwayml.com/api/#tag/Start-generating/paths/~1v1~1image_to_video/post
      tags:
        - 视频模型/Runway 视频生成
      parameters:
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Accept
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Authorization
          in: header
          description: ''
          required: true
          example: Bearer {{YOUR_API_KEY}}
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                promptImage:
                  description: 必填,HTTPS URL或数据URI,包含编码图像作为生成视频的第一帧
                  type: string
                model:
                  type: string
                  description: 必填,指定使用的模型变体,可选值:"gen4_turbo"或"gen3a_turbo"
                ratio:
                  type: string
                  description: ' 必填,输出视频分辨率,格式为"宽度:高度",不同模型支持不同分辨率'
                seed:
                  description: 可选,随机种子值(0-4294967295),相同种子对相同请求产生相似结果
                  type: integer
                promptText:
                  description: 可选,字符串(≤1000字符),详细描述期望在视频中出现的内容
                  type: string
                duration:
                  description: 可选,视频时长(秒),可选值:5或10,默认为10
                  type: integer
              required:
                - promptImage
                - model
                - ratio
                - seed
                - promptText
                - duration
              x-apifox-orders:
                - promptImage
                - model
                - ratio
                - seed
                - promptText
                - duration
            example:
              promptImage: https://www.bt.cn/bbs/template/qiao/style/image/btlogo.png
              model: gen4_turbo
              promptText: cat dance
              watermark: false
              duration: 5
              ratio: '1280:768'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                  request_id:
                    type: string
                  data:
                    type: object
                    properties:
                      task_id:
                        type: string
                      task_status:
                        type: string
                      created_at:
                        type: integer
                      updated_at:
                        type: integer
                    required:
                      - task_id
                      - task_status
                      - created_at
                      - updated_at
                required:
                  - code
                  - message
                  - request_id
                  - data
              example:
                id: 4665a07c-7641-4809-a133-10786201bb56
                prompt: ''
                state: pending
                queue_state: null
                created_at: '2024-12-22T13:38:40.139409Z'
                batch_id: ''
                video: null
                video_raw: null
                liked: null
                estimate_wait_seconds: null
                thumbnail: null
                last_frame: null
          headers: {}
          x-apifox-name: 成功
      security:
        - bearer: []
      x-apifox-folder: 视频模型/Runway 视频生成
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5443236/apis/api-247132317-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://www.anyapi.vip
    description: 正式环境
security:
  - bearer: []

AnyAPI — 专业的 AI 接口聚合服务