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.

EndpointWhat it doesCredits
POST /v1/transcriptionsTurn a recording into sheet musicYes
POST /v1/stemsSeparate a song into stemsYes
POST /v1/scansRead a photo or scan of sheet musicYes
GET /v1/jobs/{id}Check a jobNo
GET /v1/jobs/{id}/resultDownload a finished resultNo
GET /v1/accountCheck your credit balanceNo
GET /v1/pricingRead live per-call ratesNo

Conventions

  • Conversions are asynchronous: you get a job id and poll for the result.
  • Errors are always {"error": {"code": "...", "message": "..."}}. Branch on code; see errors.
  • Timestamps are ISO 8601 in UTC.
  • Send Idempotency-Key on every POST that spends credits.
POST/v1/transcriptionsSpends 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

NameTypeDescription
Idempotency-KeystringOptional. 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)

NameTypeDescription
urlstringPublic https link to the audio file (max 25 MB). Send exactly one of url or audio_base64, or upload with multipart.
audio_base64stringThe audio file, base64-encoded. Alternative to url.
start_secondsnumberOnly process audio from this point. Credits are charged for the processed part only.
end_secondsnumberStop processing at this point.
max_creditsintegerSpending cap. If the job would cost more, it is refused with cost_exceeds_max_credits and nothing is charged. Strongly recommended for autonomous agents.
titlestringA label for your own records (max 120 characters).
modestring (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_timingbooleanFor 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"
  }
}
POST/v1/stemsSpends credits

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

NameTypeDescription
Idempotency-KeystringOptional. 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)

NameTypeDescription
urlstringPublic https link to the audio file (max 25 MB). Send exactly one of url or audio_base64, or upload with multipart.
audio_base64stringThe audio file, base64-encoded. Alternative to url.
start_secondsnumberOnly process audio from this point. Credits are charged for the processed part only.
end_secondsnumberStop processing at this point.
max_creditsintegerSpending cap. If the job would cost more, it is refused with cost_exceeds_max_credits and nothing is charged. Strongly recommended for autonomous agents.
titlestringA 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"
  }
}
POST/v1/scansSpends credits

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

NameTypeDescription
Idempotency-KeystringOptional. 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)

NameTypeDescription
urlstringPublic 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_base64stringThe image, base64-encoded. Alternative to url.
max_creditsintegerSpending cap (see transcriptions).
titlestringA 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"
  }
}
GET/v1/jobs/{id}No credits

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"
  }
}
GET/v1/jobs/{id}/resultNo credits

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

NameTypeDescription
formatstring (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"
  }
}
GET/v1/accountNo credits

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"
}
GET/v1/pricingNo key needed

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"
}