{"openapi":"3.1.0","info":{"title":"ScoreFlip API","version":"1.0.0","summary":"Audio to sheet music, stem separation and sheet music scanning, paid with credits.","description":"Convert audio into sheet music (MusicXML and MIDI), split songs into stems, and read photos of printed sheet music. There is no free tier: every call that does work spends credits, bought from $1.99. Credit packs and custom-amount prices: https://api.scoreflip.roovemusic.com/api/v1/pricing/credits. Credits never expire and failed jobs are refunded. Rate limit: 120 requests a minute per key. An MCP server for AI agents is at https://api.scoreflipml.roovemusic.com/mcp. Human docs: https://www.roovemusic.com/scoreflip/developers.","termsOfService":"https://www.roovemusic.com/scoreflip/terms","license":{"name":"Proprietary","url":"https://www.roovemusic.com/scoreflip/terms"},"contact":{"name":"ScoreFlip API support","email":"hello@roovestudio.com","url":"https://www.roovemusic.com/scoreflip/developers"}},"servers":[{"url":"https://api.scoreflipml.roovemusic.com","description":"Production"}],"externalDocs":{"description":"Developer documentation","url":"https://www.roovemusic.com/scoreflip/developers"},"tags":[{"name":"Conversions","description":"Start a paid conversion job."},{"name":"Jobs","description":"Check a job and download its result."},{"name":"Account","description":"Credit balance and live prices."}],"paths":{"/v1/transcriptions":{"post":{"operationId":"createTranscription","summary":"Turn a recording into sheet music","description":"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.\n\n**Spends credits:** 20 credits per started minute of audio (40 with mode=band). The cost charged is returned as credits_charged.","tags":["Conversions"],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Job accepted and charged.","content":{"application/json":{"example":{"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"}}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits. Nothing was charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input could not be used, or the cost exceeds max_credits. Nothing was charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"Idempotency-Key","in":"header","schema":{"type":"string"},"description":"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."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","description":"Public https link to the audio file (max 25 MB). Send exactly one of url or audio_base64, or upload with multipart."},"audio_base64":{"type":"string","description":"The audio file, base64-encoded. Alternative to url."},"start_seconds":{"type":"number","description":"Only process audio from this point. Credits are charged for the processed part only."},"end_seconds":{"type":"number","description":"Stop processing at this point."},"max_credits":{"type":"integer","description":"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":{"type":"string","description":"A label for your own records (max 120 characters)."},"mode":{"type":"string","description":"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).","enum":["auto","lead","melody","piano","band"]},"free_timing":{"type":"boolean","description":"For playing with no steady beat (rubato, improvisation). Keeps the performance as played instead of snapping it to a beat grid."}}}},"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"The file (max 25 MB)."},"start_seconds":{"type":"string","description":"Only process audio from this point. Credits are charged for the processed part only."},"end_seconds":{"type":"string","description":"Stop processing at this point."},"max_credits":{"type":"string","description":"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":{"type":"string","description":"A label for your own records (max 120 characters)."},"mode":{"type":"string","description":"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":{"type":"string","description":"For playing with no steady beat (rubato, improvisation). Keeps the performance as played instead of snapping it to a beat grid."}}}}}}}},"/v1/stems":{"post":{"operationId":"createStems","summary":"Separate a song into stems","description":"Splits a song into vocals, drums, bass and other. Asynchronous, like transcriptions. The result lists a download link for each stem.\n\n**Spends credits:** 20 credits per started minute of audio.","tags":["Conversions"],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Job accepted and charged.","content":{"application/json":{"example":{"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"}}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits. Nothing was charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input could not be used, or the cost exceeds max_credits. Nothing was charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"Idempotency-Key","in":"header","schema":{"type":"string"},"description":"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."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","description":"Public https link to the audio file (max 25 MB). Send exactly one of url or audio_base64, or upload with multipart."},"audio_base64":{"type":"string","description":"The audio file, base64-encoded. Alternative to url."},"start_seconds":{"type":"number","description":"Only process audio from this point. Credits are charged for the processed part only."},"end_seconds":{"type":"number","description":"Stop processing at this point."},"max_credits":{"type":"integer","description":"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":{"type":"string","description":"A label for your own records (max 120 characters)."}}}},"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"The file (max 25 MB)."},"start_seconds":{"type":"string","description":"Only process audio from this point. Credits are charged for the processed part only."},"end_seconds":{"type":"string","description":"Stop processing at this point."},"max_credits":{"type":"string","description":"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":{"type":"string","description":"A label for your own records (max 120 characters)."}}}}}}}},"/v1/scans":{"post":{"operationId":"createScan","summary":"Read a photo or scan of sheet music","description":"Reads one page of printed sheet music into MusicXML (optical music recognition). One request per page. PDFs are not supported yet; send page images.\n\n**Spends credits:** 10 credits per page image.","tags":["Conversions"],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Job accepted and charged.","content":{"application/json":{"example":{"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"}}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits. Nothing was charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"The input could not be used, or the cost exceeds max_credits. Nothing was charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"Idempotency-Key","in":"header","schema":{"type":"string"},"description":"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."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"url":{"type":"string","description":"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":{"type":"string","description":"The image, base64-encoded. Alternative to url."},"max_credits":{"type":"integer","description":"Spending cap (see transcriptions)."},"title":{"type":"string","description":"A label for your own records."}}}},"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"The file (max 25 MB)."},"max_credits":{"type":"string","description":"Spending cap (see transcriptions)."},"title":{"type":"string","description":"A label for your own records."}}}}}}}},"/v1/jobs/{id}":{"get":{"operationId":"getJob","summary":"Check a job","description":"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.","tags":["Jobs"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The job.","content":{"application/json":{"example":{"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"}}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Job id."}]}},"/v1/jobs/{id}/result":{"get":{"operationId":"getResult","summary":"Download a finished result","description":"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.","tags":["Jobs"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The result in the requested format.","content":{"application/json":{"example":{"midi":"<base64>","musicXml":"<?xml ...","meta":{"tempoBpm":96,"timeSignature":"4/4","key":"C major"}}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"},"description":"Job id."},{"name":"format","in":"query","schema":{"type":"string","enum":["musicxml","midi","json"]},"description":"Default json. Transcriptions support all three, scans support musicxml and json, stems support json (which holds the stem download links)."}]}},"/v1/account":{"get":{"operationId":"getAccount","summary":"Check your credit balance","description":"Returns the credits left on the account that owns the API key. Cheap to call; check it before large batches.","tags":["Account"],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The account.","content":{"application/json":{"example":{"object":"account","credits":"<your balance>","key_id":"a1b2c3d4e5f6","buy_url":"https://www.roovemusic.com/scoreflip/developers/console"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/pricing":{"get":{"operationId":"getPricing","summary":"Read live per-call rates","description":"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.","tags":["Account"],"security":[],"responses":{"200":{"description":"The rates.","content":{"application/json":{"example":{"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"}}}},"405":{"description":"Wrong HTTP method.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"sf_live_...","description":"API key from the developer console (https://www.roovemusic.com/scoreflip/developers/console). Also accepted in the X-API-Key header."}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["missing_api_key","invalid_api_key","rate_limited","insufficient_credits","cost_exceeds_max_credits","invalid_request","invalid_mode","invalid_idempotency_key","missing_file","format_unavailable","not_found","method_not_allowed","job_not_ready","job_failed","idempotency_in_progress","result_expired","file_too_large","unsupported_media_type","url_unusable","unreadable_audio","audio_too_long","unsupported_file","idempotency_key_reuse","internal","result_unavailable","unavailable"]},"message":{"type":"string"},"credits_required":{"type":"integer"},"credits_available":{"type":"integer"},"buy_url":{"type":"string","format":"uri"}}}}}}}}