Back to APIs

Unified Agent API

Subtitles

Subtitles

Generate SRT/VTT subtitles from audio or video files.

POST/v1/subtitles/generate

Overview

Generate SRT/VTT subtitles from audio or video

Credits

2 credits per call

Providers

Deepgram

SDK Method

client.generate_subtitles(...)

Parameters

audio_urlRequired

string

URL to audio/video.

language

string (default: en)

Language code.

format

select (default: srt)

Subtitle format.

SRT
VTT

Example Response

{
  "success": true,
  "data": {
    "subtitle_content": "1\n00:00:00,080 --> 00:00:03,299\nYeah. As as much as, it's worth celebrating,\n\n2\n00:00:04,480 --> 00:00:05,779\nthe first, spacewalk,\n\n3\n00:00:06,319 --> 00:00:07,859\nwith an all female team,",
    "format": "srt",
    "language": "en",
    "duration_seconds": 25.93,
    "utterance_count": 8
  },
  "metadata": {
    "provider_used": "deepgram",
    "providers_tried": [
      "deepgram"
    ],
    "mode_used": null,
    "response_time_ms": 1473,
    "request_id": "req_55f379a5"
  },
  "credits_used": 2
}

Get Started

Use this API through the O-mega platform. Create an API key in your dashboard, then call the endpoint with your key in the Authorization header.

Try Subtitles

Test Subtitles in the interactive playground. No setup required.

Open Playground
Subtitles API | Unified Agent APIs | suprbrowser