- 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 Task
Developing
GET
https://api.piapi.ai/api/v1/task/{task_id}
Request
Path Params
task_id
string
required
Header Params
X-API-Key
string
required
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/v1/task/' \
--header 'X-API-Key;'
Responses
🟢200OK
application/json
Body
code
integer
optional
data
object
optional
task_id
string
optional
input
string
optional
status
string
optional
metadata
object
optional
task
object
optional
works
array [object {18}]
optional
message
string
optional
Example
{
"code": 200,
"message": "string",
"data": {
"task_id": "736fde4d-9029-4915-8189-01353d6982cb",
"status": "string",
"output": {
"video_url": "http://example.com"
}
}
}
🟠400Bad Request
🟠401Unauthorized
🔴500Server Error
Modified at 2025-03-19 06:45:37