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:

status
queued -> running -> succeeded | failed
queued | running -> cancelled
  • queued and running are in progress. While running, stage says which step the job is on.
  • succeeded, failed and cancelled are 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.

Create chart fields
FieldDescription
audiofile · requiredThe song. mp3, wav, flac, ogg or m4a.
chartsJSON array · optionalThe 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, levelstring, number · optionalShorthand for a single chart, used when charts is absent.
title, artiststring · optionalDefault: the file's tags, otherwise the file name.
modelstring · optionalDefault mpr-2.0. See Models.
rerankstring · optionalnone (default) or handsim2 (experimental).
seedinteger · optionalA 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:

202
{
  "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
200 OK
{
  "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.

List query parameters
FieldDescription
limitinteger · optional1 to 100. Default 20.
beforestring · optionalA 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"
200 OK
{
  "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
done

When the job has succeeded, result is filled in:

result
"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.zip

The chart object

Chart object fields
FieldDescription
idstringStarts with chart_.
objectstringAlways "chart".
statusstringqueued, running, succeeded, failed or cancelled.
stagestringA short description of the current step, for display.
model, rerankstringWhat the job was created with.
title, artist, filenamestringSong metadata and the uploaded file name.
duration_secondsnumberLength of the audio, in seconds.
chartsobject[]The requested difficulty and level of each chart.
seedinteger | nullThe seed you sent, or null.
costobjectamount charged, refunded so far, and currency (USD), as strings with two decimals.
errornull, or the reason when the job failed.
resultobject | nullOnce succeeded: url, bytes and expires_at.
created_at, started_at, finished_atstring | nullISO 8601 UTC timestamps.