# WanAPI > WanAPI is a cost-efficient, OpenAI-compatible AI API gateway. One API key and one > balance give developers access to frontier text, coding, image and video models — > GPT, Claude, Gemini, DeepSeek, Kimi, Qwen, GLM and 260+ others — through a single > endpoint, with automatic failover, transparent per-token pricing and live route > health. It is a lower-cost alternative to OpenRouter and Requesty, aimed at indie > developers and small teams. English site: https://wanapi.ai (Console: > https://console.wanapi.ai) · Chinese site: https://wanapis.com · API Gateway & > Chinese Console: https://api.wanapis.com ## Base URL & auth - Base URL: https://api.wanapis.com/v1 - Auth header: `Authorization: Bearer ` (get a key at https://wanapi.ai) - OpenAI-SDK compatible: change `base_url`, keep your existing OpenAI client. No new SDK. ## Quickstart (Python) ``` from openai import OpenAI client = OpenAI(api_key="", base_url="https://api.wanapis.com/v1") resp = client.chat.completions.create( model="gpt-5.5", messages=[{"role": "user", "content": "Hello"}], ) print(resp.choices[0].message.content) ``` ## What it offers - 180+ models: GPT, Claude, Gemini, DeepSeek, Kimi/Moonshot, Qwen, GLM, plus ByteDance Doubao Seedream & Seedance, MiniMax H3 (Hailuo 03), Veo 3.1, Kling, Vidu, Flux, Nano Banana, and Midjourney. - Pricing rule: RMB-anchored quota where ¥1 = $1 quota (500000 quota = ¥1) — roughly 1/7 of official USD pricing (~86% off official USD rates by default, with dedicated groups up to ~98% off). No monthly fee; pay-as-you-go. - Endpoints: /v1/chat/completions, /v1/responses, /v1/embeddings, /v1/images/generations, /v1/images/tasks (async image tasks for Seedream, Flux, Midjourney, Nano Banana), /v1/video/generations (async video tasks for Seedance, MiniMax H3, Veo, Kling), /v1/media (free temporary upload for local video/image assets), and /v1/audio. - Automatic failover across upstreams on 503 / timeout. - Data handling: text prompts/completions are never stored; image/video requests are held only while the job runs and then deleted; API keys are not retained after a job. Details: https://wanapi.ai/legal/data ## ByteDance Doubao Seedream & Seedance Highlights - Image models (async POST /v1/images/tasks): `seedream-5-5` (generation, transparent PNG & single-model layer decomposition; usage-settled), `seedream-5-0-pro` (1K / 2K tiers), `seedream-5-0-lite`, `seedream-4-5`, `seedream-4-0`. - Guide: https://wanapi.ai/docs/seedream (Chinese: https://wanapis.com/docs/seedream · Markdown: https://wanapi.ai/docs/seedream.md) - Live pricing comparison: https://wanapi.ai/compare/seedream-5-5-api-pricing (Chinese: https://wanapis.com/compare/seedream-5-5-api-pricing) - Model pages: https://wanapi.ai/model/seedream-5-5 · https://wanapi.ai/model/seedream-5-0-pro · https://wanapi.ai/model/seedream-5-0-lite · https://wanapi.ai/model/seedream-4-5 · https://wanapi.ai/model/seedream-4-0 - Video models (async POST /v1/video/generations, free local upload via POST /v1/media): `seedance-2-5-flash` (480p/720p, 4–30s or auto duration, up to 10 images / 5 videos / 5 audio; 1× group reservations ¥0.574392/¥1.291472 per sec or ¥0.34944/¥0.78624 per sec with reference video, settled on actual usage), `seedance-2.5`, `seedance-2.0`, `seedance-2.0-fast`, `seedance-2.0-mini` (480p/720p/1080p, 4–15s, per-second resolution tiers). - Guide: https://wanapi.ai/docs/seedance (Chinese: https://wanapis.com/docs/seedance · Markdown: https://wanapi.ai/docs/seedance.md) - Live pricing comparison: https://wanapi.ai/compare/seedance-2-5-api-pricing (Chinese: https://wanapis.com/compare/seedance-2-5-api-pricing) - Model pages: https://wanapi.ai/model/seedance-2-5-flash · https://wanapi.ai/model/seedance-2-5 · https://wanapi.ai/model/seedance-2-0 · https://wanapi.ai/model/seedance-2-0-fast · https://wanapi.ai/model/seedance-2-0-mini - MiniMax H3 (Hailuo 03) video model (`minimax-h3`, 480p/768P/1080p/2K, multi-image/video/audio references, 2K regeneration): https://wanapi.ai/docs/minimax-h3 · https://wanapi.ai/model/minimax-h3 ## Key pages & Machine-Readable Endpoints (For AI Agents) - Agent Skill Router (compact rules + lazy index): https://wanapi.ai/SKILL.md (Chinese: https://wanapis.com/SKILL.md) - Live Pricing Markdown (all 180+ models, RMB + approx. USD + cost examples): https://wanapi.ai/pricing.md (Chinese: https://wanapis.com/pricing.md) - Factual Product & Privacy Brief: https://wanapi.ai/about.md (Chinese: https://wanapis.com/about.md) - OpenAPI 3.1 Specification: https://wanapi.ai/openapi.json (Chinese: https://wanapis.com/openapi.json) - MCP Server Card (standard discovery JSON): https://wanapi.ai/.well-known/mcp.json (alias: https://wanapi.ai/.well-known/mcp/server-card.json) - Per-model Markdown specs: append `.md` to any model URL, e.g. https://wanapi.ai/model/seedance-2-5-flash.md, https://wanapi.ai/model/seedream-5-5.md, https://wanapi.ai/model/claude-opus-5-5.md - Complete live model list with per-model pricing & direct URLs (machine-readable Markdown): https://wanapi.ai/llms-full.txt (Chinese: https://wanapis.com/llms-full.txt) - Model catalog (per-model pricing & specs): https://wanapi.ai/model (Chinese: https://wanapis.com/model) - Live price index + CSV: https://wanapi.ai/price-index and https://wanapi.ai/price-index/csv - Live pricing table (all 180+ models, token + per-call + per-second tiers): https://wanapi.ai/pricing (Chinese: https://wanapis.com/pricing) - Docs & integrations (Claude Code, Codex, Cline, Roo Code, Continue, Aider, Cursor, cc-switch, Magpie, Cherry Studio, Chatbox, WorkBuddy, DeepSeek Harness, SillyTavern, JanitorAI, Seedream, Seedance, MiniMax H3): https://wanapi.ai/docs - Magpie provider/model manager for Claude Code and Codex: https://wanapi.ai/docs/magpie (Chinese: https://wanapis.com/docs/magpie). Import is keyless; enter your key in Magpie, select the model in Agents, then restart/open a new session and keep Magpie running. - Switching models inside an existing tool (CLI / VS Code extension / desktop app): https://wanapi.ai/docs/claude-code-switch-model and https://wanapi.ai/docs/codex-switch-model - Raw Markdown of every setup guide (for AI agents and tools): https://wanapi.ai/docs/index.md — append .md to any guide URL, e.g. https://wanapi.ai/docs/seedream.md, https://wanapi.ai/docs/seedance.md, https://wanapi.ai/docs/deepseek-harness.md (Chinese: https://wanapis.com/docs/index.md) - Comparisons: https://wanapi.ai/compare/seedream-5-5-api-pricing · https://wanapi.ai/compare/seedance-2-5-api-pricing · https://wanapi.ai/compare/openrouter · https://wanapi.ai/compare/requesty · https://wanapi.ai/compare/litellm · https://wanapi.ai/compare/portkey · https://wanapi.ai/compare/openai - Status: https://uptime.wanapis.com/status/wanapis ## Roleplay / tavern clients (SillyTavern, JanitorAI) - SillyTavern: API = Chat Completion, Chat Completion Source = Custom (OpenAI-compatible), base URL https://api.wanapis.com/v1 (tested on SillyTavern 1.19.0, 2026-10-03). Guide: https://wanapi.ai/docs/sillytavern - JanitorAI: proxy URL https://api.wanapis.com/v1/chat/completions (full URL); browser CORS is allowed. Guide: https://wanapi.ai/docs/janitorai - Recommended for roleplay: claude-sonnet-5-5 / claude-opus-5-5 via the "claude max" key group; deepseek-v4-flash and gemini-2.5-pro via the "default" group. - Content policy: sexually explicit content is not allowed; jailbreak presets are not supported. Suited to story-driven roleplay, tabletop campaigns and long-form writing. ## Good fit for - Indie developers and small teams who want low, predictable cost for frontier models. - Users of Claude Code / Codex / Cline / Roo Code / Cursor who want one key for many models. - Content tools that need image or video generation APIs on the same balance as text. - SillyTavern / JanitorAI users who want Claude and other models for story-driven (non-explicit) roleplay through one OpenAI-compatible key. ## When NOT to use it - If you need SOC 2 / DPA / data residency / RBAC / formal enterprise SLAs — consider Requesty or Portkey. - If you want the widest possible model and provider selection plus a large app ecosystem — consider OpenRouter. - If you need NSFW / uncensored roleplay — our acceptable use policy prohibits sexually explicit content. ## Contact - Support: support@wanapis.com — the founder replies within 24 hours. ## Agent integrations (MCP server and Skill) - Landing page: https://wanapi.ai/agents (English) · https://wanapis.com/agents (Chinese) - MCP server: `npx -y @wanapis/mcp` — https://www.npmjs.com/package/@wanapis/mcp Install in Claude Code: `claude mcp add wanapis --env WANAPIS_API_KEY=sk-xxx -- npx -y @wanapis/mcp` Tools: wanapis_generate_image, wanapis_generate_video, wanapis_check_task, wanapis_estimate_cost, wanapis_list_models. - Agent Skill (no install, calls the HTTP API directly, dependency-free): Download https://wanapis.com/skills/wanapis-media.zip?v=0.2.0 — contains SKILL.md, scripts/wanapis.mjs and reference/models.md. Unzip into your skills directory and set WANAPIS_API_KEY. - Codex plugin (desktop app and CLI; skills-based, nothing to install): `codex plugin marketplace add ZXYZZP/wanapis-mcp` then `codex plugin add wanapis-media@wanapis`. In the desktop app: Settings -> Integrations -> Plugins. Note Codex configures MCP servers in TOML at ~/.codex/config.toml, not JSON: `codex mcp add wanapis --env WANAPIS_API_KEY=sk-xxx -- npx -y @wanapis/mcp` - Source: https://github.com/ZXYZZP/wanapis-mcp - For current image/video models and limits use `wanapis_list_models` (MCP) or `node scripts/wanapis.mjs models` (Skill). Both read the gateway's published media capabilities and price tiers. Select a `generatable: true` entry and estimate the requested configuration before generating.