## Basic tool info Model name: MiniMaxAI/MiniMax-Music3 Model description: MiniMax-Music3 turns a music description and lyrics into a complete song of up to six minutes, with sung vocals, instruments and a stereo mix that follow the lyric sections. Model cover: https://cdn.wiro.ai/uploads/models/minimaxai-minimax-music3-cover.webp Model categories: - model - persistent - text-to-song - text-to-music - music-generation Model tags: - text-to-song - lyrics-to-song - text-to-music - music-generation - vocals - minimax - minimax-music3 Run Task Endpoint (POST): https://api.wiro.ai/v1/Run/minimaxai/minimax-music3 Get Task Detail Endpoint (POST): https://api.wiro.ai/v1/Task/Detail ## Model Inputs: - name: prompt label: Music Description help: Required. Describe genre, mood, tempo, key, the vocal and the instruments. For finer control write three parts: global (genre, BPM, key, emotional arc), vocals (gender, timbre, delivery, harmonies) and arrangement (instruments and how they change by section). type: textarea default: Genre: indie folk pop. BPM: 92. Key: G major. Warm, intimate and hopeful, building into a wide final chorus. Vocals: soft female lead, close and breathy, light harmonies in the chorus. Arrangement: fingerpicked acoustic guitar and piano in the verses; brushed drums, upright bass and strings join in the chorus. - name: lyrics label: Lyrics help: Optional. The words to sing, with section tags such as [intro], [verse], [pre-chorus], [chorus], [bridge], [instrumental], [solo] and [outro]. Text on the same line as a tag moves to the next line. Leave empty for an instrumental piece that runs to the maximum duration. type: textarea default: "[intro]\n[verse]\nThe lamps go out along the harbor wall\nGulls are stitching gray across the sky\nCoffee steam is rising from the stall\nAnd the ferry bell is calling goodbye\n[pre-chorus]\nTake the road that opens up today\n[chorus]\nWe are the morning, we are the light on the water\nRolling in slow, nothing to prove\nWe are the morning, hands full of sunrise\nSinging it loud till the whole town moves\n[verse]\nPaper boats are racing down the stream\nSomeone hums a tune I almost know\nEvery window wakes up like a dream\nAnd the rooftops catch the golden glow\n[chorus]\nWe are the morning, we are the light on the water\nRolling in slow, nothing to prove\nWe are the morning, hands full of sunrise\nSinging it loud till the whole town moves\n[outro]\nWe are the morning" triggerwords: ["[intro]","[verse]","[pre-chorus]","[chorus]","[bridge]","[instrumental]","[solo]","[outro]"] - name: duration label: Maximum Duration help: Required. The longest the song may run, in seconds, and what the price follows. The song ends where the lyrics end, so a shorter song is normal; a song that needs more time than this is cut off at it with a short fade-out. type: select default: 240 options: - value: "30" label: 30 seconds - value: "60" label: 60 seconds - value: "90" label: 90 seconds - value: "120" label: 120 seconds - value: "180" label: 180 seconds - value: "240" label: 240 seconds - value: "300" label: 300 seconds - value: "360" label: 360 seconds - name: format label: Format help: MP3 at 192 kbps, or lossless 16-bit WAV. Both are stereo at 44.1 kHz. type: select default: mp3 options: - value: "mp3" label: MP3 - value: "wav" label: WAV - name: seed label: Seed help: Random seed for reproducible generation. Leave empty for a random seed. type: number default: ## Model Parameter Inspires: - prompt: Genre: indie folk pop. BPM: 92. Key: G major. Warm, intimate and hopeful, building into a wide final chorus. Vocals: soft female lead, close and breathy, light harmonies in the chorus. Arrangement: fingerpicked acoustic guitar and piano in the verses; brushed drums, upright bass and strings join in the chorus. - lyrics: [intro] [verse] The lamps go out along the harbor wall Gulls are stitching gray across the sky Coffee steam is rising from the stall And the ferry bell is calling goodbye [pre-chorus] Take the road that opens up today [chorus] We are the morning, we are the light on the water Rolling in slow, nothing to prove We are the morning, hands full of sunrise Singing it loud till the whole town moves [verse] Paper boats are racing down the stream Someone hums a tune I almost know Every window wakes up like a dream And the rooftops catch the golden glow [chorus] We are the morning, we are the light on the water Rolling in slow, nothing to prove We are the morning, hands full of sunrise Singing it loud till the whole town moves [outro] We are the morning - duration: 240 - seed: 7 ## 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/minimaxai/minimax-music3" \ -H "Content-Type: application/json" \ -H "x-api-key: ${YOUR_API_KEY}" \ -H "x-nonce: ${NONCE}" \ -H "x-signature: ${SIGNATURE}" \ --data-binary @- <<'JSON' { "prompt": "Genre: indie folk pop. BPM: 92. Key: G major. Warm, intimate and hopeful, building into a wide final chorus. Vocals: soft female lead, close and breathy, light harmonies in the chorus. Arrangement: fingerpicked acoustic guitar and piano in the verses; brushed drums, upright bass and strings join in the chorus.", "lyrics": "[intro]\n[verse]\nThe lamps go out along the harbor wall\nGulls are stitching gray across the sky\nCoffee steam is rising from the stall\nAnd the ferry bell is calling goodbye\n[pre-chorus]\nTake the road that opens up today\n[chorus]\nWe are the morning, we are the light on the water\nRolling in slow, nothing to prove\nWe are the morning, hands full of sunrise\nSinging it loud till the whole town moves\n[verse]\nPaper boats are racing down the stream\nSomeone hums a tune I almost know\nEvery window wakes up like a dream\nAnd the rooftops catch the golden glow\n[chorus]\nWe are the morning, we are the light on the water\nRolling in slow, nothing to prove\nWe are the morning, hands full of sunrise\nSinging it loud till the whole town moves\n[outro]\nWe are the morning", "duration": "240", "format": "mp3", "seed": null, "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.