エージェントツールは、テキスト生成プロトコルのみをネイティブで処理します。画像生成、動画生成、音声合成、音声認識、リアルタイム音声のそれぞれのインターフェースを呼び出すには、Slash Commands、Skills、またはAgentsが必要です。
統合が必要な理由
Claude Code、Codex、OpenCode、Qwen Code などのエージェントツールは、ネイティブにはテキスト生成プロトコル(OpenAI 互換または Anthropic 互換)のみを処理します。Token Plan の画像生成、動画生成、音声合成、音声認識、リアルタイム音声は、これらのプロトコルの対象外です。それらのインターフェースを呼び出すには、Slash Commands、Skills、または Agents を使用します。
インターフェース概要
| 機能 | インターフェース |
|---|---|
| 画像生成 | 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 |
クイックスタート
統合する機能のドキュメントを選択してください。設定手順は各ドキュメントに記載されています。
Integrate the image generation model
同期
Integrate the video generation model
非同期タスク
Integrate the speech synthesis model
同期
Integrate the speech recognition model
同期
Integrate the real-time voice conversation model
WebSocket
前提条件
- Token Planのサブスクリプション。Personal Editionの場合は、My Subscription (Personal)から
sk-sp-APIキーを取得します。Team Editionの場合は、Member Managementでシートを割り当ててから、APIキーを取得します。 - お使いのツールが、前述の表にあるいずれかの拡張メカニズムをサポートしていること。
ツール設定パス
以下の表では、例として画像生成を使用しています。その他の機能の場合は、text-to-image をその機能のコマンド名に、token-plan-image を対応する Skill 名に置き換えてください。
| ツール | 拡張メカニズム | 設定ファイルパス |
|---|---|---|
| Claude Code | Slash Command | .claude/commands/text-to-image.md |
| Codex | Skill | ~/.codex/skills/token-plan-image/SKILL.md |
| Qwen Code | Skill | ~/.qwen/skills/text-to-image/SKILL.md |
| OpenCode | Agent | .opencode/agents/text-to-image.md |
| OpenClaw | Skill | ~/.openclaw/workspace/skills/token-plan-image/SKILL.md |
| Hermes Agent | Skill | ~/.hermes/skills/media/text-to-image/SKILL.md |
| Qoder | Skill | ~/.qoder/skills/text-to-image/SKILL.md |
課金とセキュリティ
- 課金は機能によって異なります。実際の Credits 消費量は、コンソールの Usage に表示されます。
- API キーはツール設定または環境変数でのみ使用してください。コマンドファイル、コードリポジトリ、ログには書き込まないでください。
- 生成された URL には有効期限があります。結果は速やかにダウンロードしてください。