generate.subtitles
Operation: generate.subtitles
Category: media
Tags: subtitles, text, video
Generate TikTok-style ASS subtitles from narration text
Runtime
Section titled “Runtime”Type: Native (built-in)
Timeout: 300s
Retries: 3 (ExponentialWithJitter)
Inputs
Section titled “Inputs”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
narration_text | String | Yes | — | Full narration text |
audio_duration_secs | Number | No | 25.0 | Audio duration in seconds |
words | JSON | No | — | Array of {start, end, word} word-level timestamps from audio.transcribe |
Outputs
Section titled “Outputs”| Name | Type | Description |
|---|---|---|
url | Asset | ASS subtitle file URL |
path | String | Local file path |
word_count | Number | Number of words |
Default Configuration
Section titled “Default Configuration”{ "font_name": "Arial Black", "font_size": 90, "max_words": 2, "resolution_x": 1080, "resolution_y": 1920}import { WorkflowBuilder } from "@fabric-platform/sdk";
const workflow = new WorkflowBuilder("my-workflow") .node("generate-subtitles", "tool", (n) => n.config({ operation: "generate.subtitles", // ... node-specific config }) ) .build();from fabric_platform import FabricClient
fabric = FabricClient(api_key="fab_xxx")
wf_id = fabric.upsert_workflow("my-workflow", nodes=[ { "key": "generate-subtitles", "kind": "tool", },])use fabric_sdk::FabricClient;
let client = FabricClient::new("http://localhost:3001", api_key)?;
let wf_id = client.upsert_workflow("my-workflow", serde_json::json!({ "nodes": [{ "key": "generate-subtitles", "kind": "tool" }]})).await?;curl -X POST http://localhost:3001/v1/workflow-definitions \ -H "Authorization: Bearer $FABRIC_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "my-workflow", "nodes": [{ "key": "generate-subtitles", "kind": "tool" }] }'