Skip to content

多图参考生视频

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /kling/v1/videos/multi-image2video:
    post:
      summary: 多图参考生视频
      deprecated: false
      description: ''
      tags:
        - 可灵 Kling 平台/多图参考生视频
      parameters:
        - name: Content-Type
          in: header
          description: ''
          required: false
          example: application/json
          schema:
            type: string
        - name: Authorization
          in: header
          description: ''
          required: false
          example: Bearer {{YOUR_API_KEY}}
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                model_name:
                  type: string
                  description: 模型名称 枚举值:kling-v1-6
                image_list:
                  type: array
                  items:
                    type: object
                    properties:
                      image:
                        type: string
                    required:
                      - image
                    x-apifox-orders:
                      - image
                  description: 最多支持4张图片
                prompt:
                  type: string
                  description: |-
                    正向文本提示词
                    不能超过2500个字符
                negative_prompt:
                  type: string
                  description: 负向文本提示词
                mode:
                  type: string
                  description: |-
                    生成视频的模式
                    枚举值:std,pro
                    其中std:标准模式(标准),基础模式,性价比高
                    其中pro:专家模式(高品质),高表现模式,生成视频质量更佳
                duration:
                  type: string
                  description: |-
                    生成视频时长,单位s
                    枚举值:5,10
                aspect_ratio:
                  type: string
                  description: 生成图片的画面纵横比(宽:高)
                callback_url:
                  type: string
                external_task_id:
                  type: string
              required:
                - model_name
                - mode
                - duration
                - image_list
                - prompt
              x-apifox-orders:
                - model_name
                - image_list
                - prompt
                - negative_prompt
                - mode
                - duration
                - aspect_ratio
                - callback_url
                - external_task_id
            example:
              model_name: kling-v1-6
              image_list:
                - image: >-
                    https://h2.inkwai.com/bs2/upload-ylab-stunt/se/ai_portal_queue_mmu_image_upscale_aiweb/3214b798-e1b4-4b00-b7af-72b5b0417420_raw_image_0.jpg
                - image: >-
                    https://p4-fdl.klingai.com/ksc2/VC9RYcz0EFN3IK7HvGJxvyYKZoI2RJoqDr3DIiw7piElFWcqhZkCo1AXSd1KKuRDOgyh-4S32fgf_Y_E2bI12JyhGq8cUh3JBi15-3LhOi6kHXyhsyklf8i7f_z-7H3UwMKOFf3sUyRwme99EGVIVIbfonztB9YHiRUelIN03Kmj4WOJ7alF7z-hAf2VIb0CcmQgkOCO0Xr4cb3aWMmbzQ.png?cacheKey=ChtzZWN1cml0eS5rbGluZy5tZXRhX2VuY3J5cHQSsAHN4HK7XWwUnbU-46Q6VYOkhHxmQ1SXM2l0e-BFYasrb-1uP_EnXqmdvS5QiMNNsNQVp3iPjf6ArMRBsh6ryOIAKZLAUJt8PGdhJR5vNyJ1VKwQnyZ-HY-1ah-nq3zld8Ku5CrjZbwy25qQ-49HwVGRVVW3UduaRfOYN5JlKTzarHKKd4MdlsaLuke_On28RC_ZH9DpqtgdPE2XClDiiob98C_GO_hJGNQxXFZXz6RLQRoSv3Uc89R3_xETrF65D8P8-8MOIiBvVz-WFbQmW09meHOCiSebrXRVetWFZd9xrpTvc8VZyCgFMAE&x-kcdn-pid=112757&pkey=AAWtwrHKmYCgcvnbtFoiaXw1li4FfT_ZtdY7vJ_P4LchpS9PAfe3IAX19TCZn6WNQirjrIFp2kT5OEl5_S_JJ8oyDLKVn6xLODNisUft5SfwEf3J4k95BSmohuROFGZ8amg
              prompt: 两张图合并成一个视频
              negative_prompt: ''
              mode: std
              duration: '5'
              aspect_ratio: '16:9'
              callback_url: ''
              external_task_id: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
          x-apifox-name: 成功
      security:
        - bearer: []
      x-apifox-folder: 可灵 Kling 平台/多图参考生视频
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5443236/apis/api-386179083-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://www.anyapi.vip
    description: 正式环境
security:
  - bearer: []

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