---
title: "Generate Srt"
method: POST
path: "/api/subtitles-pro/generate-srt"
tags: ["Subtitles Pro"]
---

# Generate Srt

`POST /api/subtitles-pro/generate-srt`

Returns the SRT content as text. The client writes it to disk locally
and then imports it via JSX — the global API is remote and never touches
the user's filesystem.

## Request body

- GenerateSrtRequest
  - `transcription` string, required
  - `nb_lines` integer
  - `punctuation_solo` boolean

## Response `200`

Successful Response

- GenerateSrtResponse
  - `srt_content` string, required
  - `filename` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/premierecopilot/apis/premierecopilot-api.md) · [All operations](https://skmtc.dev/premierecopilot/apis/premierecopilot-api/llms.txt) · [OpenAPI document](https://skmtc.dev/premierecopilot/apis/premierecopilot-api/revisions/289449f8352e?raw)
