影片 API

一套影片 API
做完你要發布的一切

字幕、算圖、AI 影片、圖片、旁白與排程發布,全都在同一組 REST API 和同一把金鑰之下。你自己的代理也能用 MCP 操作同一個平台。

REST + MCP限定範圍金鑰簽章 webhook

從一個網址到帶字幕的 mp4

四次呼叫,端點名稱全是真的,沒有虛擬程式碼。

export AUTOSTUD_API_KEY="sk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
export MEDIA_URL="https://cdn.example.com/interview.mp4"

# 1. A project to hang the timeline on.
VIDEO_ID=$(curl -s -X POST https://autostud.ai/api/v1/actions/videos.create \
  -H "Authorization: Bearer $AUTOSTUD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"video_name":"Interview clip","video_type_id":"timeline","video_format":"portrait","video_lang":"en"}' \
  | jq -r .data.video_id)

# 2. Transcribe and style the subtitles.
curl -X POST https://autostud.ai/api/v1/actions/subtitles.generate \
  -H "Authorization: Bearer $AUTOSTUD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"video_id":"'"$VIDEO_ID"'","media_url":"'"$MEDIA_URL"'","style_preset":"beast","words_per_group":3,"enable_emphasis":true}'

# 3. Render it.
curl -X POST https://autostud.ai/api/v1/actions/renders.create \
  -H "Authorization: Bearer $AUTOSTUD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"video_id":"'"$VIDEO_ID"'","video_type_id":"timeline","video_format":"portrait"}'

# 4. Stop polling: register the webhook once.
curl -X POST https://autostud.ai/api/v1/webhooks \
  -H "Authorization: Bearer $AUTOSTUD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://your-app.com/hooks/autostud","events":["render.completed","render.failed"]}'
算圖以點數計費,每個回應都會告訴你花了多少。OpenAPI 規格錯誤代碼

在你動手寫客戶端之前

試用需要付費方案嗎?

不用。金鑰在後台建立,sk_test_ 金鑰會跑完整個請求,並在任何寫入、扣點與 webhook 之前停下來。live 呼叫才會扣點數。

完成的檔案怎麼拿?

註冊一次 webhook,之後每次算圖與生成都會自己回報,附簽章並會重試。如果你的架構更適合輪詢,輪詢也可以。

有速率限制嗎?

有,以金鑰為單位,而且不必猜:GET /api/v1 會回傳這把金鑰的上限與目前用量。

AI 代理可以不寫程式就使用嗎?

可以。MCP 頁面會建立金鑰並回傳連線網址,貼進 Claude、Cursor 或 ChatGPT,同一套 API 就變成工具。

準備好開始了嗎?

幾分鐘就能產出爆紅影片。免費試用不需要信用卡。

安全付款
立即使用
隨時取消