---
title: "Batch Generate Scripts"
method: POST
path: "/api/v1/scripts/batch-generate"
tags: ["scripts"]
---

# Batch Generate Scripts

`POST /api/v1/scripts/batch-generate`

## Request

- Base URL: `https://api.slidemaster.tw` (the document declares no server; this is the origin it was published from)
- URL: `https://api.slidemaster.tw/api/v1/scripts/batch-generate`
- Auth: none declared

批量生成講稿（並行生成）

## Request body

- ScriptBatchGenerateRequest
  - `project_id` string, required
  - `prompt_style` string, nullable
  - `regenerate` boolean, nullable
  - `language` string, nullable
  - `slide_ids` string[], nullable
  - `speaker_context` string, nullable
  - `source_transcript` string, nullable
  - `pacing_meta` PacingMeta: 配速表結構化欄位（由 agent-dev 的 pacing_plan IR 傳來）。 讓講稿生成知道：講給誰聽、為何而講、本頁/整場字數預算。
    - `audience` string, nullable
    - `purpose` string, nullable
    - `target_words` integer, nullable
    - `total_word_budget` integer, nullable
    - `per_slide_targets` object, nullable

## Response `202`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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