- Get Started
- Endpoints
- Flux
- AI Hug
- LLM
- Midjourney
- Faceswap
- TTS
- Song(Suno+Udio)
- Trellis
- Luma Dream Machine
- Kling
- Hailuo
- Skyreels
- WanX
- Hunyuan Video
- PiAPI Account Management
- Mmaudio
- DiffRhythm
- Tools
- Resources
- Legacy Documentation
Get Video Generation
GET
https://api.piapi.ai/api/luma/v1/video/{task_id}
legacy/Dream Machine
Request
Path Params
task_id
string
required
Header Params
X-API-Key
string
required
Body Params application/json
task_id
string
optional
task_id
from the Video Generation endpoint.Example
{
"task_id": "There is no body text"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.piapi.ai/api/luma/v1/video/' \
--header 'X-API-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"task_id": "There is no body text"
}'
Responses
🟢200OK
application/json
Body
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
Example
{
"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"
}
🟠400Bad Request
🟠401Unauthorized
🔴500Server Error
Modified at 2024-09-24 02:23:40