Charts. Create a job, wait for it, download the zip.
Generating a chart takes minutes, so it is a job. You create one, get an id back immediately, and read the job until it finishes.
Job lifecycle
A job's status moves through these states:
queued -> running -> succeeded | failed
queued | running -> cancelledqueuedandrunningare in progress. While running,stagesays which step the job is on.succeeded,failedandcancelledare final. A failed or cancelled job is refunded in full.- You can have one job in progress at a time.
Polling. Read the job every 5 to 10 seconds. A typical three-minute song takes a few minutes. Stop as soon as the status is one of the three final values.
Create a chart
POST/v1/charts
Send multipart/form-data. The cost is charged when the job is created and returns with a 202 and the chart object.
| Field | Description |
|---|---|
audio | The song. mp3, wav, flac, ogg or m4a. |
charts | The charts to make, e.g. [{"difficulty":"MASTER","level":13.7},{"difficulty":"Re:MASTER"}]. level is optional and defaults per difficulty (BASIC 5, ADVANCED 8, EXPERT 11.5, MASTER 13.7, Re:MASTER 14.5). Up to 5, no repeats. Default: one MASTER chart. |
difficulty, level | Shorthand for a single chart, used when charts is absent. |
title, artist | Default: the file's tags, otherwise the file name. |
model | Default mpr-2.0. See Models. |
rerank | none (default) or handsim2 (experimental). |
seed | A non-negative integer. |
curl https://api.prisx.tech/v1/charts \
-H "x-api-key: $PRISX_API_KEY" \
-F audio=@crossover.mp3 \
-F title="Cross†Over" \
-F artist="HyuN" \
-F 'charts=[{"difficulty":"MASTER","level":13.7},{"difficulty":"Re:MASTER"}]'Response, 202 Accepted:
{
"id": "chart_0mf3k2a1b9xYz...",
"object": "chart",
"status": "running",
"stage": "Sonata 2.0: MASTER",
"model": "mpr-2.0",
"rerank": "none",
"title": "Cross†Over (feat. LyuU)",
"artist": "HyuN",
"filename": "crossover.mp3",
"duration_seconds": 154.23,
"charts": [{ "difficulty": "MASTER", "level": 13.7 }],
"seed": null,
"cost": { "amount": "2.59", "refunded": "0.00", "currency": "USD" },
"error": null,
"result": null,
"created_at": "2026-11-29T10:00:00.000Z",
"started_at": "2026-11-29T10:00:05.000Z",
"finished_at": null
}Estimate a price
POST/v1/charts/estimate
Prices a request without creating a job or spending credits. It takes the same body as create, but only audio and charts (or difficulty and level) are read.
curl https://api.prisx.tech/v1/charts/estimate \
-H "x-api-key: $PRISX_API_KEY" \
-F audio=@crossover.mp3 \
-F difficulty=MASTER{
"object": "estimate",
"duration_seconds": 154.23,
"billed_seconds": 155,
"charts": [{ "difficulty": "MASTER", "level": 13.7 }],
"cost": { "amount": "2.59", "currency": "USD" },
"balance": { "available": "10.00", "currency": "USD" }
}List charts
GET/v1/charts
Your jobs, newest first.
| Field | Description |
|---|---|
limit | 1 to 100. Default 20. |
before | A chart id. Returns the page of jobs older than it. |
curl "https://api.prisx.tech/v1/charts?limit=10" \
-H "x-api-key: $PRISX_API_KEY"{
"object": "list",
"data": [ { "id": "chart_...", "object": "chart", "status": "succeeded" } ],
"has_more": false
}When has_more is true, pass the last id as before to get the next page.
Get a chart
GET/v1/charts/{id}
Returns one job. The status is synced with the GPU worker when you read it, so this is the call to poll.
ID=chart_0mf3k2a1b9xYz...
while true; do
STATUS=$(curl -s https://api.prisx.tech/v1/charts/$ID \
-H "x-api-key: $PRISX_API_KEY" | jq -r .status)
echo "$STATUS"
case "$STATUS" in succeeded|failed|cancelled) break ;; esac
sleep 7
doneWhen the job has succeeded, result is filled in:
"result": {
"url": "https://api.prisx.tech/v1/charts/{id}/content",
"bytes": 3389229,
"expires_at": "..."
}Cancel a chart
POST/v1/charts/{id}/cancel
Cancels a queued or running job and refunds it in full.
curl -X POST https://api.prisx.tech/v1/charts/$ID/cancel \
-H "x-api-key: $PRISX_API_KEY"Download the result
GET/v1/charts/{id}/content
Returns application/zip containing:
maidata.txt, the simai chart, with every difficulty you requested.track.mp3, the audio.
The zip is kept for 7 days after the job succeeds. Before then, asking for it on a job that has not succeeded returns 400 invalid_request_error; after, 404 not_found_error.
curl https://api.prisx.tech/v1/charts/$ID/content \
-H "x-api-key: $PRISX_API_KEY" \
-o chart.zip
unzip chart.zipThe chart object
| Field | Description |
|---|---|
id | Starts with chart_. |
object | Always "chart". |
status | queued, running, succeeded, failed or cancelled. |
stage | A short description of the current step, for display. |
model, rerank | What the job was created with. |
title, artist, filename | Song metadata and the uploaded file name. |
duration_seconds | Length of the audio, in seconds. |
charts | The requested difficulty and level of each chart. |
seed | The seed you sent, or null. |
cost | amount charged, refunded so far, and currency (USD), as strings with two decimals. |
error | null, or the reason when the job failed. |
result | Once succeeded: url, bytes and expires_at. |
created_at, started_at, finished_at | ISO 8601 UTC timestamps. |