Agentic Developer Guide

How to Connect Claude Code, Cursor & Autonomous Agents to AI Video Generation

Modern coding and marketing agents need deterministic discovery (llms.txt, Accept: text/markdown, /.well-known/ai-catalog.json), zero-cost dry-run cost estimation (POST /v1/generations/plan), and native tool protocols (https://aichili.ai/mcp Streamable HTTP MCP + github.com/AI-Chili/aichili stdio CLI). Here is the complete integration blueprint.

Last updated: By AI Chili Platform & Agent Infrastructure Team Entity: AI Chili Inc. (Vancouver, BC)
Key Finding (November 22, 2026): Modern coding and marketing agents need deterministic discovery (llms.txt, Accept: text/markdown, /.well-known/ai-catalog.json), zero-cost dry-run cost estimation (POST /v1/generations/plan), and native tool protocols (https://aichili.ai/mcp Streamable HTTP MCP + github.com/AI-Chili/aichili stdio CLI). Here is the complete integration blueprint.

1. Four Agent Integration Surfaces

Integration SurfaceEndpoint / CommandAuth Required?Best Fit
Remote Streamable HTTP MCPhttps://aichili.ai/mcpOptional (chili_sk_* only for wallet/plan/submit)Claude Code, Cursor, Windsurf, hosted chat agents
Local Stdio MCP & CLInpx -y github:AI-Chili/aichiliAICHILI_API_KEY env var for live jobsShell scripts, CI/CD, local agent sandboxes
OpenAPI 3.1 REST Gatewayhttps://aichili.ai/openapi.jsonAuthorization: Bearer chili_sk_*OpenAI/Gemini function calling, Python/TS backends
OnlyChili Catalog MCPhttps://onlychili.aichili.ai/mcpNone (public 60 req/min)Searching 55+ AI drama series across 47 languages

2. Mandatory Plan-Before-Spend & Body Idempotency Guardrails

Giving an LLM agent direct write access to GPU rendering without a cost gate risks runaway loops. AI Chili separates validation and quoting (POST /v1/generations/plan) from execution (POST /v1/generations).

Instruct your agent (or load https://aichili.ai/SKILL.md, which encodes this rule automatically) to call plan_video_generation first, display exact total_credits and resolution to the user, and invoke create_video_generation only after confirmation — always passing idempotency_key in the JSON body (or Idempotency-Key header on /api/v1/*) so network retries never double-submit.

3. Native Markdown Content Negotiation (Accept: text/markdown)

Fetching raw marketing HTML wastes context tokens on CSS and SVG markup. Every canonical page on https://aichili.ai honors RFC 9110 content negotiation on GET and HEAD: send Accept: text/markdown to /, /developers, /models/h3-vdn, /vs/runway, or any guide to receive clean, structured Markdown with Vary: Accept.

Frequently Asked Questions

What is AI Chili's Official MCP Registry identifier?

io.github.AI-Chili/aichili for the AI Chili Video Generation Studio & API (https://aichili.ai/mcp), alongside io.github.AI-Chili/onlychili for OnlyChili Cinema (https://onlychili.aichili.ai/mcp).

Why should custom HTTP clients set a User-Agent header?

Cloudflare edge security blocks bare default Python urllib User-Agent strings (error 1010); set User-Agent: curl/8.4.0 or call via @aichili/mcp.

Do failed API or MCP jobs consume credits?

No — invalid requests fail pre-charge (400/422), and any job that fails during GPU or upstream execution automatically refunds 100% of credits.

Related Benchmarks & Engineering Guides