PiAPI
Light Mode
Video Generation
POST
/api/luma/v1/videoThis endpoint from PiAPI's Dream Machine API utilizes Dream Machine model by Luma Labs to produce text/image-to-video generation.
Request
Header Params
X-API-Key
string
required
Insert your API Key here
Body Params application/json
prompt
string
required
The prompt is a description that enables the Dream Machine API to produce a video.
expand_prompt
boolean
required
The recommended value at this time is false
. We have tested that the value false
results in better quality.
image_url
string
optional
Insert the link of the image to generate the video from image.
image_end_url
string
optional
the end frame of the video
loop
boolean
optional
default to false
Example
{
"prompt": "A flying cat",
"expand_prompt": true,
"image_url": "https://iili.io/dKqFZ9n.md.png"
}
Request samples
Responses
OK(200)
Bad Request(400)
Unauthorized(401)
Server Error(500)
HTTP Code: 200
Content Type : JSONapplication/json
OK - Successful response
Data Schema
code
integer
optional
data
object
optional
task_id
string
optional
message
string
optional
ExampleExample 1
{
"code": 200,
"data": {
"task_id": "6c4e**********************aaa"
},
"message": "success"
}
Modified at 15 days ago