众扬汇 AI 开放平台 API 文档

视频风格重绘

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: "本页接口说明详见下方接口定义;参数取值与返回以本平台实测为准。"
  version: 1.0.0
paths:
  /qwen/api/v1/services/aigc/video-generation/video-synthesis:
    post:
      summary: 视频风格重绘
      deprecated: false
      description: "视频风格重绘接口,可将输入视频转换为多种预设艺术风格,并保持画面动态流畅、内容连贯。支持 8 种预设风格:日式漫画、美式漫画、清新漫画、3D 卡通、国风卡通、纸艺风格、简易插画、国风水墨。"
      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
                  description: "模型名,设置为 video-style-transform"
                input:
                  type: object
                  properties:
                    video_url:
                      type: string
                      description: "输入视频的公网 URL。要求:单边尺寸不小于 256 像素、不超过 4096 像素,长边与短边比例不超过 1.8;格式支持 MP4、AVI、MKV、MOV、FLV、TS、MPG、MXF;时长不超过 30 秒;大小不超过 100MB;URL 若含中文等非 ASCII 字符需先编码。"
                  required:
                    - video_url
                parameters:
                  type: object
                  properties:
                    style:
                      type: integer
                      description: "风格类型(预设):0 日式漫画(默认)、1 美式漫画、2 清新漫画、3 3D 卡通、4 国风卡通(古装输入最佳)、5 纸艺风格、6 简易插画、7 国风水墨。"
                    video_fps:
                      type: integer
                      description: "生成视频帧率,默认 15,取值范围 15–25"
                    animate_emotion:
                      type: boolean
                      description: "是否进行面部表情优化,默认 true;开启后通常可提升口型与表情同步精度,人脸区域占比较小时关闭可能效果更佳。"
                    min_len:
                      type: integer
                      description: "输出视频短边像素,用于控制分辨率;可选 720 或 540,默认 720"
                    use_SR:
                      type: boolean
                      description: "是否对风格重绘后的视频做超分辨率(SR)处理,默认 false;设为 true 可提升画质。"
              required:
                - model
                - input
                - parameters
            example:
              model: video-style-transform
              input:
                video_url: >-
                  https://files.example.com/file-manage-files/zh-CN/20250704/viwndw/%E5%8E%9F%E8%A7%86%E9%A2%91.mp4
              parameters:
                style: 0
                video_fps: 15
      responses:
        '200':
          description: "该字段的取值与含义以本平台实际返回为准。"
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
      security: []
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []

使用提示:本页接口的 Base URL 为 https://api.allyang.cn,请求头需携带 Authorization: Bearer <令牌>(令牌在控制台「令牌管理」中创建)。示例中的任务 ID、时间戳与文件地址均为示意值,实际以平台返回为准。

模型名请在「模型广场」复制后填入,不要手输;计费、限流与在售清单以平台实测为准(部分数值待补)。