众扬汇 AI 开放平台 API 文档

图生动作

接口:POST /qwen/api/v1/services/aigc/image2video/video-synthesis 归属:视频模型/qwen视频模型 调用地址: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:
  /qwen/api/v1/services/aigc/image2video/video-synthesis:
    post:
      summary: 图生动作
      description: "通义万相图生动作:以人物图片配合参考视频,输出人物动作视频,把参考视频中角色的动作与表情迁移到图片角色上。适用复刻舞蹈、高难度肢体动作、影视剧表情与动作细节等场景,可作为低成本动捕替代方案。"
      tags:
        - 视频模型/qwen视频模型
      parameters:
        - name: X-DashScope-Async
          in: header
          description: ''
          required: true
          example: enable
          schema:
            type: string
        - 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:
                model:
                  type: string
                input:
                  type: object
                  properties:
                    image_url:
                      type: string
                      description: "输入图像的公网 HTTP/HTTPS 链接,链接不得含中文等非 ASCII 字符,必要时先编码;本地文件可先上传换取临时 URL。格式 JPG、JPEG、PNG、BMP、WEBP;宽高均落在 [200, 4096] 像素、宽高比介于 1:3 与 3:1;体积不超过 5MB;画面要求仅一人、正对镜头、人脸完整无遮挡且占比适中。示例值:<示例图片地址待补>。"
                    video_url:
                      type: string
                      description: "参考视频的公网 HTTP/HTTPS 链接;链接不得含中文等非 ASCII 字符,否则需先编码。本地文件可先上传换取临时 URL。格式 MP4、AVI、MOV;时长 2~30s;宽高均落在 [200, 2048] 像素、宽高比介于 1:3 与 3:1 之间;体积不超过 200MB;画面要求仅一人、正对镜头、人脸完整无遮挡且占比适中。提示:提高参考视频的分辨率与帧率有助于提升输出画质。示例值:<示例视频地址待补>。"
                  required:
                    - image_url
                    - video_url
                parameters:
                  type: object
                  properties:
                    mode:
                      type: string
                      description: "模型服务模式,两种取值。wan-std(标准模式):生成较快、性价比较高,适合快速预览与基础动画,处理 1s 视频约需 8s。wan-pro(专业模式):动画更流畅、效果更好,耗时与费用相应增加,处理 1s 视频约需 13s。"
                    check_image:
                      type: boolean
                      description: "是否进行图像检测。true(默认)对传入图片做检测;false 跳过检测、直接进入后续处理。"
                  required:
                    - mode
              required:
                - model
                - input
                - parameters
            example:
              model: wan2.2-animate-move
              input:
                image_url: >-
                  https://api.allyang.cn/<外部地址已按合规要求移除>
                video_url: >-
                  https://api.allyang.cn/<外部地址已按合规要求移除>
              parameters:
                mode: wan-std
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
      security: []
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []