Light Mode
Get Video Generation
GET
/api/luma/v1/video/{task_id}This endpoint from PiAPI's Dream Machine API retrieves the output of the Dream Machine task.
Request
Path Params
task_id
string
required
Header Params
X-API-Key
string
required
Insert your API Key here
Body Params application/json
task_id
string
optional
Insert the returned task_id
from the Video Generation endpoint.
Example
{
"task_id": "There is no body text"
}
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
input
string
optional
status
string
optional
metadata
object
optional
object
optional
id
string
optional
prompt
string
optional
state
string
optional
created_at
string
optional
video
string | null
optional
like
string | null
optional
estimate_wait_seconds
string | null
optional
message
string
optional
ExampleExample 1
{
"code": 200,
"data": {
"task_id": "2b42687a-3940-4b94-9799-d8c562b31666",
"input": "{\"aspect_ratio\":\"16:9\",\"expand_prompt\":false,\"user_prompt\":\"daft punk in london\"}",
"status": "pending",
"metadata": {
"created_at": "2024-06-25T10:10:23.403766948Z",
"started_at": "2024-06-25T10:10:23.691080547Z",
"ended_at": "0001-01-01T00:00:00Z",
"quota_frozen": 30,
"quota_usage": 0
},
"generation": {
"id": "2db16aaa-6f83-4ec4-860c-3b7742bff666",
"prompt": "steam punk in the future",
"state": "pending",
"created_at": "2024-06-25T10:10:25.135Z",
"video": null,
"like": null,
"estimate_wait_seconds": null
}
},
"message": "success"
}
Modified at 15 days ago