提交生成视频任务
OpenAPI Specification
yaml
openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/luma/generations:
post:
summary: 提交生成视频任务
deprecated: false
description: 官方文档:https://docs.lumalabs.ai/docs/video-generation
tags:
- 视频模型/luma 视频生成/官方API格式
parameters:
- 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
loop:
description: 可选,是否循环使用参考图
type: boolean
image_url:
description: 可选,参考图片来源
type: string
image_end_url:
description: 可选,目标关键帧图片
type: string
notify_hook:
description: 可选,处理完成后的回调通知地址
type: string
resolution:
type: string
description: |
720p或者1080p默认720p
duration:
type: string
description: |
时长只支持5s
model_name:
type: string
description: |
ray-v1、 ray-v2 官方显示是 ray1.6 ray2
required:
- user_prompt
- expand_prompt
- loop
- image_url
- image_end_url
- notify_hook
- resolution
- duration
- model_name
x-apifox-orders:
- user_prompt
- expand_prompt
- loop
- image_url
- image_end_url
- notify_hook
- resolution
- duration
- model_name
example:
user_prompt: 一阵风吹过树林,使女人的面纱微微飘动。
model_name: ray-v2
duration: 5s
resolution: 720p
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: 4665a07c-7641-4809-a133-10786201bb56
prompt: ''
state: pending
queue_state: null
created_at: '2024-12-22T13:38:40.139409Z'
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-247110323-run
components:
schemas: {}
securitySchemes:
bearer:
type: http
scheme: bearer
servers:
- url: https://www.anyapi.vip
description: 正式环境
security:
- bearer: []