Submit an async screenplay extraction task for short drama videos
This endpoint submits an asynchronous screenplay extraction task. It analyzes video episodes and generates structured storyboard data including transcripts, scene breakdowns, and character namelists.Documentation Index
Fetch the complete documentation index at: https://api-tools.memories.ai/llms.txt
Use this file to discover all available pages before exploring further.
| Field | Type | Required | Description |
|---|---|---|---|
| mode | string | Yes | Extraction mode: "short_drama" (short drama), "korean_drama" (Korean drama, coming soon), "prompt_script" (prompt-driven, coming soon) |
| episodes | object | Yes | Map of episode number (string) to asset_id. Example: {"1": "re_abc001", "2": "re_abc002"} |
| config | object | Yes | Configuration options for the extraction task |
| config.language | string | No | Language code for extraction (e.g., "zh-CN", "en") |
| config.use_face_recognition | boolean | No | Enable face recognition for character identification |
| config.use_subtitle | boolean | No | Use subtitle extraction instead of ASR |
| config.require_json | boolean | No | Return JSON format results (transcript + storyboard JSON URIs). Default: true |
| config.require_xlsx | boolean | No | Return per-episode XLSX storyboard files. Default: false |
| config.require_merge_xlsx | boolean | No | Return a merged XLSX file combining all episodes. Default: false |
| config.concurrency | integer | No | Processing concurrency limit. Default: 100 |
require_json, require_xlsx, or require_merge_xlsx.| Parameter | Type | Description |
|---|---|---|
| code | integer | Response code indicating the result status |
| msg | string | Response message describing the operation result |
| data.task_id | string | Unique identifier of the screenplay task (from third-party service) |
| data.status | string | Initial task status: "pending" |
| data.mode | string | The extraction mode used |
| data.created_at | string | ISO 8601 timestamp of task creation |
| data.total_duration_seconds | number | Total video duration across all episodes in seconds |
| success | boolean | Indicates whether the submission was successful |
| failed | boolean | Indicates whether the submission failed |
| Parameter | Type | Description |
|---|---|---|
| code | integer | Response code (200 indicates success) |
| message | string | Status message |
| data.task_id | string | The screenplay task ID |
| data.status | string | Final task status: "completed" or "failed" |
| data.error_code | string | Error code (only present when failed) |
| data.error_message | string | Detailed error message (only present when failed) |
| task_id | string | Your original request ID |
task_id returned is from the third-party processing service, use it for status queries, downloads, and cancellationAPI key for authentication
Extraction mode
short_drama, korean_drama, prompt_script "short_drama"
Map of episode number to asset_id
{
"1": "re_657739295220518912",
"2": "re_657739295220518913",
"3": "re_657739295220518914"
}Configuration options for the extraction task
Task submitted successfully