# WanAPIs setup guides (Markdown)

A version for AI agents and tools: each guide stays in sync with its web page, and images use absolute URLs you can download directly. Each guide's URL is its web page URL plus .md.

Web docs: https://wanapi.ai/docs
中文版:https://wanapis.com/docs/index.md

## All guides

- [MAGI-2 video generation API](https://wanapi.ai/docs/magi-2.md) — Submit 1080p MAGI-2 video jobs through WanAPIs with first and last frames or multimodal references, then poll and download the MP4.
- [Muse Video generation API](https://wanapi.ai/docs/muse-video.md) — Generate a 720p video with audio from a prompt and up to nine reference images, then check the task status and download the MP4.
- [MiniMax H3 video API](https://wanapi.ai/docs/minimax-h3.md) — Text and image video generation, first/last frames, video and audio references, file uploads, 2K regeneration, prompt optimization and reservation-based billing with complete API examples.
- [Connect Claude Code to WanAPIs](https://wanapi.ai/docs/claude-code.md) — Point Claude Code at WanAPIs by setting ANTHROPIC_BASE_URL and an API key. Use Claude, GPT, Gemini, DeepSeek and more from one key, pay per token, with smart routing and automatic failover built in.
- [Connect Codex CLI to WanAPIs](https://wanapi.ai/docs/codex.md) — Point OpenAI Codex CLI's base_url at WanAPIs to use GPT-5.5 and other models. OpenAI-compatible, pay per token, with SSE keep-alive for long reasoning runs.
- [Connect Cursor to WanAPIs](https://wanapi.ai/docs/cursor.md) — Override Cursor's OpenAI Base URL with WanAPIs to call GPT, Claude, Gemini and more with one key. OpenAI-compatible and pay-as-you-go.
- [Switch to WanAPIs with ccswitch / cc-switch](https://wanapi.ai/docs/ccswitch.md) — ccswitch (cc-switch) manages provider profiles for Claude Code and Codex. Add a WanAPIs profile and switch between the official API and WanAPIs in one click, paying per token.
- [Configure WanAPIs for Claude Code / Codex with Magpie](https://wanapi.ai/docs/magpie.md) — Import WanAPIs into Magpie, configure OpenAI, Responses and Anthropic endpoints, then select a model for Claude Code or Codex. Includes manual setup, a free configuration check and troubleshooting.
- [Connect Cline to WanAPIs](https://wanapi.ai/docs/cline.md) — In Cline for VS Code, choose OpenAI Compatible and point the Base URL at WanAPIs to call GPT, Claude, Gemini and more with one key, paying per token.
- [Connect Roo Code to WanAPIs](https://wanapi.ai/docs/roo-code.md) — In Roo Code (formerly Roo Cline), choose OpenAI Compatible and point the Base URL at WanAPIs to call GPT, Claude, Gemini and more with one key, paying per token.
- [Connect Continue to WanAPIs](https://wanapi.ai/docs/continue.md) — In Continue's config, use the openai provider with apiBase pointing at WanAPIs to call many models from VS Code or JetBrains with one key, paying per token.
- [Connect Aider to WanAPIs](https://wanapi.ai/docs/aider.md) — Point Aider's OPENAI_API_BASE at WanAPIs and call many models as openai/<model>. Pay per token — a good fit for AI pair programming in the terminal.
- [Connect Cherry Studio to WanAPIs](https://wanapi.ai/docs/cherry-studio.md) — Add an OpenAI-compatible provider in Cherry Studio with its API host set to WanAPIs to call GPT, Claude, Gemini and more with one key, paying per token.
- [Connect DeepSeek Harness to WanAPIs](https://wanapi.ai/docs/deepseek-harness.md) — The complete DeepSeek Harness (dsh) setup for WanAPIs: add a custom model API, enable reasoning effort (Off / Low / High / Max), and route web search through WanAPIs to fix the no API key for "DEEPSEEK_API_KEY" error. Every step was tested on Harness 0.2.0-rc.2, with screenshots.
- [Switch Claude Code to Other WanAPIs Models](https://wanapi.ai/docs/claude-code-switch-model.md) — Once Claude Code is connected to WanAPIs, switch it to DeepSeek, GPT, Gemini and other models. Covers the CLI, the VS Code extension and the desktop app, plus the background small model and common pitfalls.
- [Switch Codex to Other WanAPIs Models](https://wanapi.ai/docs/codex-switch-model.md) — Once Codex is connected to WanAPIs, switch it to DeepSeek, GPT and other models. All three clients share ~/.codex/config.toml. Covers profiles for quick switching, the new profile file format and common errors.
- [Connect WorkBuddy to WanAPIs](https://wanapi.ai/docs/workbuddy.md) — WorkBuddy supports any OpenAI-compatible custom model. Point it at WanAPIs and switch between GPT, Claude, Gemini, DeepSeek, GLM and Qwen with one key — pay per token, no subscription. Covers UI setup, models.json configuration and a full troubleshooting checklist.
- [Connect Chatbox to WanAPIs](https://wanapi.ai/docs/chatbox.md) — In Chatbox, choose OpenAI API mode and point the API Host at WanAPIs to call GPT, Claude, Gemini and more with one key, paying per token.
- [Connect SillyTavern to WanAPIs](https://wanapi.ai/docs/sillytavern.md) — In SillyTavern, choose Chat Completion → Custom (OpenAI-compatible) and set the base URL to https://api.wanapis.com/v1. Use Claude, DeepSeek and Gemini for story-driven roleplay with one key. Every step was tested on SillyTavern 1.19.0.
- [Use WanAPIs as a Proxy in JanitorAI](https://wanapi.ai/docs/janitorai.md) — In JanitorAI's API Settings, set the proxy URL to https://api.wanapis.com/v1/chat/completions, add a model name and your WanAPIs key, and chat with Claude, DeepSeek, Gemini and more. WanAPIs allows browser cross-origin requests.
- [See your WanAPIs balance in Claude Code and CC Switch](https://wanapi.ai/docs/balance.md) — Keep your WanAPIs balance in view without opening the console: an open-source Claude Code status bar plugin shows it automatically, and CC Switch needs one pasted script. All you need is the sk- key you already use. You can also call the OpenAI-compatible balance endpoint directly.
- [Doubao Seedream 5.5 & 5.0 API Setup Guide](https://wanapi.ai/docs/seedream.md) — Call ByteDance Doubao Seedream 5.5 (text-to-image, transparent PNG, layer decomposition), Seedream 5.0 Pro/Lite, 4.5 and 4.0 via WanAPIs async image tasks. Transparent ¥1 = $1 quota billing with cURL examples.
- [Doubao Seedance 2.5 & 2.0 Video API Guide](https://wanapi.ai/docs/seedance.md) — Call ByteDance Doubao Seedance 2.5 Flash (4–30s, image/video/audio references), Seedance 2.5, 2.0, 2.0 Fast and 2.0 Mini via WanAPIs async video tasks. Includes /v1/media upload, tiered pricing and settlement rules.
