Fablun H3 Pro — Sign in with Google or GitHub for $1.00 free video credits · No card requiredClaim $1 free

← All API Docs

npm: fablun · CLI + Skill + MCP

Fablun CLI, Agent Skill & Lightweight MCP Server

Zero-dependency Node.js 18+ CLI (npm: fablun), Agent Skill (npx skills add Crimson-Pass/fablun-cli), and 6-tool MCP server sharing one browser OAuth login and your prepaid USD wallet across 20 video and image models.

1. Install CLI or Agent Skill

# Option A: One-step onboarding (browser OAuth + Agent Skill)
npx -y fablun init

# Option B: Install Agent Skill directly for Claude Code / Cursor / Codex / Antigravity
npx skills add Crimson-Pass/fablun-cli

# Option C: Install CLI globally
npm i -g fablun
fablun login
fablun balance

2. Video Swap & Multi-Model Generation Examples

# 1. H3 Pro Object Video Swap ($0.025/s · uses $1.00 free starter credit)
fablun swap --mode object \
  --video ./source-clip.mp4 \
  --ref ./new-product.png \
  --target "earbuds case" \
  --prompt "Replace the earbuds case with <Picture 1>, keeping exact camera motion and lighting" \
  --resolution 480p --duration 5 --ratio 16:9 -o swapped.mp4

# 2. Check live USD quote before submitting
fablun quote magi-2 --resolution 1080P --duration 5 --ratio 16:9

# 3. Generate with MAGI-2, Seedance 2.5, Seedream 5.5, or FLUX 3
fablun generate magi-2 --prompt "Rain-slicked Tokyo alley at dusk" --resolution 1080P --duration 5 -o tokyo.mp4
fablun generate flux-3 --prompt "Ceramic espresso cup on warm oak desk" --ratio 1:1 -o cup.png

3. Lightweight MCP Server (6 Tools, ~1.3K Tokens)

  • fablun_list_models — List live models, modes, specs & USD rates
  • fablun_quote — Get exact real-time USD estimate & check balance
  • fablun_swap_video — H3 Pro object_swap / character_swap / preserve_scene with local MP4 & images
  • fablun_generate — Unified video & image generation across all live models
  • fablun_get_task — Poll status & download completed MP4/image outputs
  • fablun_cancel_task — Cancel queued/running jobs with 100% automatic refund
# Claude Code:
fablun login
claude mcp add fablun -- npx -y fablun mcp

# Cursor / Claude Desktop / Codex (mcp.json):
{
  "mcpServers": {
    "fablun": {
      "command": "npx",
      "args": ["-y", "fablun", "mcp"]
    }
  }
}

Frequently asked questions

Can I use npx fablun for free without a credit card?

Yes. Run npx -y fablun init or fablun login and sign in with Google or GitHub to claim $1.00 in free H3 Pro credits (~8 five-second 480p swaps or generations).

Where are CLI credentials stored?

Credentials are stored locally in ~/.config/fablun/config.json (0600 permissions) and shared automatically by both fablun CLI and fablun mcp. You can also pass FABLUN_API_KEY.

How do I unlock MAGI-2, Seedance 2.5, Veo 3.1, or Seedream 5.5 in CLI/MCP?

Make a one-time $5+ USD top-up at /topup (no subscription, never expires). Your existing CLI key and MCP config unlock all 20 models immediately.

Does the CLI handle local video/image uploads automatically?

Yes. Passing local MP4 (<= 50 MiB) or PNG/JPG/WebP (<= 12 MiB) files uploads them automatically via /api/v3/uploads with SHA256 caching for 2-hour signed URLs.