跳至主要內容

用 Codex 做 AI 影片

把 Codex 連上 Yoh,直接從終端機或編輯器製作影片故事:劇本、選角、片段、配音、字幕到最後輸出,每個付費步驟都會先顯示價格,經你核准才進行。

最簡單:讓 AI 幫你設定把一段提示詞複製到 Claude Code、Codex 或 Cursor。它會安裝 Yoh 並帶你完成登入,macOS、Linux、Windows 都適用。

連接 Codex

  1. 加入伺服器並登入

    適用 Codex CLI、IDE 擴充功能和 ChatGPT 桌面版。在開啟的瀏覽器中登入 Yoh。

    codex mcp add yoh --url https://www.yoh.app/api/mcp
    codex mcp login yoh
  2. 給較長的步驟足夠時間

    有些 Yoh 步驟需要幾分鐘。把工具逾時設為 300 秒,然後重新啟動 Codex。

    ~/.codex/config.toml
    [mcp_servers.yoh]
    url = "https://www.yoh.app/api/mcp"
    tool_timeout_sec = 300
    startup_timeout_sec = 20
  3. 加入 Yoh 技能(建議)

    這個技能(SKILL.md 加上參考檔和一個輔助腳本,整個資料夾一起安裝)教代理怎麼把 Yoh 故事做好:從系列開始、花費前先報價、先看過片段再下判斷。內容會隨伺服器持續更新。在 Codex 中用 $yoh 呼叫它。

    (
      set -eu
      skill_dir="$HOME/.agents/skills/yoh"
      if [ -e "$skill_dir" ]; then
        printf '%s\n' 'Yoh skill already exists. Use the setup prompt to check or update it.' >&2
        exit 1
      fi
      mkdir -p "$skill_dir/references" "$skill_dir/scripts"
      curl --fail --show-error --location 'https://www.yoh.app/skills/yoh/SKILL.md' --output "$skill_dir/SKILL.md"
      curl --fail --show-error --location 'https://www.yoh.app/skills/yoh/references/browser-workflow.md' --output "$skill_dir/references/browser-workflow.md"
      curl --fail --show-error --location 'https://www.yoh.app/skills/yoh/references/checking-clips.md' --output "$skill_dir/references/checking-clips.md"
      curl --fail --show-error --location 'https://www.yoh.app/skills/yoh/references/common-jobs.md' --output "$skill_dir/references/common-jobs.md"
      curl --fail --show-error --location 'https://www.yoh.app/skills/yoh/references/editing-clips.md' --output "$skill_dir/references/editing-clips.md"
      curl --fail --show-error --location 'https://www.yoh.app/skills/yoh/references/errors-and-refusals.md' --output "$skill_dir/references/errors-and-refusals.md"
      curl --fail --show-error --location 'https://www.yoh.app/skills/yoh/references/generation-and-pricing.md' --output "$skill_dir/references/generation-and-pricing.md"
      curl --fail --show-error --location 'https://www.yoh.app/skills/yoh/references/gotchas.md' --output "$skill_dir/references/gotchas.md"
      curl --fail --show-error --location 'https://www.yoh.app/skills/yoh/references/hires-ads-publishing.md' --output "$skill_dir/references/hires-ads-publishing.md"
      curl --fail --show-error --location 'https://www.yoh.app/skills/yoh/references/lines-and-voices.md' --output "$skill_dir/references/lines-and-voices.md"
      curl --fail --show-error --location 'https://www.yoh.app/skills/yoh/references/looks-and-assets.md' --output "$skill_dir/references/looks-and-assets.md"
      curl --fail --show-error --location 'https://www.yoh.app/skills/yoh/references/mcp-tool-index.md' --output "$skill_dir/references/mcp-tool-index.md"
      curl --fail --show-error --location 'https://www.yoh.app/skills/yoh/references/recipes.md' --output "$skill_dir/references/recipes.md"
      curl --fail --show-error --location 'https://www.yoh.app/skills/yoh/references/setup-and-clients.md' --output "$skill_dir/references/setup-and-clients.md"
      curl --fail --show-error --location 'https://www.yoh.app/skills/yoh/references/stories-and-scripts.md' --output "$skill_dir/references/stories-and-scripts.md"
      curl --fail --show-error --location 'https://www.yoh.app/skills/yoh/references/timeline-analysis.md' --output "$skill_dir/references/timeline-analysis.md"
      curl --fail --show-error --location 'https://www.yoh.app/skills/yoh/references/timeline-and-edit-mode.md' --output "$skill_dir/references/timeline-and-edit-mode.md"
      curl --fail --show-error --location 'https://www.yoh.app/skills/yoh/references/upload-and-cut.md' --output "$skill_dir/references/upload-and-cut.md"
      curl --fail --show-error --location 'https://www.yoh.app/skills/yoh/references/writing-clips.md' --output "$skill_dir/references/writing-clips.md"
      curl --fail --show-error --location 'https://www.yoh.app/skills/yoh/scripts/download_timeline_analysis.py' --output "$skill_dir/scripts/download_timeline_analysis.py"
    )
  4. 確認連線

    請代理執行 get_credits,它應該會回覆你的 Yoh 點數餘額。在 Claude Code 或 Codex 中執行 /mcp 可查看伺服器狀態。

接著直接開口

  • “做一支 60 秒的故事:一位聽得見鬼魂聲音的夜班護理師。”
  • “把這份劇本改成五集的系列,畫任何東西之前先給我看角色陣容。”
  • “精修第 3 集:剪掉空檔,把字幕對到節拍上,然後幫我報價輸出。”
  • “把片段 4 的主角換成我的角色,只重做那個片段的影片。”

為什麼好用

沒有你的同意,不會扣任何點數

瀏覽和編輯都免費。每個會花點數的步驟(畫圖、生成片段影片、輸出)都會先回傳價格。代理會先給你看,你核准後才繼續,同一次核准也不會被重複扣款。

指令紀錄裡不會留下金鑰

codex mcp login 會用 Yoh 登入。CI 環境則改用放在環境變數中的 API 金鑰(bearer_token_env_var = "YOH_API_KEY")。

同一個故事,和 App 同樣的規則

代理處理的就是你在 yoh.app 上看到的故事、片段和時間軸,規則和編輯器完全相同。從終端機做的修改,會落在和瀏覽器拖曳完全相同的位置,開著的頁面幾秒內就會更新。

在瀏覽器裡看結果

在 ChatGPT 桌面版中,Codex 可以用內建瀏覽器打開它改過的 yoh.app 頁面,直接在畫面上確認結果。

常見問題

Codex 可以做影片嗎?

可以,只要連上 Yoh MCP 伺服器。Codex 會呼叫 Yoh 的工具寫故事、生成每個片段,並在你的 Yoh 帳號中輸出最終影片。

支援哪些 Codex 用戶端?

Codex CLI、Codex IDE 擴充功能,以及 ChatGPT 桌面版中的 Codex。它們共用 ~/.codex/config.toml。

可以在 CI 中無介面執行嗎?

可以。到 Settings → API keys 建立 API 金鑰,匯出為 YOH_API_KEY,並在 [mcp_servers.yoh] 下設定 bearer_token_env_var = "YOH_API_KEY"。付費步驟仍需要報價中明確的核准憑證。

ChatGPT 也能用嗎?

可以。在 ChatGPT 中加入名為 Yoh 的自訂 MCP 伺服器,使用相同網址並登入。部分方案需要管理員允許自訂伺服器。

完整說明: Yoh 文件 · 價格

其他連接方式