全部產品
Search
文件中心

Alibaba Cloud Model Studio:整合概覽

更新時間:Nov 04, 2026

Agent 工具原生僅處理文字產生協定。圖像產生、影片產生、語音合成、語音辨識、即時語音對話需要透過 Slash Command、Skill 或 Agent 呼叫原生介面。

為什麼需要擴充

Claude Code、Codex、OpenCode、Qwen Code 等 Agent 工具原生只處理文字生成通訊協定(OpenAI 相容或 Anthropic 相容)。Token Plan 中的影像生成、影片生成、語音合成、語音辨識、即時語音對話不在這套通訊協定內,需要工具透過 Slash Command、Skill 或 Agent 呼叫各自的介面。

介面總覽

功能介面

圖像生成

https://token-plan.ap-southeast-1.maas.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation

影片生成(提交)

https://token-plan.ap-southeast-1.maas.aliyuncs.com/api/v1/services/aigc/video-generation/video-synthesis

影片生成(查詢)

https://token-plan.ap-southeast-1.maas.aliyuncs.com/api/v1/tasks/{task_id}

語音合成

https://token-plan.ap-southeast-1.maas.aliyuncs.com/api/v1/services/audio/tts/SpeechSynthesizer

語音辨識

https://token-plan.ap-southeast-1.maas.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation

即時語音對話

wss://token-plan.ap-southeast-1.maas.aliyuncs.com/api-ws/v1/realtime?model=qwen-audio-3.0-realtime-plus

快速接入

請根據要接入的能力選擇對應文件,具體設定步驟請參閱各文件。

先決條件

  • 已訂閱 Token Plan。個人版在 我的訂閱(個人版) 取得以 sk-sp- 開頭的 API Key;團隊版在 成員管理 分配席位後取得 API Key。
  • 使用的工具支援上表中的擴充方式。

工具設定路徑

下表以圖像生成為例。接入其他能力時,請將 text-to-image 替換為對應能力的命令名稱,並將 token-plan-image 替換為對應的 Skill 名稱。

工具擴充機制設定檔案路徑
Claude CodeSlash Command.claude/commands/text-to-image.md
CodexSkill~/.codex/skills/token-plan-image/SKILL.md
Qwen CodeSkill~/.qwen/skills/text-to-image/SKILL.md
OpenCodeAgent.opencode/agents/text-to-image.md
OpenClawSkill~/.openclaw/workspace/skills/token-plan-image/SKILL.md
Hermes AgentSkill~/.hermes/skills/media/text-to-image/SKILL.md
QoderSkill~/.qoder/skills/text-to-image/SKILL.md

計費與安全

  • 各能力的計費方式不同,實際 Credits 消耗以主控台用量統計為準。
  • API Key 僅在工具設定或環境變數中使用,請勿寫入命令檔案、程式碼儲存庫或日誌。
  • 生成結果的 URL 具有時效性,使用後請及時下載。