众扬汇 AI 开放平台 API 文档

提交Video任务(文生视频、文图生视频)

接口:POST /mj/submit/video 归属:绘图模型/Mid journey/任务提交 调用地址: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:
  /mj/submit/video:
    post:
      summary: '提交Video任务(文生视频、文图生视频) '
      description: "一次生成 4 个视频。"
      tags:
        - 绘图模型/Mid journey/任务提交
        - 任务提交
      parameters:
        - 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:
                prompt:
                  type: string
                motion:
                  type: string
                  enum:
                    - low
                    - high
                image:
                  type: string
                  description: "url 或 base64;首帧图片,扩展时可留空。"
                notifyHook:
                  type: string
                action:
                  type: string
                  description: "扩展视频:对视频任务进行操作;不为空时 index、taskId 必填。"
                  enum:
                    - extend
                index:
                  type: string
                  minLength: 0
                  maxLength: 3
                  description: "扩展视频:所操作视频的索引号。"
                task_id:
                  type: string
                  description: "扩展视频:需要操作的视频父任务 ID。"
              required:
                - prompt
                - motion
                - image
            example:
              prompt: 飞来一只蜜蜂
              motion: low
              image: >-
                https://api.allyang.cn/<外部地址已按合规要求移除>
              notifyHook: ''
              state: '9'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/%E6%8F%90%E4%BA%A4%E7%BB%93%E6%9E%9C'
          headers: {}
        '201':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
        '401':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
        '403':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
        '404':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
      security: []
components:
  schemas:
    提交结果:
      type: object
      required:
        - code
        - description
      properties:
        code:
          type: integer
          format: int32
          description: "1 表示提交成功、21 表示已存在、22 表示排队中,其余取值为错误。"
          examples:
            - 1
        description:
          type: string
          description: "描述。"
          examples:
            - 提交成功
        properties:
          type: object
          description: "扩展字段。"
          properties: {}
        result:
          type: string
          description: "任务 ID。"
          examples:
            - 1320098173412546
      title: 提交结果
  securitySchemes: {}
servers: []
security: []