TubeOnAITubeOnAIDevelopers
Skip to Content
TubeOnAITubeOnAIDevelopers

Get a transcript

POST
/v1/ai/transcript

Authorization

bearerAuth
headerAuthorizationBearer <token>

Request Body

application/json
  1. body

Exactly one of url, media_url, id, upload_id or podcast.

allow_image_ocr?boolean

Run AI image OCR only after explicit user consent to the configured credit policy.

allow_paid_transcription?boolean

Paid speech-to-text when there are no captions. Only after the user agreed to the cost.

cursor?|

next_cursor from the previous page. Fetch it only if the question needs more.

format?TranscriptFormatParam
Value in"text""segments""srt"
id?|

The id from an earlier call: continue a pending item or fetch another page.

media_url?|

Explicit native-media discovery for a URL outside the known routing hints.

podcast?|null
poll_only?boolean

Continue an existing item without starting another attempt if it fails. Only with id; defaults to false.

upload_id?|

A verified Library-purpose upload returned by get_upload; never a local path.

url?|

A YouTube video, article or public document URL. For podcasts use the explicit podcast selector.

Response Body

application/json
  1. response
content?|

text and srt formats.

id*string
language?string|null
library_url*string
next_cursor?|

Pass as cursor (with id) for the next page; null on the last page.

segments?array<>|

segments format.

source?|null
status*"ready"
Value in"ready"
transcript_source*TranscriptSourceView

Acquisition method when transcript_source_verified is true; otherwise the historical compatibility projection, without a claim about actual processing.

Value in"captions""text""stt"
transcript_source_verified*boolean

False when historical processing receipts are unavailable: retain the legacy source projection for compatibility, but its acquisition is unknown.

Example Request
curl -X POST 'https://beta.app.tubeonai.com/v1/ai/transcript' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "content": "string",  "id": "string",  "language": "string",  "library_url": "string",  "next_cursor": "string",  "segments": [    {      "end_ms": 0,      "speaker": "string",      "start_ms": 0,      "text": "string"    }  ],  "source": {    "duration_sec": 0,    "kind": "youtube",    "title": "string",    "url": "string"  },  "status": "ready",  "transcript_source": "captions",  "transcript_source_verified": true}