Submit(Text / Image to Video)
POST
/luma/submitText/Image-to-Video generation from Luma AI. Generate a 5-second video based on text or images.
Supports specifying the first and last frames for seamless connection.
Luma AI:https://lumalabs.ai/dream-machine
Price: 0.4 PTC / call
请求参数
Header Params
Content-Type
string
required
Example:
application/json
Authorization
string
required
API Key from 302.AI backend
Example:
Bearer {{YOUR_API_KEY}}
Body Params multipart/form-data
user_prompt
string
required
Video prompt; not support Chinese input
Example:
Low-angle shot of a majestic tiger prowling through a snowy landscape, leaving paw prints on the white blanket
image_url
file
optional
Optional: First frame of the video. The beginning and end follow the video prompt but may be ineffective due to AI limitations.
image_end_url
file
optional
Optional: Last frame of the video. The beginning and end follow the video prompt but may be ineffective due to AI limitations.
loop
boolean
optional
Whether to generate looping video
Example:
false
示例代码
Responses
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
created_at
string
required
estimate_wait_seconds
null
required
id
string
required
liked
null
required
prompt
string
required
state
string
required
video
null
required
Example
{
"created_at": "",
"estimate_wait_seconds": null,
"id": "",
"liked": null,
"prompt": "",
"state": "",
"video": null
}
Last modified: 2 个月前