Overview
The AKOOL CLI is agent-first by design, wrapping the full Open API so developers and AI agents can perform face swaps, generate talking photos, translate videos, and more — straight from the terminal. Built for:- Coding agents — Claude Code, Codex, and others
- CI/CD pipelines — batch media processing, automated workflows
- Bulk operations — translate 100 videos in one shell loop
- Custom integrations — wrap it in your own tool
Install
~/.local/bin.
You only need AKOOL API credentials — see Authenticate below.
Updates
Authenticate
Choose one of the two options below. The first is agent- and CI-friendly; the second is for humans. 1. Environment variables — agents, CI; ephemeral, no file on disk:~/.akool/config.json:
Global Options
| Flag | Description |
|---|---|
-e, --env <env> | Environment: prod, test, dev (default: prod) |
--json | Output raw JSON instead of formatted tables |
--json works on any command:
Quick Start
1. Face swap an image:--wait to block until the job completes. Use --json for raw JSON output.
Commands
Pattern:akool-cli <command> [subcommand] [options].
| Command | What it does |
|---|---|
login | Configure API credentials interactively |
credit | Get account credit balance |
faceswap | Face swap operations |
characterswap | Character swap operations |
image | Image generation operations |
voice | Voice and TTS operations |
upgrade | Upgrade CLI to the latest version |
--help.
Command Reference
login
Configure API credentials interactively. Credentials are stored at~/.akool/config.json.
credit
Check your account credit balance.faceswap
Image face swap (Pro V4)
Face Swap Plus V4 (multi-face, image + video)
realistic, beautify, lossless
Video face swap
Query & manage results
Live / real-time face swap
character-swap
Create an animated video from a character image and source video.image
Text-to-image
Image-to-image
Query result
Upscale or generate variations
image2video
Create a video from a static image.voice
List voices
Text-to-speech
Query result
upgrade
Tips
-
JSON output: Add
--jsonanywhere for raw JSON, great for scripting: -
Switch environments: Use
-e testto hit the test API: -
Custom API host:
-
Custom CDN for upgrades:
-
Async tasks: Most generation commands return immediately with a job ID. Use
--webhookfor server callbacks, or poll with theresultsubcommand.