AI Voice Cloner
ai_voice_cloner_create_audioMCP guidance:
Starts an async audio job; returns
idandcredits_charged. For finished results, callwait_for_audio_projectwith that id or pollGET /v1/audio-projects/{id}untilcomplete,error, orcanceled. Results includedownloads; wait helpers addexact_download_urls. Preserve signed URLs and query parameters; never append expiration metadata.For
*_file_path, use an existing Magic Hour path or the upload-URL endpoint'sfile_pathafter uploading raw bytes to its presigned URL. Direct public media URLs may work if stable and fetchable as raw bytes; hotlinked URLs can fail. Prefer the upload-URL endpoint when unsure.
Clone a voice from an audio sample and generate speech.
Each character costs 0.1 credits.
The cost is rounded up to the nearest whole number Before choosing settings, read get_account_info and the current parameter constraints. A listed model, resolution, duration or count is not necessarily available together or on this account. Preserve explicit requirements and all supplied inputs; explain a genuine block instead of submitting an incompatible request. Account balance alone does not prove a request is affordable. Use only a recording of your own voice or a voice you have permission to clone. Do not impersonate or deceive others.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"assets": "<assets>",
"style": "<style>"
},
"name": "ai_voice_cloner_create_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Give your audio a custom name for easy identification. | Voice Cloner - dateTime |
| style | Yes | ||
| assets | Yes | Provide the assets for voice cloning. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique ID of the audio. Use it with the [Get audio Project API](https://docs.magichour.ai/api-reference/audio-projects/get-audio-details) to fetch status and downloads. | |
| credits_charged | Yes | The amount of credits deducted from your account to generate the audio. We charge credits right when the request is made. If an error occurred while generating the audio, credits will be refunded and this field will be updated to include the refund. |