## Basic tool info Model name: Zyphra/ZONOS3-Mini Model description: Zyphra's text to speech in 43 languages at 44.1 kHz. Clone a voice from a short clip or pick a built-in voice, then set its emotion and speaking speed. Model cover: https://cdn.wiro.ai/uploads/models/zyphra-zonos3-mini-cover.webp Model categories: - text-to-speech - voice-clone Model tags: - text-to-speech - voice-cloning - multilingual - emotion Run Task Endpoint (POST): https://api.wiro.ai/v1/Run/zyphra/zonos3-mini Get Task Detail Endpoint (POST): https://api.wiro.ai/v1/Task/Detail ## Model Inputs: - name: prompt label: Text help: The text to speak, up to 10,000 characters. Plain text with normal punctuation reads best. type: textarea default: The night train pulled into the station just after midnight. Mara stepped onto the empty platform, pulled her coat tight against the cold, and smiled. After eleven years away, she was finally home. - name: language label: Language help: The language of the text. A voice of this language reads it most reliably. type: select default: en_us options: - value: "ar" label: Arabic - value: "bn" label: Bengali - value: "bg" label: Bulgarian - value: "cmn" label: Chinese (Mandarin) - value: "cs" label: Czech - value: "da" label: Danish - value: "nl" label: Dutch - value: "en_gb" label: English (UK) - value: "en_us" label: English (US) - value: "fi" label: Finnish - value: "fr_fr" label: French - value: "ka" label: Georgian - value: "de" label: German - value: "el" label: Greek - value: "gu" label: Gujarati - value: "he" label: Hebrew - value: "hi" label: Hindi - value: "hu" label: Hungarian - value: "id" label: Indonesian - value: "it" label: Italian - value: "ja" label: Japanese - value: "kn" label: Kannada - value: "ko" label: Korean - value: "ms" label: Malay - value: "ml" label: Malayalam - value: "mr" label: Marathi - value: "no" label: Norwegian - value: "or" label: Odia - value: "pl" label: Polish - value: "pt_br" label: Portuguese (Brazil) - value: "pa" label: Punjabi - value: "ro" label: Romanian - value: "ru" label: Russian - value: "sk" label: Slovak - value: "es" label: Spanish - value: "sv" label: Swedish - value: "tl" label: Tagalog - value: "ta" label: Tamil - value: "te" label: Telugu - value: "th" label: Thai - value: "tr" label: Turkish - value: "uk" label: Ukrainian - value: "ur" label: Urdu - value: "vi" label: Vietnamese - name: voice label: Voice help: A built-in voice. Not used when a voice clip is uploaded. type: select default: american_female options: - value: "american_female" label: US English, female - value: "american_male" label: US English, male - value: "british_female" label: UK English, female - value: "savannah" label: Savannah (US English, female) - value: "wyatt" label: Wyatt (US English, male) - value: "imogen" label: Imogen (UK English, female) - value: "rupert" label: Rupert (UK English, male) - value: "cillian" label: Cillian (Irish English, male) - value: "jett" label: Jett (English, energetic male) - value: "thaddeus" label: Thaddeus (English, announcer) - value: "morgana" label: Morgana (English, witchy female) - value: "sakura" label: Sakura (English, anime-style female) - value: "willow" label: Willow (English, soft-spoken female) - value: "gaspard" label: Gaspard (French, male) - value: "liesel" label: Liesel (German, female) - value: "wolfgang" label: Wolfgang (German, male) - value: "ximena" label: Ximena (Spanish, female) - value: "rodrigo" label: Rodrigo (Spanish, male) - value: "ginevra" label: Ginevra (Italian, female) - value: "lorenzo" label: Lorenzo (Italian, male) - value: "leonor" label: Leonor (Portuguese, female) - value: "thiago" label: Thiago (Portuguese, male) - value: "meilin" label: Meilin (Mandarin, female) - value: "haoran" label: Haoran (Mandarin, male) - value: "seoyeon" label: Seoyeon (Korean, female) - value: "minjun" label: Minjun (Korean, male) - value: "ananya" label: Ananya (Hindi, female) - value: "arjun" label: Arjun (Hindi, male) - value: "sravya" label: Sravya (Telugu, female) - value: "chaitanya" label: Chaitanya (Telugu, male) - name: inputAudio label: Voice Clip help: Optional. A recording of the voice to clone, in MP3, WAV, M4A or WebM. A few seconds of one person speaking clearly is enough; up to the first 60 seconds are used. When given, it replaces the built-in voice. type: combinefileinput default: - name: emotion label: Emotion help: The feeling in the voice. Neutral suits long narration. type: select default: neutral options: - value: "neutral" label: Neutral - value: "happy" label: Happy - value: "sad" label: Sad - value: "angry" label: Angry - value: "calm" label: Calm - value: "scared" label: Scared - value: "confused" label: Confused - name: speed label: Speed help: Speaking pace, from 0.7 (slower) to 1.5 (faster). 1 is the voice's natural pace; how much the pace changes depends on the voice. type: float default: 1 - name: seed label: Seed help: Leave empty for a new reading each run. Send the seed a run reports, with the same settings, to repeat that reading. type: number default: - name: outputFormat label: Output Format help: MP3 (192 kbps), WAV or FLAC (16-bit). All are mono, 44.1 kHz. type: select default: mp3 options: - value: "mp3" label: MP3 - value: "wav" label: WAV - value: "flac" label: FLAC ## Integration Header Prepare ```bash # Sign up Wiro dashboard and create project export YOUR_API_KEY="YOUR_WIRO_API_KEY"; export YOUR_API_SECRET="XXXXXXXXX"; # unix time or any random integer value export NONCE=$(date +%s); # hmac-SHA256 (YOUR_API_SECRET+Nonce) with YOUR_API_KEY export SIGNATURE="$(echo -n "${YOUR_API_SECRET}${NONCE}" | openssl dgst -sha256 -hmac "${YOUR_API_KEY}" | awk '{print $NF}')"; ``` ## Run Command - Make HTTP Post Request ```bash curl -X POST "https://api.wiro.ai/v1/Run/zyphra/zonos3-mini" \ -H "Content-Type: application/json" \ -H "x-api-key: ${YOUR_API_KEY}" \ -H "x-nonce: ${NONCE}" \ -H "x-signature: ${SIGNATURE}" \ --data-binary @- <<'JSON' { "prompt": "The night train pulled into the station just after midnight. Mara stepped onto the empty platform, pulled her coat tight against the cold, and smiled. After eleven years away, she was finally home.", "language": "en_us", "voice": "american_female", "inputAudio": "", "emotion": "neutral", "speed": "1", "seed": null, "outputFormat": "mp3", "callbackUrl": "You can provide a callback URL; Wiro will send a POST request to it when the task is completed." } JSON ``` ## Run Command - Response ```json { "errors": [], "taskid": "2221", "socketaccesstoken": "eDcCm5yyUfIvMFspTwww49OUfgXkQt", "result": true } ``` ## Get Task Detail - Make HTTP Post Request with Task ID ```bash curl -X POST "https://api.wiro.ai/v1/Task/Detail" \ -H "Content-Type: application/json" \ -H "x-api-key: ${YOUR_API_KEY}" \ -H "x-nonce: ${NONCE}" \ -H "x-signature: ${SIGNATURE}" \ -d '{ "taskid": "2221" }'; ``` ## Get Task Detail - Make HTTP Post Request with Socket Access Token ```bash curl -X POST "https://api.wiro.ai/v1/Task/Detail" \ -H "Content-Type: application/json" \ -H "x-api-key: ${YOUR_API_KEY}" \ -H "x-nonce: ${NONCE}" \ -H "x-signature: ${SIGNATURE}" \ -d '{ "tasktoken": "eDcCm5yyUfIvMFspTwww49OUfgXkQt" }'; ``` ## Get Task Detail - Response ```json { "total": "1", "errors": [], "tasklist": [ { "id": "2221", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "socketaccesstoken": "eDcCm5yyUfIvMFspTwww49OUfgXkQt", "parameters": {}, "debugoutput": "", "debugerror": "", "starttime": "1734513809", "endtime": "1734513813", "elapsedseconds": "6.0000", "status": "task_postprocess_end", "createtime": "1734513807", "canceltime": "0", "assigntime": "1734513807", "accepttime": "1734513807", "preprocessstarttime": "1734513807", "preprocessendtime": "1734513807", "postprocessstarttime": "1734513813", "postprocessendtime": "1734513814", "totalcost": "0.003510000000", "chargedcost": "0.002808000000", "discountamount": "0.000702000000", "outputs": [ { "id": "6bc392c93856dfce3a7d1b4261e15af3", "name": "0.png", "contenttype": "image/png", "parentid": "6c1833f39da71e6175bf292b18779baf", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "size": "202472", "addedtime": "1734513812", "modifiedtime": "1734513812", "accesskey": "dFKlMApaSgMeHKsJyaDeKrefcHahUK", "url": "https://cdn1.wiro.ai/6a6af820-c5050aee-40bd7b83-a2e186c6-7f61f7da-3894e49c-fc0eeb66-9b500fe2/0.png" } ], "size": "202472" } ], "result": true } ``` totalcost is the list price. chargedcost is the amount actually billed after any discount (a store fee is included on store runs); discountamount is the discount. chargedcost is null until the charge is recorded (shortly after task_postprocess_end) and "0" for a failed or cancelled task. ## Kill Task - Make HTTP Post Request with Task ID ```bash curl -X POST "https://api.wiro.ai/v1/Task/Kill" \ -H "Content-Type: application/json" \ -H "x-api-key: ${YOUR_API_KEY}" \ -H "x-nonce: ${NONCE}" \ -H "x-signature: ${SIGNATURE}" \ -d '{ "taskid": "534574" }'; ``` ## Kill Task - Make HTTP Post Request with Socket Access Token ```bash curl -X POST "https://api.wiro.ai/v1/Task/Kill" \ -H "Content-Type: application/json" \ -H "x-api-key: ${YOUR_API_KEY}" \ -H "x-nonce: ${NONCE}" \ -H "x-signature: ${SIGNATURE}" \ -d '{ "socketaccesstoken": "ZpYote30on42O4jjHXNiKmrWAZqbRE" }'; ``` ## Kill Task - Response ```json { "errors": [], "tasklist": [ { "id": "534574", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "name": "", "socketaccesstoken": "ZpYote30on42O4jjHXNiKmrWAZqbRE", "parameters": { "inputImage": "https://api.wiro.ai/v1/File/mCmUXgZLG1FNjjjwmbtPFr2LVJA112/inputImage-6060136.png" }, "debugoutput": "", "debugerror": "", "starttime": "1734513809", "endtime": "1734513813", "elapsedseconds": "6.0000", "status": "task_cancel", "cps": "0.000585000000", "totalcost": "0.003510000000", "guestid": null, "projectid": "699", "modelid": "598", "description": "", "basemodelid": "0", "runtype": "model", "modelfolderid": "", "modelfileid": "", "callbackurl": "", "marketplaceid": null, "createtime": "1734513807", "canceltime": "0", "assigntime": "1734513807", "accepttime": "1734513807", "preprocessstarttime": "1734513807", "preprocessendtime": "1734513807", "postprocessstarttime": "1734513813", "postprocessendtime": "1734513814", "pexit": "0", "categories": "["tool","image-to-image","quick-showcase","compare-landscape"]", "outputs": [ { "id": "6bc392c93856dfce3a7d1b4261e15af3", "name": "0.png", "contenttype": "image/png", "parentid": "6c1833f39da71e6175bf292b18779baf", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "size": "202472", "addedtime": "1734513812", "modifiedtime": "1734513812", "accesskey": "dFKlMApaSgMeHKsJyaDeKrefcHahUK", "foldercount": "0", "filecount": "0", "ispublic": 0, "expiretime": null, "url": "https://cdn1.wiro.ai/6a6af820-c5050aee-40bd7b83-a2e186c6-7f61f7da-3894e49c-fc0eeb66-9b500fe2/0.png" } ], "size": "202472" } ], "result": true } ``` ## Cancel Task - Make HTTP Post Request (For tasks on queue) ```bash curl -X POST "https://api.wiro.ai/v1/Task/Cancel" \ -H "Content-Type: application/json" \ -H "x-api-key: ${YOUR_API_KEY}" \ -H "x-nonce: ${NONCE}" \ -H "x-signature: ${SIGNATURE}" \ -d '{ "taskid": "634574" }'; ``` ## Cancel Task - Response ```json { "errors": [], "tasklist": [ { "id": "634574", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "name": "", "socketaccesstoken": "ZpYote30on42O4jjHXNiKmrWAZqbRE", "parameters": { "inputImage": "https://api.wiro.ai/v1/File/mCmUXgZLG1FNjjjwmbtPFr2LVJA112/inputImage-6060136.png" }, "debugoutput": "", "debugerror": "", "starttime": "1734513809", "endtime": "1734513813", "elapsedseconds": "6.0000", "status": "task_cancel", "cps": "0.000585000000", "totalcost": "0.003510000000", "guestid": null, "projectid": "699", "modelid": "598", "description": "", "basemodelid": "0", "runtype": "model", "modelfolderid": "", "modelfileid": "", "callbackurl": "", "marketplaceid": null, "createtime": "1734513807", "canceltime": "0", "assigntime": "1734513807", "accepttime": "1734513807", "preprocessstarttime": "1734513807", "preprocessendtime": "1734513807", "postprocessstarttime": "1734513813", "postprocessendtime": "1734513814", "pexit": "0", "categories": "["tool","image-to-image","quick-showcase","compare-landscape"]", "outputs": [ { "id": "6bc392c93856dfce3a7d1b4261e15af3", "name": "0.png", "contenttype": "image/png", "parentid": "6c1833f39da71e6175bf292b18779baf", "uuid": "15bce51f-442f-4f44-a71d-13c6374a62bd", "size": "202472", "addedtime": "1734513812", "modifiedtime": "1734513812", "accesskey": "dFKlMApaSgMeHKsJyaDeKrefcHahUK", "foldercount": "0", "filecount": "0", "ispublic": 0, "expiretime": null, "url": "https://cdn1.wiro.ai/6a6af820-c5050aee-40bd7b83-a2e186c6-7f61f7da-3894e49c-fc0eeb66-9b500fe2/0.png" } ], "size": "202472" } ], "result": true } ``` ## Task Status Information This section defines the possible task status values returned by the API when polling for task completion. ### Completed Task Statuses (Polling can stop) These indicate that the task has reached a terminal state — either success or failure. Once any of these is received, polling should stop. - task_postprocess_end : Task completed successfully and post-processing is done. - task_cancel : Task was cancelled by the user or system. ### Running Task Statuses (Continue polling) These statuses indicate that the task is still in progress. Polling should continue if one of these is returned. - task_queue : Task is waiting in the queue. - task_accept : Task has been accepted for processing. - task_assign : Task is being assigned to a worker. - task_preprocess_start : Preprocessing is starting. - task_preprocess_end : Preprocessing is complete. - task_start : Task execution has started. - task_output : Output is being generated.