SRTGen.com LogoSRTGen.com

Transcribe API

Submit media for AI transcription and project creation. Supports both Video and Audio files.

POST/api/v1/transcribe
Quick Implementation
curl -X POST https://api.srtgen.com/api/v1/transcribe \
  -H "x-api-key: <YOUR_API_KEY>" \
  -F "file=@/path/to/your/video.mp4"
POSThttps://api.srtgen.com/api/v1/transcribe

Request Parameters

ParameterTypeRequiredDescription
fileFileYes

The media file to transcribe (Multipart).

Supported: Video (mp4, mov, avi, webm, mkv), Audio (mp3, wav, m4a, flac). Max 2GB.

videoUrlStringNo*External URL of the media (required if file is not provided in JSON body).
nameStringNoCustom name for the project.
languageCodeStringNo

Source language code (e.g., 'en-us'). Defaults to 'auto' (auto-detect) if omitted.

filterProfanityBooleanNoWhether to auto-censor explicit words. Default is false.
disfluenciesBooleanNoWhether to include filler words (e.g., 'uh', 'um'). Default is false.
medicalModeBooleanNoOptimized transcription for healthcare/medical audio. Default is false.
Advanced: URL + AI Settings
curl -X POST https://api.srtgen.com/api/v1/transcribe \
  -H "x-api-key: <YOUR_API_KEY>" \
  -F "videoUrl=https://example.com/medical_lecture.mp4" \
  -F "languageCode=en-us" \
  -F "filterProfanity=true" \
  -F "disfluencies=false" \
  -F "medicalMode=true"
POSThttps://api.srtgen.com/api/v1/transcribe

Success Response

A successful request returns a 200 OK status with the project and background job details.

  • projectIdThe unique identifier for your project.
  • status'inProgress' (transcription in progress).
  • Note: Credits are calculated and deducted from your balance asynchronously after the transcription process is finalized.
{
  "success": true,
  "projectId": "proj_8k2n9m1b",
  "status": "inProgress"
}

Error Codes

StatusError CodeDescription
400missing_fileNo file found in the 'file' or 'video' field.
400unreachable_urlThe provided videoUrl is unreachable or returned an error.
400invalid_parameterOne of the parameters (e.g., videoUrl) is malformed.
400file_read_failedThe uploaded file could not be read or is corrupted.
401unauthorizedAPI Key is missing or invalid.
403insufficient_balanceYou don't have enough credits to process this media duration.
403storage_quota_exceededThe file exceeds your plan's remaining cloud storage quota.
413payload_too_largeThe file exceeds the system's absolute 2GB upload limit.
500transcription_failedThe transcription job could not be initiated (AI provider outage).
500server_errorSomething went wrong, please try again later.
Error Response Structure
{
  "success": false,
  "error": "insufficient_balance",
  "message": "Your project requires 5 credits, but your balance is 2."
}
Was this page helpful?