Skip to content

扩展视频

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /luma/generations/{task_id}/extend:
    post:
      summary: 扩展视频
      deprecated: false
      description: 官方文档:https://docs.lumalabs.ai/docs/video-generation
      tags:
        - 视频模型/luma 视频生成/官方API格式
      parameters:
        - name: task_id
          in: path
          description: task id 为需要延长的视频任务id
          required: true
          example: 4665a07c-7641-4809-a133-10786201bb56
          schema:
            type: string
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Accept
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Authorization
          in: header
          description: ''
          required: true
          example: Bearer {{YOUR_API_KEY}}
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                user_prompt:
                  description: 必传,用户输入的提示词/问题描述,用于生成内容的主要输入
                  type: string
                expand_prompt:
                  description: 可选,是否启用提示词优化功能
                  type: boolean
                image_url:
                  description: 可选,参考图片URL或Base64编码
                  type: string
                image_end_url:
                  description: 可选,关键帧图片URL或Base64编码
                  type: string
                notify_hook:
                  description: 可选,回调通知地址
                  type: string
              required:
                - user_prompt
                - expand_prompt
                - image_url
                - image_end_url
                - notify_hook
              x-apifox-orders:
                - user_prompt
                - expand_prompt
                - image_url
                - image_end_url
                - notify_hook
            example:
              user_prompt: add cat
              expand_prompt: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                  request_id:
                    type: string
                  data:
                    type: object
                    properties:
                      task_id:
                        type: string
                      task_status:
                        type: string
                      created_at:
                        type: integer
                      updated_at:
                        type: integer
                    required:
                      - task_id
                      - task_status
                      - created_at
                      - updated_at
                required:
                  - code
                  - message
                  - request_id
                  - data
              example:
                id: 749d328e-4fd0-43a8-8c89-32394d60da69
                prompt: ''
                state: pending
                queue_state: null
                created_at: '2024-12-22T14:48:39.947851Z'
                batch_id: ''
                video: null
                video_raw: null
                liked: null
                estimate_wait_seconds: null
                thumbnail: null
                last_frame: null
          headers: {}
          x-apifox-name: 成功
      security:
        - bearer: []
      x-apifox-folder: 视频模型/luma 视频生成/官方API格式
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5443236/apis/api-247123616-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://www.anyapi.vip
    description: 正式环境
security:
  - bearer: []

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