Skip to main content
Glama

fablun

Official zero-dependency CLI, Agent Skill (SKILL.md), and lightweight MCP server for Fablun — one API key & shared USD balance for H3 Pro Object & Character Video Swap ($0.025/s) plus 19 live frontier video & image models (MAGI-2, Seedance 2.5, Kling 4.0, Veo 3.1, FLUX 3, GPT Image 2, Nano Banana).

Try free: Run npx -y fablun init (or fablun login) with Google or GitHub to claim $1.00 free H3 Pro credit (~8 free 5s swaps, no card required). Top up pay-as-you-go from $5 at fablun.com/topup to unlock all 19 models — no monthly subscription, 100% auto-refund on failed or cancelled jobs.


1. Install as an Agent Skill (Claude Code · Cursor · Codex · Antigravity)

Give your AI coding agent native video swapping & generation without bloating its context window:

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

# Option B: Install the Agent Skill directly (agent triggers browser login on first use)
npx skills add Crimson-Pass/fablun-cli

Once installed, just tell Claude Code / Cursor / Codex:

"Swap the earbuds case in ./demo.mp4 with ./new-case.png using H3 Pro at 480p and save to ./swapped.mp4."


Related MCP server: popnow-api

2. Use the CLI Directly

Zero runtime dependencies · Node.js 18+ · instant cold start.

# Run without installing
npx fablun --help

# Or install globally
npm i -g fablun

One-Step Browser Login & Balance Check (Works for Both CLI & MCP)

# Opens browser for Google/GitHub sign-in & mints a dedicated revocable CLI key
fablun login

# Headless / SSH environments
fablun login --no-browser

# Check active auth & live USD / H3 Pro free credit balance
fablun whoami --live
fablun balance

# Or use an existing API key directly in CI/CD
export FABLUN_API_KEY="sk-fablun-..."
fablun login --key "sk-fablun-..."

Credentials are stored locally at ~/.config/fablun/config.json (0600 permissions) and automatically shared by both fablun CLI and fablun mcp.

Flagship: H3 Pro Object & Character Video Swap ($0.025/s · ~$0.125 / 5s)

Pass local MP4 videos (≤ 50 MiB) and local PNG/JPEG/WebP images (≤ 12 MiB) directly — the CLI uploads them automatically via POST /api/v3/uploads and caches the 2-hour signed URL by SHA256 so iterating on prompts never re-uploads the same clip:

# Object / product swap — locks camera motion, lighting, and background
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

# Character swap — prompt is optional
fablun swap --mode character \
  --video ./source-clip.mp4 \
  --ref ./character.png \
  --resolution 480p --duration 5 --ratio 16:9 \
  -o character-swapped.mp4

# Upload any local media standalone to get a 2-hour HTTPS URL
fablun upload ./source-clip.mp4

Generate Video or Image Across 19 Live Models

Local image files passed to --image / --last-image are automatically encoded and sent inline:

# List all live models & starting USD rates
fablun models

# Check real-time USD estimate before spending
fablun quote magi-2 --resolution 1080P --duration 5 --ratio 16:9

# MAGI-2 (Sand AI 480B · 1080p native audio · $0.08/s)
fablun generate magi-2 \
  --prompt "Rain-slicked Tokyo alley at dusk, slow dolly forward, neon reflections" \
  --resolution 1080P --duration 5 --ratio 16:9 \
  -o tokyo.mp4

# H3 Pro image-to-video from a local PNG
fablun generate h3-pro \
  --image ./product-frame.png \
  --prompt "Smooth macro orbit, studio rim lighting" \
  --resolution 480p --duration 5 \
  -o product.mp4

# Image generation (FLUX 3, GPT Image 2, Nano Banana 2.1/Pro, Seedream 5.5, H3 Image)
fablun generate flux-3 \
  --prompt "Ceramic espresso cup on warm oak desk, morning sunlight" \
  --ratio 1:1 \
  -o cup.png

Async Workflows & Scripting (--json)

Every command supports --json for agents and CI pipelines:

fablun generate seedance-2.5 --prompt "..." --no-wait --json
fablun status gen_0123456789abcdef --wait -o out.mp4 --json
fablun list --limit 10 --json
fablun cancel gen_0123456789abcdef --json

3. Run as a Lightweight MCP Server (6 Focused Tools)

No heavy dependencies, ~1.3K tokens of tool definitions, and automatically reuses your fablun login credentials:

  • fablun_list_models — Live models, modes, specs & USD rates

  • fablun_quote — Real-time USD estimate & balance check

  • fablun_swap_video — H3 Pro object_swap / character_swap / preserve_scene / standard (supports local MP4 & image paths directly)

  • fablun_generate — Unified video & image generation across all 19 live models

  • fablun_get_task — Poll & optionally download completed media for any cgt-* / gen_* / img_* task

  • fablun_cancel_task — Cancel queued/running task for 100% auto-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"]
    }
  }
}

(Optionally add "env": { "FABLUN_API_KEY": "sk-fablun-..." } if not using fablun login.)


Supported Models

Category

Models

Fablun Native

h3-pro (T2V, I2V, Object Swap, Character Swap, Reference-to-Video · $0.025/s), h3-image

Video (Unified API)

magi-2, seedance-2.5, seedance-2.5-flash, seedance-2.0, seedance-2.0-fast, kling-4.0, kling-3-pro, veo-3.1, veo-3.1-fast, veo-3.1-lite, gemini-omni-1.2-flash

Image (Unified API)

flux-3, gpt-image-2, nano-banana-2.1, nano-banana-pro, kling-image-4.0, seedream-5.5

Full API documentation: fablun.com/docs

License

MIT © Crimson Pass Technologies, Inc.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers