API reference
Base URL https://api.scoreflipml.roovemusic.com. JSON in, JSON out. Authenticate with Authorization: Bearer sf_live_...(see authentication). Also available as an OpenAPI 3.1 spec.
| Endpoint | What it does | Credits |
|---|---|---|
POST /v1/transcriptions | Turn a recording into sheet music | Yes |
POST /v1/stems | Separate a song into stems | Yes |
POST /v1/scans | Read a photo or scan of sheet music | Yes |
GET /v1/jobs/{id} | Check a job | No |
GET /v1/jobs/{id}/result | Download a finished result | No |
GET /v1/account | Check your credit balance | No |
GET /v1/pricing | Read live per-call rates | No |
Conventions
- Conversions are asynchronous: you get a job id and poll for the result.
- Errors are always
{"error": {"code": "...", "message": "..."}}. Branch oncode; see errors. - Timestamps are ISO 8601 in UTC.
- Send
Idempotency-Keyon everyPOSTthat spends credits.
Turn a recording into sheet music. Converts audio (a piano recording, a song, a band) into a MusicXML score and a MIDI file. The job runs asynchronously: this returns 202 with a job id; poll GET /v1/jobs/{id}, then fetch the result. Charged up front, refunded automatically if the job fails.
Cost: 20 credits per started minute of audio (40 with mode=band). The cost charged is returned as credits_charged.
Headers
| Name | Type | Description |
|---|---|---|
Idempotency-Key | string | Optional. Repeating a request with the same key within 24 hours returns the original job and charges nothing more. Use a UUID. Safe retries for agents. |
Request body (JSON)
| Name | Type | Description |
|---|---|---|
url | string | Public https link to the audio file (max 25 MB). Send exactly one of url or audio_base64, or upload with multipart. |
audio_base64 | string | The audio file, base64-encoded. Alternative to url. |
start_seconds | number | Only process audio from this point. Credits are charged for the processed part only. |
end_seconds | number | Stop processing at this point. |
max_credits | integer | Spending cap. If the job would cost more, it is refused with cost_exceeds_max_credits and nothing is charged. Strongly recommended for autonomous agents. |
title | string | A label for your own records (max 120 characters). |
mode | string (auto | lead | melody | piano | band) | auto (default) picks per recording. lead = melody, chords and bass. melody = the tune alone on one staff. piano = every note with the piano model. band = lead sheet plus a drum part (a higher rate per minute). |
free_timing | boolean | For playing with no steady beat (rubato, improvisation). Keeps the performance as played instead of snapping it to a beat grid. |
Or send multipart/form-data with the file in a field named file plus the other fields as form values.
Response 202
{
"id": "5b0f3c9e-8f0a-4c1e-9d55-3c2a7c8f1a10",
"object": "job",
"type": "transcription",
"status": "queued",
"progress": 0,
"credits_charged": "<credits for this job>",
"credits_remaining": "<your balance after the charge>",
"links": {
"self": "https://api.scoreflipml.roovemusic.com/v1/jobs/5b0f3c9e-8f0a-4c1e-9d55-3c2a7c8f1a10"
}
}Separate a song into stems. Splits a song into vocals, drums, bass and other. Asynchronous, like transcriptions. The result lists a download link for each stem.
Cost: 20 credits per started minute of audio.
Headers
| Name | Type | Description |
|---|---|---|
Idempotency-Key | string | Optional. Repeating a request with the same key within 24 hours returns the original job and charges nothing more. Use a UUID. Safe retries for agents. |
Request body (JSON)
| Name | Type | Description |
|---|---|---|
url | string | Public https link to the audio file (max 25 MB). Send exactly one of url or audio_base64, or upload with multipart. |
audio_base64 | string | The audio file, base64-encoded. Alternative to url. |
start_seconds | number | Only process audio from this point. Credits are charged for the processed part only. |
end_seconds | number | Stop processing at this point. |
max_credits | integer | Spending cap. If the job would cost more, it is refused with cost_exceeds_max_credits and nothing is charged. Strongly recommended for autonomous agents. |
title | string | A label for your own records (max 120 characters). |
Or send multipart/form-data with the file in a field named file plus the other fields as form values.
Response 202
{
"id": "5b0f3c9e-8f0a-4c1e-9d55-3c2a7c8f1a10",
"object": "job",
"type": "stems",
"status": "queued",
"progress": 0,
"credits_charged": "<credits for this job>",
"credits_remaining": "<your balance after the charge>",
"links": {
"self": "https://api.scoreflipml.roovemusic.com/v1/jobs/5b0f3c9e-8f0a-4c1e-9d55-3c2a7c8f1a10"
}
}Read a photo or scan of sheet music. Reads one page of printed sheet music into MusicXML (optical music recognition). One request per page. PDFs are not supported yet; send page images.
Cost: 10 credits per page image.
Headers
| Name | Type | Description |
|---|---|---|
Idempotency-Key | string | Optional. Repeating a request with the same key within 24 hours returns the original job and charges nothing more. Use a UUID. Safe retries for agents. |
Request body (JSON)
| Name | Type | Description |
|---|---|---|
url | string | Public https link to a PNG, JPEG, WebP or TIFF image (max 25 MB). Send exactly one of url or image_base64, or upload with multipart. |
image_base64 | string | The image, base64-encoded. Alternative to url. |
max_credits | integer | Spending cap (see transcriptions). |
title | string | A label for your own records. |
Or send multipart/form-data with the file in a field named file plus the other fields as form values.
Response 202
{
"id": "5b0f3c9e-8f0a-4c1e-9d55-3c2a7c8f1a10",
"object": "job",
"type": "scan",
"status": "queued",
"progress": 0,
"credits_charged": "<credits for this job>",
"credits_remaining": "<your balance after the charge>",
"links": {
"self": "https://api.scoreflipml.roovemusic.com/v1/jobs/5b0f3c9e-8f0a-4c1e-9d55-3c2a7c8f1a10"
}
}Check a job. Returns the job's status: queued, processing, done or failed. Poll every 2 to 5 seconds. A typical 3-minute transcription takes 30 to 90 seconds. A failed job has already been refunded.
Response 200
{
"id": "5b0f3c9e-8f0a-4c1e-9d55-3c2a7c8f1a10",
"object": "job",
"type": "transcription",
"status": "done",
"progress": 100,
"credits_charged": "<credits for this job>",
"created_at": "2026-11-26T10:15:00Z",
"expires_at": "2026-12-03T10:15:00Z",
"result": {
"url": "https://api.scoreflipml.roovemusic.com/v1/jobs/5b0f3c9e-8f0a-4c1e-9d55-3c2a7c8f1a10/result",
"formats": [
"musicxml",
"midi",
"json"
],
"expires_at": "2026-12-03T10:15:00Z"
}
}Download a finished result. Returns the result of a done job in the format you ask for. musicxml and midi return the file itself (content types application/vnd.recordare.musicxml+xml and audio/midi). json returns everything the job produced, including tempo, key and time signature.
Query parameters
| Name | Type | Description |
|---|---|---|
format | string (musicxml | midi | json) | Default json. Transcriptions support all three, scans support musicxml and json, stems support json (which holds the stem download links). |
Response 200
{
"midi": "<base64>",
"musicXml": "<?xml ...",
"meta": {
"tempoBpm": 96,
"timeSignature": "4/4",
"key": "C major"
}
}Check your credit balance. Returns the credits left on the account that owns the API key. Cheap to call; check it before large batches.
Response 200
{
"object": "account",
"credits": "<your balance>",
"key_id": "a1b2c3d4e5f6",
"buy_url": "https://www.roovemusic.com/scoreflip/developers/console"
}Read live per-call rates. Current credit rates per call, and a link (purchase_pricing_url) to the credit pack and custom-amount prices at https://api.scoreflip.roovemusic.com/api/v1/pricing/credits. No API key needed, so an agent can quote costs before an account exists.
Response 200
{
"object": "pricing",
"free_tier": false,
"rates": {
"transcription": {
"credits": 20,
"per": "started minute of audio"
},
"stems": {
"credits": 20,
"per": "started minute of audio"
},
"scan": {
"credits": 10,
"per": "page image"
}
},
"purchase_pricing_url": "https://api.scoreflip.roovemusic.com/api/v1/pricing/credits"
}