Query task status
curl --request POST \
--url https://api.wizzx.ai/api/v1/task/status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.wizzx.ai/api/v1/task/status"
payload = { "task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({task_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.wizzx.ai/api/v1/task/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wizzx.ai/api/v1/task/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'task_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wizzx.ai/api/v1/task/status"
payload := strings.NewReader("{\n \"task_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.wizzx.ai/api/v1/task/status")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"task_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wizzx.ai/api/v1/task/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"task_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"message": "success",
"data": {
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "PENDING",
"result_urls": [
"<string>"
],
"error": "<string>",
"credits_deducted": 1,
"result": {
"tracks": [
{
"index": 2,
"audio_url": "<string>",
"image_url": "<string>",
"video_url": "<string>",
"title": "<string>",
"style": "<string>",
"lyrics": "<string>",
"duration": 123
}
],
"lyrics": [
{
"text": "<string>",
"title": "<string>",
"style": "<string>"
}
],
"style": "<string>",
"files": [
{
"format": "mp3",
"url": "<string>"
}
],
"video_url": "<string>",
"bpm": {
"avg": 123,
"min": 123,
"max": 123
},
"persona_id": "<string>",
"model_id": "<string>",
"midi": {},
"aligned_lyrics": {},
"data": "<unknown>"
}
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1,
"balance": 1,
"required": 1,
"shortfall": 1,
"billing_url": "<string>"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1,
"balance": 1,
"required": 1,
"shortfall": 1,
"billing_url": "<string>"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1,
"balance": 1,
"required": 1,
"shortfall": 1,
"billing_url": "<string>"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1,
"balance": 1,
"required": 1,
"shortfall": 1,
"billing_url": "<string>"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1,
"balance": 1,
"required": 1,
"shortfall": 1,
"billing_url": "<string>"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1,
"balance": 1,
"required": 1,
"shortfall": 1,
"billing_url": "<string>"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1,
"balance": 1,
"required": 1,
"shortfall": 1,
"billing_url": "<string>"
}Task Management
Check task status
POST polling for generation task status
POST
/
api
/
v1
/
task
/
status
Query task status
curl --request POST \
--url https://api.wizzx.ai/api/v1/task/status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.wizzx.ai/api/v1/task/status"
payload = { "task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({task_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://api.wizzx.ai/api/v1/task/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wizzx.ai/api/v1/task/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'task_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wizzx.ai/api/v1/task/status"
payload := strings.NewReader("{\n \"task_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.wizzx.ai/api/v1/task/status")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"task_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wizzx.ai/api/v1/task/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"task_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"code": 0,
"message": "success",
"data": {
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "PENDING",
"result_urls": [
"<string>"
],
"error": "<string>",
"credits_deducted": 1,
"result": {
"tracks": [
{
"index": 2,
"audio_url": "<string>",
"image_url": "<string>",
"video_url": "<string>",
"title": "<string>",
"style": "<string>",
"lyrics": "<string>",
"duration": 123
}
],
"lyrics": [
{
"text": "<string>",
"title": "<string>",
"style": "<string>"
}
],
"style": "<string>",
"files": [
{
"format": "mp3",
"url": "<string>"
}
],
"video_url": "<string>",
"bpm": {
"avg": 123,
"min": 123,
"max": 123
},
"persona_id": "<string>",
"model_id": "<string>",
"midi": {},
"aligned_lyrics": {},
"data": "<unknown>"
}
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1,
"balance": 1,
"required": 1,
"shortfall": 1,
"billing_url": "<string>"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1,
"balance": 1,
"required": 1,
"shortfall": 1,
"billing_url": "<string>"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1,
"balance": 1,
"required": 1,
"shortfall": 1,
"billing_url": "<string>"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1,
"balance": 1,
"required": 1,
"shortfall": 1,
"billing_url": "<string>"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1,
"balance": 1,
"required": 1,
"shortfall": 1,
"billing_url": "<string>"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1,
"balance": 1,
"required": 1,
"shortfall": 1,
"billing_url": "<string>"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": "<string>",
"code": "<string>"
},
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry_after": 1,
"balance": 1,
"required": 1,
"shortfall": 1,
"billing_url": "<string>"
}Query task
Poll the Wizzxtask_id returned by submit with the same API key. You can query via RESTful GET /api/v1/task/{task_id} (recommended), GET /api/v1/task/status?task_id={task_id}, or POST /api/v1/task/status. All three read stored task state without re-submitting work to the provider.
curl --fail-with-body --silent --show-error \
https://api.wizzx.ai/api/v1/task/4bbbc9e0-8de8-4f35-a31e-8596c1a6d18a \
-H "Authorization: Bearer <api_key>"
POST:
curl --fail-with-body --silent --show-error \
-X POST https://api.wizzx.ai/api/v1/task/status \
-H "Authorization: Bearer <api_key>" \
-H "Content-Type: application/json" \
--data '{
"task_id": "4bbbc9e0-8de8-4f35-a31e-8596c1a6d18a"
}'
PENDING, QUEUED, PROCESSING, REVIEW_REQUIRED, SUCCEEDED, and FAILED. Internal DISPATCHING is returned as PROCESSING.
Continue polling the same Task ID for non-terminal states. Do not automatically create a replacement task for an unknown state, REVIEW_REQUIRED, or an ambiguous submit response. If a task fails and its reserved credits are refunded (or was never charged), credits_deducted is 0.
Response
A successful task lists its media inresult_urls. The field is unchanged for every model.
{
"code": 0,
"message": "success",
"data": {
"task_id": "4bbbc9e0-8de8-4f35-a31e-8596c1a6d18a",
"status": "SUCCEEDED",
"result_urls": ["https://cdn.wizzx.ai/images/2026/10/15/result.png"],
"error": "",
"credits_deducted": 9
},
"request_id": "0d9d7b8e-51f6-4a1e-8d0e-9b7c2a6f4c33"
}
Music results
Finished music tasks also return a structuredresult object. Which fields are present depends on the action; fields without a value are omitted. Other models do not return result.
{
"code": 0,
"message": "success",
"data": {
"task_id": "6f0c1c52-2a4b-4d53-9a5e-3c0f2f7d9e11",
"status": "SUCCEEDED",
"result_urls": [
"https://cdn.wizzx.ai/audio/2026/10/15/track-1.mp3",
"https://cdn.wizzx.ai/audio/2026/10/15/track-2.mp3"
],
"error": "",
"credits_deducted": 60,
"result": {
"tracks": [
{
"index": 1,
"audio_url": "https://cdn.wizzx.ai/audio/2026/10/15/track-1.mp3",
"image_url": "https://cdn.wizzx.ai/images/2026/10/15/cover-1.jpg",
"title": "Midnight Drive",
"style": "synthwave, female vocal",
"lyrics": "[Verse]\nNeon-lit streets on a rainy night",
"duration": 119.8
},
{
"index": 2,
"audio_url": "https://cdn.wizzx.ai/audio/2026/10/15/track-2.mp3",
"image_url": "https://cdn.wizzx.ai/images/2026/10/15/cover-2.jpg",
"title": "Midnight Drive",
"style": "synthwave, female vocal",
"lyrics": "[Verse]\nNeon-lit streets on a rainy night",
"duration": 124.1
}
]
}
},
"request_id": "0d9d7b8e-51f6-4a1e-8d0e-9b7c2a6f4c33"
}
| Field | Set by | Content |
|---|---|---|
tracks[] | Every action that produces audio | index, audio_url, image_url, video_url, title, style, lyrics, duration (seconds). Pass index as audio_index to use the track in a later action |
lyrics[] | lyrics | title, text, style |
style | upsample-tags | Enhanced style text |
files[] | download | format and url, in request order |
video_url | music-video | MP4 URL |
bpm | bpm | avg, min, max |
persona_id | persona, create-voice | Informational. Reference the persona with this task’s task_id as persona_task_id |
model_id | create-model | Informational. Reference the model with this task’s task_id as custom_model_task_id |
midi | midi | state and instruments[] with name and notes[] |
aligned_lyrics | aligned-lyrics | alignment[] and waveform_data |
data | – | Raw result when the output has no documented structure |
- Tracks keep their order, even when a track has no
audio_url(for example afterupload). - For music tasks,
result_urlslists every trackaudio_url, then thedownloadfiles, then the music video. Text and analysis results such as lyrics, BPM, and MIDI have no URL; read them fromresult. - Media URLs are normally served from
cdn.wizzx.ai. If copying a file to the CDN fails, the original URL is returned instead and may expire, so download results you want to keep. - Music tasks that finished before October 15, 2026 have no
result.
Was this page helpful?
