singleFile

Generate single audio file

post

Generates a single audio file with specified duration and parameters

Authorizations
MuzaicAPI-Secret-KeystringRequired
Body
durationinteger · min: 1 · max: 300Optional

Duration in seconds

Example: 30
tagsinteger[]Optional

Array of tag IDs

Example: [1,2,3]
normalizebooleanOptional

Whether to normalize audio

Example: true
Responses
chevron-right
200

Single file generated successfully

application/json
apiVersionstringOptionalExample: 1.0.0
mp3stringOptional

Base64 encoded MP3 audio data

Example: data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4Ljc2LjEwMAAAAAAAAAAAAAAA/+M4wAAAAAAAAAAAAEluZm8AAAAPAAAAAwAAAb...
audioDurationnumber · floatOptional

Audio duration in seconds

Example: 30
hashstringOptional

Generated audio hash

Example: abc123def456
statusstringOptional

Generation status

Example: completed
tokensUsedintegerOptional

Number of tokens consumed

Example: 30
executionTimenumber · floatOptional

Execution time in seconds

Example: 2.5
post
/singleFile

Last updated