Generate a time-synced lyrics or subtitle file from an audio or video URL using the QuickLRC API.
Set QUICKLRC_API_KEY to your API key from https://quicklrc.com/dashboard.
bash
export QUICKLRC_API_KEY=qlrc_...
bash
curl -X POST https://quicklrc.com/api/v1/transcribe \
-H "Authorization: Bearer $QUICKLRC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"fileUrl": "https://example.com/song.mp3"}'
bash
curl -X POST https://quicklrc.com/api/v1/transcribe \
-H "Authorization: Bearer $QUICKLRC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"fileUrl": "https://example.com/song.mp3",
"lyrics": "Hello world\nThis is line two"
}'
bash
curl -X POST https://quicklrc.com/api/v1/transcribe \
-H "Authorization: Bearer $QUICKLRC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"fileUrl": "https://example.com/song.mp3",
"format": "srt",
"isWordLevel": true,
"smartSections": true
}'
bash
curl -X POST https://quicklrc.com/api/v1/transcribe \
-H "Authorization: Bearer $QUICKLRC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"fileUrl": "https://youtube.com/watch?v=dQw4w9WgXcQ", "format": "lrc"}'
FieldTypeRequiredDefaultDescriptionfileUrlstringyes—Public audio/video URL or YouTube URLlyricsstringno—Plain-text lyrics for forced alignmentformatstringnolrc``lrc, srt, webvtt, ass, ttml, txt``isWordLevelbooleannofalsePer-word timestamps (karaoke)smartSectionsbooleannofalseAuto-insert [Verse 1], [Chorus] labels
HTTP 200 — plain text subtitle file in the requested format.
Cost = audio duration rounded up to the nearest minute. Failed requests are not charged. Check remaining credits at https://quicklrc.com/dashboard.
StatusMeaning401Invalid or missing API key400Missing fileUrl or invalid format402File duration exceeds remaining credits403Usage limit exceeded500Processing error — not charged