XNews

BaoCut optimization: switching from JSON to plain text cuts API calls by 64% and time by 42%

BaoCut optimization: switching from JSON to plain text cuts API calls by 64% and time by 42%

The author found that AI agents like Fable 5 and Codex, when asked to optimize BaoCut's transcription speed, only suggested incremental improvements within the existing framework (e.g., more workers, preheating) with limited effect. Manual packet analysis revealed the bottleneck was the long JSON output format, which increased generation and validation time. Switching to plain text or simple HTML saved tokens but complicated parsing, requiring diff comparisons and re-mapping to original subtitles. After the change, API calls dropped from 33 to 12, and processing time from 31 to 18 minutes. A 7-hour interview video took only 42 minutes for full polishing. Using DeepSeek v4 Flash, translating and proofreading one hour of video into bilingual subtitles costs approximately ¥0.4. BaoCut offers a Mac app and Windows CLI/skill.

Source posts