Quickstart

From zero to a MusicXML file in about five minutes.

  1. Sign in and buy credits. Open the ScoreFlip app (this page takes you there), sign in with Google or Apple, go to Settings, Developer API and buy credits, a pack or any amount. There is no free tier; see credits and pricing for the current prices.
  2. Create an API key. In the same screen, name a key and copy it. It starts with sf_live_ and is shown only once.
  3. Store it safely. Put it in an environment variable, never in client-side code or a public repository: export SCOREFLIP_API_KEY=sf_live_...
  4. Run a conversion. The example below starts a job, waits for it, and saves the score.
# 1. Start a job (this spends credits; max_credits caps the cost)
curl -X POST https://api.scoreflipml.roovemusic.com/v1/transcriptions \
  -H "Authorization: Bearer $SCOREFLIP_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/my-recording.mp3", "mode": "auto", "max_credits": 200}'

# 2. Poll until status is "done"
curl https://api.scoreflipml.roovemusic.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $SCOREFLIP_API_KEY"

# 3. Download the score
curl "https://api.scoreflipml.roovemusic.com/v1/jobs/JOB_ID/result?format=musicxml" \
  -H "Authorization: Bearer $SCOREFLIP_API_KEY" -o score.musicxml

How a job works

  1. Submit. POST /v1/transcriptions returns 202 with the job and the credits charged. The charge happens up front.
  2. Poll. GET /v1/jobs/{id} every 2 to 5 seconds. Status moves queued, processing, then done or failed. A three-minute song usually takes 30 to 90 seconds.
  3. Download. GET /v1/jobs/{id}/result?format=musicxml (or midi, or json). Results are kept 7 days.

Failed jobs cost nothing. If a job fails, the credits come straight back. Unreadable or too-long audio is refused before it is charged.

Sending a file instead of a link

Use a multipart upload (max 25 MB):

curl -X POST https://api.scoreflipml.roovemusic.com/v1/transcriptions \
  -H "Authorization: Bearer $SCOREFLIP_API_KEY" \
  -F file=@recording.mp3 -F mode=piano -F max_credits=100

Next