> For the complete documentation index, see [llms.txt](https://bump.sh/subtitletranslatoronline/doc/subtitletranslatoronline-api/llms.txt)

# Anonymous 40-line context-aware subtitle translation preview

> POST /api/subtitle/preview
> 
> Translates up to 40 subtitle cues anonymously with zero API key required, returning both context-aware AI lines and literal machine translation diffs with preserved cue timings.
> Try interactively at [SubtitleTranslatorOnline](https://subtitletranslatoronline.com) or [SRT Translator](https://subtitletranslatoronline.com/srt-translator).



## Servers
- Production Edge API (Cloudflare Workers): https://subtitletranslatoronline.com (Production Edge API (Cloudflare Workers))



## Parameters



### Body: application/json (object)

- **content** (string)
  Raw SRT, WebVTT, or ASS subtitle payload (first 40 cues processed).

- **targetLang** (string)
  Target ISO language code (e.g., en, es, pt, ja, ko, zh-CN, fr, de).

- **sourceLang** (string)
  Optional source ISO language code or auto.

- **format** (string)

- **bilingual** (boolean)



## Responses
### 200
Context-aware preview cues with literal MT comparison diff

#### Body: application/json (object)
- **cues** (array[object])



[Powered by Bump.sh](https://bump.sh)
