Extract subtitles
Turn audio into lyrics and timed subtitles.
curl -X POST "https://api.omnapi.com/api/v1/subtitles" \
-H "Content-Type: application/json" \
-H "x-api-key: om_demo_xxxxxxxxxxxxxxxx" \
-d '{"mode":"extract","source":{"type":"audio","audioUrl":"https://example.com/song.mp3"},"language":"auto","outputs":["srt","json"],"budget":{"maxCostUsdPerMin":0.05},"config":{"metadata":{"source":"omnapi-com-apps","appSlug":"subtitle-sync"}}}'Replace the placeholder with your API key.
Pricing
Generation uses credits. Review the current quote before submitting; USD estimates include the credit package purchase fee.
Credit packages and all operation prices →USD estimates include the selected package purchase fee. Credits are the billing unit.
Timed-text outputs and duration pricing
A task returns extracted lyrics plus line- and word-level timing. SRT and JSON are the default artifacts; VTT and LRC can be requested in the same operation.
- Input
- Public HTTPS audio URL
- Duration
- Up to 10 minutes
- Outputs
- Lyrics, timeline, SRT, JSON, VTT, LRC
- Retention
- 7 days by default
How the charge is calculated
The current catalog reference is $0.02 per audio minute. At the runtime conversion rate, that is 10 credits per unit, prorated to whole credits with a 1-credit minimum.
credits = max(1, ceil(durationSec / 60 × 10))The default $0.05/minute value is a client safety cap. It is not the public price. Lowering it below the quoted rate rejects the request before paid work starts.
The reference figure comes from the live quote catalog. The charged amount is credits, so the effective USD cost depends on the credit package shown in the table.
| Audio length | Credits | Starter | Pro | Enterprise |
|---|---|---|---|---|
| 30 seconds | 5 | $0.0147 | $0.0129 | $0.0103 |
| 1 minute | 10 | $0.0294 | $0.0258 | $0.0206 |
| 3 minutes | 30 | $0.0883 | $0.0773 | $0.0618 |
| 10 minutes | 100 | $0.2943 | $0.2575 | $0.206 |
POST /api/v1/subtitles/quote → POST /api/v1/subtitlesView Subtitle Sync pricing