字幕樣式

April 1, 2026

字幕樣式

使用 AI 剪輯時刻搜尋 API 並開啟字幕功能時,可透過 cc_style_tpl 參數指定字幕樣式範本。以下列出所有可用樣式,包含較新的焦點效果樣式,如 smart-bg-focusbox-highlightword-focusunderline-focus

使用方式

提交任務時,將樣式 ID 作為 cc_style_tpl 的值傳入:

curl -X POST https://wayinvideo-api.wayin.ai/api/v2/clips \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "x-wayinvideo-api-version: v2" \
  -d '{
    "video_url": "https://www.youtube.com/watch?v=example",
    "enable_caption": true,
    "cc_style_tpl": "STYLE_ID"
  }'

可用樣式

Style IDPreview
smart-bg-focussmart-bg-focus
box-highlightbox-highlight
word-focusword-focus
underline-focusunderline-focus
temp-0temp-0
temp-1temp-1
temp-2temp-2
temp-3temp-3
temp-4temp-4
temp-5temp-5
temp-6temp-6
temp-7temp-7
temp-8temp-8
temp-9temp-9
temp-10temp-10
temp-11temp-11
temp-12temp-12
temp-13temp-13
temp-14temp-14
temp-15temp-15
temp-16temp-16
temp-17temp-17
temp-static-1temp-static-1
temp-static-2temp-static-2
temp-static-3temp-static-3
temp-static-4temp-static-4
temp-static-5temp-static-5
temp-static-6temp-static-6
game-streamer-1game-streamer-1
game-streamer-2game-streamer-2
game-streamer-3game-streamer-3
game-streamer-4game-streamer-4
game-streamer-5game-streamer-5
game-streamer-6game-streamer-6
game-streamer-7game-streamer-7

注意: 上方的預覽圖為近似效果,實際結果可能因影片內容與解析度略有差異。若未指定 cc_style_tpl,將套用預設字幕樣式。