- 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
Generate Audio
Developing
POST
https://api.piapi.ai/api/v1/task
mmaudio
Model | Price (USD) |
---|---|
Qubico/mmaudio | $0.0005/second, rounded up if less than 1 second and up to a maximum of 30 seconds. |
Request
Header Params
x-api-key
string
optional
Body Params application/json
model
enum<string>
required
Allowed value:
Qubico/mmaudio
task_type
enum<string>
required
Allowed value:
video2audio
input
object
required
prompt
string
required
negative_prompt
string
optional
video
string
required
steps
integer
optional
seeds
integer
optional
config
object
required
webhook_config
object
optional
Example
{
"model": "Qubico/mmaudio",
"task_type": "video2audio",
"input": {
"prompt": "",
"negative_prompt": "",
"video": "",
"steps": 20,
"seed": 48511119825268
},
"config": {
"webhook_config": {
"endpoint": "",
"secret": ""
}
}
}
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 POST 'https://api.piapi.ai/api/v1/task' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "Qubico/mmaudio",
"task_type": "video2audio",
"input": {
"prompt": "",
"negative_prompt": "",
"video": "",
"steps": 20,
"seed": 48511119825268
},
"config": {
"webhook_config": {
"endpoint": "",
"secret": ""
}
}
}'
Responses
🟢200Success
application/json
Body
model
string
optional
task_type
string
optional
input
object
optional
prompt
string
required
negative_prompt
string
optional
video
string
required
steps
integer
optional
seed
integer
optional
config
object
optional
webhook_config
object
optional
Example
{
"model": "Qubico/mmaudio",
"task_type": "video2audio",
"input": {
"prompt": "",
"negative_prompt": "",
"video": "",
"steps": 20,
"seed": 48511119825268
},
"config": {
"webhook_config": {
"endpoint": "",
"secret": ""
}
}
}
Modified at 2025-03-20 04:04:51