Integration overview
Agent tools natively handle only text generation protocols. Image generation, video generation, speech synthesis, speech recognition, real-time voice, and decision models require Slash Commands, Skills, or Agents to call their interfaces.
Why integration is needed
Agent tools such as Claude Code, Codex, OpenCode, and Qwen Code natively handle only text generation protocols (OpenAI-compatible or Anthropic-compatible). Image generation, video generation, speech synthesis, speech recognition, real-time voice, and decision models in Token Plan are outside these protocols. Use Slash Commands, Skills, or Agents to call their interfaces.
Interface overview
| Capability | Interface |
|---|---|
Decision model |
|
Image generation |
|
Video generation (submit) |
|
Video generation (query) |
|
Speech synthesis |
|
Speech recognition |
|
Real-time voice |
|
Quick start
Choose the document for the capability you want to integrate. Configuration steps are in each document.
Synchronous, structured response
Synchronous
Asynchronous task
Synchronous
Synchronous
WebSocket
Prerequisites
- A Token Plan subscription. For the Personal Edition, get the
sk-sp-API key from My Subscription (Personal). For the Team Edition, assign a seat in Member Management, then get the API key. - Your tool supports one of the extension mechanisms in the preceding table.
Tool configuration paths
The following table uses image generation as an example. For other capabilities, replace text-to-image with the command name for that capability, and replace token-plan-image with the corresponding Skill name.
| Tool | Extension mechanism | Configuration file path |
|---|---|---|
| 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 |
Billing and security
- Billing differs by capability. Actual Credits consumption is shown in Usage in the console.
- Use the API key only in tool configuration or environment variables. Do not write it to command files, code repositories, or logs.
- Generated URLs expire. Download the results promptly.