Connect Claude Code to AI Chili via Streamable HTTP MCP, CLI & SKILL.md
Attach AI Chili's remote Streamable HTTP MCP server (https://aichili.ai/mcp) to Claude Code in one command, install the CLI via npm (npm install -g aichili / npx -y aichili) or Homebrew (brew install AI-Chili/tap/aichili), and drop SKILL.md into .claude/skills/ so Claude inspects live models, verifies $0 pre-flight credit quotes, and renders multi-shot 2K storyboards safely.
https://aichili.ai/api/v1 · Streamable HTTP MCP https://aichili.ai/mcp · OpenAPI 3.1 /openapi.json.Architecture & Endpoint Overview
| Claude Code Layer | Command / File Path | Auth Needed | Role in Storyboard Pipeline |
|---|---|---|---|
| Streamable HTTP MCP | claude mcp add --transport http aichili https://aichili.ai/mcp | None for discovery; chili_sk_* for plan/render | Exposes 7 typed MCP tools directly inside Claude Code turns |
| Agent Skill Rules | .claude/skills/aichili-video/SKILL.md | None (static Markdown) | Teaches <Picture 1..6> syntax and enforces plan-before-spend |
| npm / Homebrew CLI | npm install -g aichili · brew install AI-Chili/tap/aichili | AICHILI_API_KEY env var | Lets bash subagents batch-submit and --wait poll JSON jobs |
| OnlyChili Catalog MCP | claude mcp add --transport http onlychili https://onlychili.aichili.ai/mcp | None (public 60 req/min) | Searches 55+ live AI drama series across 47 languages |
4-Step Implementation Blueprint
01 · Register Remote HTTP MCP
Run claude mcp add --transport http aichili https://aichili.ai/mcp so Claude Code gains list_video_models, estimate_video_cost, plan_video_generation, create_video_generation, and get_video_generation.
02 · Install Official CLI & SKILL.md
Install npm install -g aichili (or brew install AI-Chili/tap/aichili / npx -y aichili) for shell-level JSON scripting and curl https://aichili.ai/SKILL.md into .claude/skills/aichili-video/SKILL.md.
03 · Quote Multi-Shot Budget at $0
Ask Claude to call estimate_video_cost and plan_video_generation across every shot in your storyboard and pause for human approval on total_credits.
04 · Render Idempotently & Assemble
Claude submits approved shots with deterministic idempotency_key values, polls until succeeded, and stitches MP4 segments locally via ffmpeg.
1. One-Minute Terminal Setup (HTTP MCP + npm / Homebrew CLI + SKILL.md)
Run inside your project repository so Claude Code discovers both MCP tools and prompt conventions automatically:
# 1. Register AI Chili Streamable HTTP MCP server (zero local daemon required)
claude mcp add --transport http aichili https://aichili.ai/mcp
# 2. Install the zero-dependency AI Chili CLI via npm or Homebrew (or run npx -y aichili)
npm install -g aichili
# macOS / Linux Homebrew alternative: brew install AI-Chili/tap/aichili
# 3. Vendor the official AI Chili skill into your repo for plan-before-spend guardrails
mkdir -p .claude/skills/aichili-video
curl -fsSL -H "User-Agent: curl/8.4.0" https://aichili.ai/SKILL.md \
-o .claude/skills/aichili-video/SKILL.md
# 4. Verify live MCP & registry connectivity without spending a single credit
aichili models --json | head -n 25
2. Multi-Shot Storyboard Shell Loop Used by Claude Code Bash Tool
Quotes exact credits first via aichili plan, enforces a hard per-shot credit ceiling, then renders with an idempotency key:
#!/usr/bin/env bash
set -euo pipefail
export AICHILI_API_KEY="chili_sk_replace_with_your_key"
PROMPT="<Picture 1> stands under cedar eaves in dusk rain facing <Picture 2>, 35mm anamorphic dolly-in, stereo rain"
QUOTE_JSON=$(aichili plan \
--model h3-vdn --mode i2v --duration 15 --resolution 768p --ratio 16:9 \
--ref-asset "00000000-0000-0000-0000-000000000001" \
--ref-asset "00000000-0000-0000-0000-000000000002" \
--ref-role "reference_image" \
--ref-role "reference_image" \
--prompt "$PROMPT" --json)
CREDITS=$(printf '%s' "$QUOTE_JSON" | jq -r '.total_credits')
echo "Quoted total_credits=$CREDITS"
test "$CREDITS" -le 20
aichili generate \
--model h3-vdn --mode i2v --duration 15 --resolution 768p --ratio 16:9 \
--ref-asset "00000000-0000-0000-0000-000000000001" \
--ref-asset "00000000-0000-0000-0000-000000000002" \
--ref-role "reference_image" \
--ref-role "reference_image" \
--idempotency-key "ep01-shot03-v1" \
--prompt "$PROMPT" --wait --json
Recommended AI Chili Engines for Claude Code
H3-VDN
Deterministic per-second rate: 0.6 cr/s (480p), 1.0 cr/s (768p), 1.8 cr/s (1080p), 2.5 cr/s (2K), rounded up to whole credits (also accepts alias h3-sol).
Model Spec → wan3.0-videoWan 3.0
Live pre-calculated vendor quote via POST /v1/generations/plan before any credit is deducted (e.g. 5s 480P ≈ 8 credits; 30s unlocked on any paid PAYG pack).
Model Spec → avatar-talkAvatar-Talk
Script-driven billing: 0.2 credits per 5 script units on 'talk' (video loop), plus a +10 credit 768p base-clip charge on 'photo' (portrait still).
Model Spec →Frequently Asked Questions
Can Claude Code inspect AI Chili models and pricing before I create an API key?
Yes. Over https://aichili.ai/mcp, platform_overview, list_video_models, and estimate_video_cost work with zero authentication.
How do I stop Claude Code from rendering expensive 2K takes during early prompt drafting?
Keep SKILL.md in .claude/skills/ and instruct Claude to draft camera blocking on h3-vdn at 480p (0.6 cr/s = 9 credits per 15s) and always confirm plan_video_generation output before calling create_video_generation.
Where should I store AICHILI_API_KEY when using Claude Code?
Export AICHILI_API_KEY in your shell keychain or secret manager rather than committing chili_sk_* tokens to git or CLAUDE.md.
Explore Other Stack Integrations
Cursor IDE
Add https://aichili.ai/mcp (or npx -y @aichili/mcp) to .cursor/mcp.json so Cursor Agent generates promo reels, UI…
View Integration → Hosted MCP & OpenAPI 3.1 Tool CallingOpenAI Agents
Point OpenAI's Responses API Hosted MCP tool directly at https://aichili.ai/mcp with require_approval: 'always' on…
View Integration → Visual Workflow Orchestrationn8n Workflows
Build reliable, budget-guarded n8n video workflows using four standard HTTP Request nodes: inspect GET…
View Integration → Backend Python 3.10+ IntegrationPython (SDK, urllib & httpx)
Install the official zero-dependency Python SDK, CLI & stdio MCP server via pip install…
View Integration → Next.js, Workers & Edge Runtime GuideTypeScript & Node 22
Run AI Chili across Node.js 22, Next.js Route Handlers, Cloudflare Workers, and Vercel Edge using standard Web Fetch…
View Integration →