- 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}
mmaudio
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": 0,
"data": {
"task_id": "string",
"input": "string",
"status": "string",
"metadata": {
"created_at": "string",
"started_at": "string",
"ended_at": "string",
"quota_frozen": 0,
"quota_usage": 0
},
"task": {
"id": 0,
"userId": 0,
"type": "string",
"status": 0,
"taskInfo": {
"arguments": [
{
"name": "string",
"value": "string"
}
],
"inputs": [
{
"inputType": "string",
"name": "string",
"url": "string",
"blobStorage": null,
"token": null
}
],
"type": "string"
},
"favored": true,
"deleted": true,
"createTime": 0,
"updateTime": 0
},
"works": [
{
"workId": 0,
"workItemId": 0,
"taskId": 0,
"userId": 0,
"type": "string",
"status": 0,
"contentType": "string",
"resource": {
"resource": "string",
"resourceWithoutWatermark": "string",
"height": 0,
"width": 0,
"duration": 0
},
"cover": {
"resource": "string",
"height": 0,
"width": 0,
"duration": 0
},
"starNum": 0,
"reportNum": 0,
"createTime": 0,
"taskInfo": {
"arguments": [
{
"name": "string",
"value": "string"
}
],
"inputs": [
{
"inputType": "string",
"name": "string",
"url": "string",
"blobStorage": null,
"token": null
}
],
"type": "string"
},
"selfAttitude": "string",
"selfComment": {
"tags": [
{}
],
"content": "string"
},
"favored": true,
"publishStatus": "string",
"deleted": true
}
]
},
"message": "string"
}
🟠400Bad Request
🟠401Unauthorized
🔴500Server Error
Modified at 2025-03-24 16:00:27