## Basic tool info Model name: lightx2v/MiniMax-H3-Turbo Model description: MiniMax H3 Turbo is an eight-step distilled MiniMax H3 that generates video with synchronized stereo audio from a text prompt or from a first-frame image, in clips of about 5 to 14 seconds at 24 FPS and 480P or 768P. Model cover: https://cdn.wiro.ai/uploads/models/lightx2v-minimax-h3-turbo-cover.mp4 Model categories: - model - persistent - H200 - text-to-video - image-to-video Model tags: - text-to-video - image-to-video - audio-video - lightx2v - minimax-h3 - minimax-h3-turbo - h200 Run Task Endpoint (POST): https://api.wiro.ai/v1/Run/lightx2v/minimax-h3-turbo Get Task Detail Endpoint (POST): https://api.wiro.ai/v1/Task/Detail ## Model Inputs: - name: prompt label: Prompt help: Required. Describe visuals, motion, camera, ambient sound and dialogue. Speech written in quotes is spoken in the video. With an input image, describe what moves and what is heard: the image stays the first frame. type: textarea default: A diver glides over a sunlit coral reef at sunrise, rays of light cutting through clear turquoise water, while a sea turtle drifts past. She whispers through her regulator, "There you are." Bubbles rise with a soft rhythm and the reef crackles quietly. - name: inputImage label: First Frame Image help: Optional. One image (URL or file: JPG, PNG, WebP or HEIC, at least 64 pixels on each side) that the video starts from. Leave empty to generate from the prompt alone. The image is cropped to the chosen aspect ratio, never stretched. type: combinefileinput default: - name: duration label: Duration help: Required. Whole seconds from 5 through 15, snapped to the nearest length H3 supports at 24 FPS: 5 gives 5.17 seconds (124 frames) and 15 gives 14.375 seconds (345 frames). type: select default: 5 options: - value: "5" label: 5 seconds - value: "6" label: 6 seconds - value: "7" label: 7 seconds - value: "8" label: 8 seconds - value: "9" label: 9 seconds - value: "10" label: 10 seconds - value: "11" label: 11 seconds - value: "12" label: 12 seconds - value: "13" label: 13 seconds - value: "14" label: 14 seconds - value: "15" label: 15 seconds - name: resolution label: Resolution help: Required. 768P is H3's native canvas tier. 1080P is not supported by this model. type: select default: 480P options: - value: "480P" label: 480P - value: "768P" label: 768P - name: ratio label: Aspect Ratio help: Output aspect ratio. Auto follows the input image when one is given (the closest of the listed ratios) and is 16:9 otherwise. type: select default: auto options: - value: "auto" label: Auto - value: "16:9" label: 16:9 - value: "9:16" label: 9:16 - value: "1:1" label: 1:1 - value: "4:3" label: 4:3 - value: "3:4" label: 3:4 - value: "21:9" label: 21:9 - name: seed label: Seed help: Random seed for reproducible generation. Leave empty for a random seed. type: number default: ## Model Parameter Inspires: - prompt: A diver glides over a sunlit coral reef at sunrise, rays of light cutting through clear turquoise water, while a sea turtle drifts past. She whispers through her regulator, "There you are." Bubbles rise with a soft rhythm and the reef crackles quietly. - duration: 5 - resolution: 768P - ratio: 16:9 - seed: 4102 - prompt: A street food cook in a crowded night market tosses noodles in a roaring wok, flames leaping around the pan, and calls out, "Fresh and hot, come and get it!" Oil sizzles, a metal spatula clangs, and scooters hum past behind paper lanterns. - duration: 5 - resolution: 768P - ratio: 16:9 - seed: 4101 - prompt: A kitesurfer carves across a turquoise wave at sunset, then launches into the air as spray flies off the board, the camera tracking from low on the water. He laughs and shouts, "Let us go!" Wind roars, the kite fabric snaps and the water hisses. - duration: 5 - resolution: 768P - ratio: 9:16 - seed: 4108 - prompt: Snow begins to fall over the street corner and the strings of small warm bulbs sway gently in the wind. A cyclist rides slowly past the pale blue cafe. Soft city ambience with distant chatter and the faint creak of the awning. - inputImage: https://cdn.wiro.ai/uploads/sampleinputs/minimaxai_minimax_h3_image_input_1-1.jpg - duration: 5 - resolution: 768P - ratio: auto - seed: 1000 - prompt: The woman turns toward the camera, smiles and says, "Welcome, come on in." A light breeze moves her hair while soft street sounds and distant laughter drift in. - inputImage: https://cdn.wiro.ai/uploads/sampleinputs/minimaxai_minimax_h3_image_input_2-1.jpg - duration: 5 - resolution: 768P - ratio: auto - seed: 1000 - prompt: A tram rattles slowly up the tiled hillside street while pigeons scatter from the steps. Warm afternoon light slides across the walls, a bell rings twice and someone laughs in the distance. - inputImage: https://cdn.wiro.ai/uploads/sampleinputs/minimaxai_minimax_h3_image_input_2-3.jpg - duration: 5 - resolution: 768P - ratio: auto - seed: 1000 ## 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/lightx2v/minimax-h3-turbo" \ -H "Content-Type: application/json" \ -H "x-api-key: ${YOUR_API_KEY}" \ -H "x-nonce: ${NONCE}" \ -H "x-signature: ${SIGNATURE}" \ --data-binary @- <<'JSON' { "prompt": "A diver glides over a sunlit coral reef at sunrise, rays of light cutting through clear turquoise water, while a sea turtle drifts past. She whispers through her regulator, \"There you are.\" Bubbles rise with a soft rhythm and the reef crackles quietly.", "inputImage": "", "duration": "5", "resolution": "480P", "ratio": "auto", "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.