{"openapi":"3.1.0","info":{"title":"Karaoke for Sats: Vocal Remover & Karaoke Video Maker","description":"Batch vocal separation. Pay with Bitcoin via Lightning or Cashu. See the [API guide](/api) for upload, human payment, and browser video handoff.","version":"1.0.0"},"paths":{"/pricing":{"get":{"summary":"Public Pricing","description":"Returns current pricing so clients can preview rates before uploading.","operationId":"public_pricing_pricing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricingResponse"}}}}}}},"/upload":{"post":{"summary":"Upload Batch","description":"Upload one or more tracks and return a Lightning quote and private browser handoff URL.","operationId":"upload_batch_upload_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Unique client-generated random key (32–128 URL-safe characters). Reuse only for the exact same ordered file contents and filenames.","title":"Idempotency-Key"},"description":"Unique client-generated random key (32–128 URL-safe characters). Reuse only for the exact same ordered file contents and filenames."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_batch_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadResponse"}}}},"400":{"description":"Invalid upload, idempotency key, or payment details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"410":{"description":"Unpaid audio expired. Do not pay this quote.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Conflicting or in-progress request. Honor Retry-After when present.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Temporarily unavailable or outcome uncertain. Check the existing order; do not make a second payment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orders/{order_id}/verify-payment":{"post":{"summary":"Verify Order Payment","description":"Read the existing Lightning invoice, then mint and queue once if paid. Does not create a payment.","operationId":"verify_order_payment_orders__order_id__verify_payment_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentResponse"}}}},"400":{"description":"Invalid upload, idempotency key, or payment details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"410":{"description":"Unpaid audio expired. Do not pay this quote.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Conflicting or in-progress request. Honor Retry-After when present.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Temporarily unavailable or outcome uncertain. Check the existing order; do not make a second payment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"404":{"description":"Order not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orders/{order_id}/pay-cashu":{"post":{"summary":"Pay Order With Cashu","description":"Redeem this token once. An uncertain result must not be retried using a different token.","operationId":"pay_order_with_cashu_orders__order_id__pay_cashu_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CashuPaymentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CashuPaymentResponse"}}}},"400":{"description":"Invalid upload, idempotency key, or payment details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"410":{"description":"Unpaid audio expired. Do not pay this quote.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"409":{"description":"Conflicting or in-progress request. Honor Retry-After when present.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"503":{"description":"Temporarily unavailable or outcome uncertain. Check the existing order; do not make a second payment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"404":{"description":"Order not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orders/{order_id}":{"get":{"summary":"Get Order Details","description":"Full order state endpoint allowing users to close the tab and resume anytime via link.","operationId":"get_order_details_orders__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}},"description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/download":{"get":{"summary":"Download Single Result","operationId":"download_single_result_jobs__job_id__download_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"audio/mpeg":{"schema":{"type":"string","format":"binary"}},"audio/flac":{"schema":{"type":"string","format":"binary"}},"audio/wav":{"schema":{"type":"string","format":"binary"}},"audio/mp4":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"Partial audio response for a byte range"},"400":{"description":"Track not ready","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"404":{"description":"Track or requested audio not available","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"410":{"description":"Result expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/download-vocals":{"get":{"summary":"Download Vocals","operationId":"download_vocals_jobs__job_id__download_vocals_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"audio/mpeg":{"schema":{"type":"string","format":"binary"}},"audio/flac":{"schema":{"type":"string","format":"binary"}},"audio/wav":{"schema":{"type":"string","format":"binary"}},"audio/mp4":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"Partial audio response for a byte range"},"400":{"description":"Track not ready","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"404":{"description":"Track or requested audio not available","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"410":{"description":"Result expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/stems/{stem}":{"get":{"summary":"Stream Stem","operationId":"stream_stem_jobs__job_id__stems__stem__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"stem","in":"path","required":true,"schema":{"type":"string","title":"Stem"}}],"responses":{"200":{"description":"Successful Response","content":{"audio/mpeg":{"schema":{"type":"string","format":"binary"}},"audio/flac":{"schema":{"type":"string","format":"binary"}},"audio/wav":{"schema":{"type":"string","format":"binary"}},"audio/mp4":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"Partial audio response for a byte range"},"400":{"description":"Track not ready","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"404":{"description":"Track or requested audio not available","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"410":{"description":"Result expired","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/lyric-video-data":{"get":{"summary":"Lyric Video Data","operationId":"lyric_video_data_jobs__job_id__lyric_video_data_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orders/{order_id}/download-zip":{"get":{"summary":"Download Batch Zip","description":"Builds a temporary ZIP archive on demand and deletes it immediately after transfer.","operationId":"download_batch_zip_orders__order_id__download_zip_get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"No completed files","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"404":{"description":"Order not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"APIError":{"properties":{"detail":{"type":"string","title":"Detail"}},"type":"object","required":["detail"],"title":"APIError"},"Body_upload_batch_upload_post":{"properties":{"files":{"items":{"type":"string","format":"binary"},"type":"array","title":"Files","description":"One audio file per multipart files field"}},"type":"object","required":["files"],"title":"Body_upload_batch_upload_post"},"CashuPaymentRequest":{"properties":{"token":{"type":"string","maxLength":256000,"title":"Token"}},"type":"object","required":["token"],"title":"CashuPaymentRequest"},"CashuPaymentResponse":{"properties":{"order_id":{"type":"string","title":"Order Id"},"status":{"type":"string","title":"Status"},"payment_state":{"anyOf":[{"type":"string","enum":["in_progress","review","change_review"]},{"type":"null"}],"title":"Payment State"},"change_sats":{"type":"integer","title":"Change Sats","default":0},"change_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Token"}},"type":"object","required":["order_id","status"],"title":"CashuPaymentResponse"},"CreatorResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"filename":{"type":"string","title":"Filename"},"order_id":{"type":"string","title":"Order Id"},"duration_sec":{"type":"number","title":"Duration Sec"},"instrumental_url":{"type":"string","title":"Instrumental Url"},"vocals_url":{"type":"string","title":"Vocals Url"},"original_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Url"}},"type":"object","required":["job_id","filename","order_id","duration_sec","instrumental_url","vocals_url","original_url"],"title":"CreatorResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"OrderResponse":{"properties":{"quote_expired":{"type":"boolean","title":"Quote Expired","default":false},"order_id":{"type":"string","title":"Order Id"},"order_url":{"type":"string","title":"Order Url"},"order_status":{"type":"string","title":"Order Status"},"payment_state":{"anyOf":[{"type":"string","enum":["in_progress","review","change_review"]},{"type":"null"}],"title":"Payment State"},"total_sats":{"type":"integer","title":"Total Sats"},"lightning_invoice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lightning Invoice"},"change_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Token"},"mint_url":{"type":"string","title":"Mint Url","description":"The immutable Lightning invoice issuer; not necessarily the mint that was paid in Cashu."},"trusted_mints":{"items":{"type":"string"},"type":"array","title":"Trusted Mints"},"download_zip_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Zip Url"},"jobs":{"items":{"$ref":"#/components/schemas/OrderTrack"},"type":"array","title":"Jobs"}},"type":"object","required":["order_id","order_url","order_status","total_sats","lightning_invoice","change_token","mint_url","trusted_mints","jobs"],"title":"OrderResponse"},"OrderTrack":{"properties":{"job_id":{"type":"string","title":"Job Id"},"filename":{"type":"string","title":"Filename"},"duration_sec":{"type":"number","title":"Duration Sec"},"amount_sats":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Sats"},"status":{"type":"string","title":"Status"},"has_vocals":{"type":"boolean","title":"Has Vocals"},"instrumental_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instrumental Url"},"vocals_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vocals Url"},"creator_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Url"}},"type":"object","required":["job_id","filename","duration_sec","amount_sats","status","has_vocals"],"title":"OrderTrack"},"PaymentResponse":{"properties":{"order_id":{"type":"string","title":"Order Id"},"status":{"type":"string","title":"Status"},"payment_state":{"anyOf":[{"type":"string","enum":["in_progress","review","change_review"]},{"type":"null"}],"title":"Payment State"}},"type":"object","required":["order_id","status"],"title":"PaymentResponse"},"PricingResponse":{"properties":{"base_fee_sats":{"type":"integer","title":"Base Fee Sats"},"sats_per_minute":{"type":"integer","title":"Sats Per Minute"}},"type":"object","required":["base_fee_sats","sats_per_minute"],"title":"PricingResponse"},"QuotedTrack":{"properties":{"job_id":{"type":"string","title":"Job Id"},"filename":{"type":"string","title":"Filename"},"duration_sec":{"type":"number","title":"Duration Sec"},"amount_sats":{"type":"integer","title":"Amount Sats"}},"type":"object","required":["job_id","filename","duration_sec","amount_sats"],"title":"QuotedTrack"},"UploadResponse":{"properties":{"order_id":{"type":"string","title":"Order Id"},"order_url":{"type":"string","title":"Order Url"},"total_sats":{"type":"integer","title":"Total Sats"},"lightning_invoice":{"type":"string","title":"Lightning Invoice"},"mint_url":{"type":"string","title":"Mint Url"},"items":{"items":{"$ref":"#/components/schemas/QuotedTrack"},"type":"array","title":"Items"}},"type":"object","required":["order_id","order_url","total_sats","lightning_invoice","mint_url","items"],"title":"UploadResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}