
AI image creation
Text-to-image, reference edits, aspect ratios and quick styles. Billed per generation.
- Text → Image
- Reference / edit
- API key wallet
Resources
API Stack 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 API Stack key, pay from wallet balance, export media locally.

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

Image→video with Veo, Omni Flash and Grok Imagine Video.
Install
One-liner and npm download links. API Stack-router is a legacy alias that forwards to API CLI.
curl -fsSL https://apistack.vn/install/api-cli.sh | bashirm https://apistack.vn/install/api-cli.ps1 | iexOfficial CLI for Claude Code, Codex, OpenClaw, Cline… Requires Node.js ≥ 18.
npm install -g api-cli@latest
Legacy installer (API Stack Router / 9Router). Still works — redirects to API CLI.
Prefer API CLI. Router links below keep old commands working.
# macOS / Linux curl -fsSL https://apistack.vn/install/stalirouter.sh | bash # Windows PowerShell irm https://apistack.vn/install/stalirouter.ps1 | iex
Install and configure the CLI to connect Claude Code, Cursor, OpenClaw, and other apps.
Also known as: wizard · API Stack doctor · api-cli
API CLI: hướng dẫn cài trình cấu hình và kiểm tra kết nối ứng dụng.
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
# Khuyến nghị — Win / macOS/Linux giống nhau
npm install -g API CLI@latest
# Mở wizard — dán API key khi được hỏi
API Stack
# Hoặc cấu hình một app cụ thể
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 do API CLI tạo (chmod 0600). Chứa API key đã lưu và base URL. Không commit file này lên Git.
Giống macOS. Kiểm tra: ls -la ~/.API Stack/config.json
PowerShell: notepad $env:USERPROFILE\.API Stack\config.json Chỉ sửa khi biết rõ — ưu tiên API Stack auth login / API Stack -k '…'.
| Symptom | Reason | How to handle |
|---|---|---|
| npm install -g báo EACCES / permission | Không có quyền ghi global npm prefix. | Dùng nvm/fnm, hoặc cấu hình npm prefix user; tránh sudo trừ khi hiểu rủi ro. |
| doctor báo tool chưa cấu hình | App chưa cài hoặc config cũ chưa được patch. | `api-cli configure <tool> -k '…'` hoặc `API Stack doctor --fix`. |
Xem hướng dẫn cấu hình chi tiết cho hơn 15+ phần mềm lập trình và trợ lý AI phổ biến.