提交视频生成任务
接口:POST /runwayml/v1/image_to_video 归属:视频模型/Runway/官方格式 调用地址:Base URL https://api.allyang.cn(OpenAI 兼容前缀 https://api.allyang.cn/v1)+ 上述路径 鉴权:请求头 Authorization: Bearer <你的令牌>;令牌在控制台「令牌管理」创建 说明:下方为本接口契约。路径、字段名与枚举取值与线上接口一致;叙述文字已按本平台口径重写。价格、并发与限流等数值以控制台及实际返回为准,未确认处标注「待补」。
OpenAPI Specification
yaml
openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/runwayml/v1/image_to_video:
post:
summary: 提交视频生成任务
description: "【上游文档链接已按合规要求移除】"
tags:
- 视频模型/Runway/官方格式
parameters:
- name: Content-Type
in: header
description: ''
required: true
example: application/json
schema:
type: string
- name: Authorization
in: header
description: ''
required: false
example: Bearer {{YOUR_API_KEY}}
schema:
type: string
default: Bearer {{YOUR_API_KEY}}
requestBody:
content:
application/json:
schema:
type: object
properties:
promptImage:
type: array
items:
type: object
properties:
position:
type: string
description: "图像在输出视频中的位置:first 表示把图像用作视频第一帧,last 表示用作最后一帧。"
enum:
- first
- last
uri:
type: string
description: "承载编码后图像的 HTTPS 地址或 data URI;图片输入的说明见上文。"
required:
- uri
- position
seed:
type: integer
model:
type: string
description: "取值:“gen3a_turbo”、“gen4_turbo”。"
promptText:
type: string
watermark:
type: boolean
duration:
type: integer
description: "5 或 10。"
ratio:
type: string
description: "gen3a_turbo 仅支持 1280:768(横屏)与 768:1280(竖屏);gen4_turbo 支持 1280:720、720:1280、1104:832、832:1104、960:960、1584:672。"
required:
- model
- promptText
examples: {}
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties:
id:
type: string
required:
- id
example:
id: 13db8785-77bc-4273-883b-e462f3e7ff52
headers: {}
security: []
components:
schemas: {}
securitySchemes: {}
servers: []
security: []