Luma AI Text-to-Video
Generate Videos from Text or Images
Overview
Authentication
Pricing
API Reference
使用 Luma AI 根据提示生成视频,允许根据文本描述创建视频。
请求体
aspect_ratiostring必填Example:
The aspect ratio of the image
16:9expand_promptboolean必填Example:
Whether to expand the prompt
trueimage_end_urlstring必填Example:
The URL for the end of the image
https://example.com/image-end.jpgimage_urlstring必填Example:
The URL of the main image
https://example.com/main-image.jpguser_promptstring必填Example:
The user-provided prompt for image generation
A beautiful sunset over the ocean响应
200成功
application/json
post
/luma-ai/generations200成功
Example
Example
Example
使用 Luma AI 扩展现有视频,为视频项目创建附加内容。
路径参数
taskIdstring必填
请求体
aspect_ratiostring必填Example:
The aspect ratio of the image
16:9expand_promptboolean必填Example:
Whether to expand the prompt
trueimage_end_urlstring必填Example:
The URL for the end of the image
https://example.com/image-end.jpgimage_urlstring必填Example:
The URL of the main image
https://example.com/main-image.jpguser_promptstring必填Example:
The user-provided prompt for image generation
A beautiful sunset over the ocean响应
200成功
application/json
post
/luma-ai/generations/{taskId}/extend200成功
Example
最后更新于