Authentication
authorization string required
All APIs require authentication via Bearer Token.
Get API Key:
Visit API Key Management Page to get your API Key.
Usage:
Add to request header:
Authorization: Bearer YOUR_API_KEY
Parameters
model string required
Customer-facing model ID used for the request.
Value: vidu-cn-audio-clone
audio_url string required
Reference audio URL used for voice cloning.
text string
Demo text used to generate the cloned voice sample.
voice_id string
Custom voice identifier returned or used by the cloning workflow.
Synchronous Response
This is a synchronous endpoint. On success, the result is returned directly in the create response.
Response Format
error object
Error information, only present when status is failed.
code
stringError code
message
stringDetailed error message
output array
Generation results, present when the request succeeds.
content
arrayList of generated resource content
type
stringResource type.
Value:
audiourl
stringGenerated resource URL. Text utility endpoints may return a text field instead of a URL.
jobId
stringUpstream task ID.
usage object
Usage statistics, present when the request succeeds.
cost
stringTotal cost in USD.
discount
numberDiscount amount.
metadata object
Metadata information.