
AI image creation
Text-to-image, reference edits, aspect ratios and quick styles. Billed per generation.
- Text → Image
- Reference / edit
- API key wallet
Resources
ThAPI Studio for local AI image/video creation, plus API CLI to connect apps to the API.
Desktop app
All-in-one desktop app: paste your ThAPI key, pay from wallet balance, export media locally.

Text-to-image, reference edits, aspect ratios and quick styles. Billed per generation.

Image-to-video with Seedance, speed presets, aspect ratios, and 720p/1080p output.
Install
One-liner and npm download links. thapi-router is a legacy alias that forwards to API CLI.
curl -fsSL https://thapi.cloud/install/api-cli.sh | bashirm https://thapi.cloud/install/api-cli.ps1 | iexOfficial CLI for Claude Code, Codex, OpenClaw, Cline… Requires Node.js ≥ 18.
npm install -g api-cli@latest
Legacy installer (StaliRouter / 9Router). Still works — redirects to API CLI.
Prefer API CLI. Router links below keep old commands working.
# macOS / Linux curl -fsSL https://thapi.cloud/install/stalirouter.sh | bash # Windows PowerShell irm https://thapi.cloud/install/stalirouter.ps1 | iex
Install and configure the CLI to connect Claude Code, Cursor, OpenClaw, and other apps.
Also known as: wizard · api-cli doctor · api-cli
API CLI: install the configuration tool and check app connections.
Published instructions · App version: unverified
Chat, ping, invoke and content-generation examples may send real billable requests. Check the model, balance, rate and minimum before running them. GET /v1/models checks authentication and the catalogue only. Set up environment variables safely
OpenAI SDKs generally use a URL ending in /v1; Anthropic SDKs use the root URL. Avoid adding /v1 twice. Protocol compatibility does not guarantee every provider feature.
See notes / depends on the protocolThis app has exceptions — read Notes below before pasting.
Recommended model: claude-fable-5
# Recommended — same on Win / macOS/Linux
npm install -g API CLI@latest
# Open the wizard — paste the API key when prompted
api-cli
# Or configure a specific app
api-cli configure claude -m claude-fable-5
api-cli configure codex -m gpt-5.6-sol
api-cli configure openclaw
api-cli configure clineFile created by API CLI (chmod 0600). Contains the saved API key and base URL. Do not commit this file to Git.
Same as macOS. Check: ls -la ~/.thapi/config.json
PowerShell: notepad $env:USERPROFILE\.thapi\config.json Edit only if you understand the settings — prefer api-cli auth login / api-cli -k '…'.
| Symptom | Reason | How to handle |
|---|---|---|
| npm install -g reports EACCES / permission errors | No permission to write to the global npm prefix. | Use nvm/fnm or configure a user-level npm prefix; avoid sudo unless you understand the risks. |
| doctor reports that the tool is not configured | The app is not installed, or its old configuration has not been patched. | `api-cli configure <tool> -k '…'` or `api-cli doctor --fix`. |