# NinjaChat API

> All-in-one OpenAI-compatible AI API: every major lab (OpenAI, Anthropic, Google, Black Forest Labs, and more), chat + image + video, one prepaid key, automatic failover, no lock-in.

NinjaChat is a unified inference API at https://www.ninjachat.ai/api/v1. Authentication is `Authorization: Bearer nj_sk_...`. Always call the **www** host — the apex redirects and most HTTP clients drop the Authorization header on that redirect.

There is no lab lock-in: switch models by changing the `model` string. If a provider degrades, ranked providers fail over automatically. Image and video generation use the same key as chat.

## Product

- [One API for all of AI](https://www.ninjachat.ai/ai-api): Chat, image, video, search — one key, OpenAI SDK compatible
- [Model catalog](https://www.ninjachat.ai/api-models): 173 chat + 53 image + 43 video models, live specs and playground
- [Provider network](https://www.ninjachat.ai/api-models/providers): Uptime, latency, data-training policy per provider
- [Live benchmarks](https://www.ninjachat.ai/benchmarks): Provider speed and reliability leaderboards
- [API status](https://www.ninjachat.ai/status): Measured health per model, updated every minute
- [Switch to NinjaChat](https://www.ninjachat.ai/migrate): Guides if you already call another provider
- [Inference bill](https://www.ninjachat.ai/inference-bill): For teams spending $5k+/month
- [Webhooks](https://www.ninjachat.ai/developers/webhooks): Signed POST when a video job finishes or a spend limit is crossed — skip polling
- [Documentation](https://docs.ninjachat.ai): Full reference
- [OpenAPI 3.1](https://www.ninjachat.ai/openapi.json): Machine-readable spec; also GET /api/v1/openapi
- [Live catalog JSON](https://www.ninjachat.ai/api/v1/models): Public, no auth — models include prices
- [AGENTS.md](https://www.ninjachat.ai/AGENTS.md): Skill file for Cursor, Codex, Copilot, Claude Code. MCP + REST. Keys at /developers
- [Preset skills](https://www.ninjachat.ai/presets/@{slug}.md): Fetch the file, then wire that @slug on /chat/completions

## Model pages

One developer page per model at /api-models/{id} (live price, providers, latency, playground, one model-specific request) and one consumer page per model at /models/{slug} (chat free to start, real outputs). Advanced implementation guides live in the documentation rather than being repeated across model landing pages. Recently added:

- [Claude Opus 5](https://www.ninjachat.ai/api-models/claude-opus-5): Anthropic frontier model; consumer page /models/claude-opus-5
- [GPT-5.6 Sol / Terra / Luna](https://www.ninjachat.ai/api-models/gpt-5.6-sol): OpenAI's three GPT-5.6 sizes; also /api-models/gpt-5.6-terra and /api-models/gpt-5.6-luna
- [GPT-5.5](https://www.ninjachat.ai/api-models/gpt-5.5): OpenAI generalist; consumer page /models/gpt-5-5
- [Kimi K3](https://www.ninjachat.ai/api-models/kimi-k3): Moonshot open-weights model; consumer page /models/kimi-k3
- [Gemini 3.7 Flash](https://www.ninjachat.ai/api-models/gemini-3.7-flash): Google fast tier; consumer page /models/gemini-3-7-flash
- [GLM-5.2](https://www.ninjachat.ai/api-models/glm-5.2): Z.ai open-weights agent model; consumer page /models/glm-5-2
- [gpt-oss-120b](https://www.ninjachat.ai/api-models/gpt-oss-120b): OpenAI open-weights (Apache 2.0); consumer page /models/gpt-oss-120b
- [Seedance 2.0](https://www.ninjachat.ai/api-models/seedance-2): ByteDance video with references and audio; consumer page /seedance
- [Veo 3.1](https://www.ninjachat.ai/google-veo-api): Google video API with native audio; consumer page /veo-3-1
- [Nano Banana Pro](https://www.ninjachat.ai/api-models/nano-banana-pro): Google image model; consumer page /models/nano-banana-pro

## Optional longer file

- [Full API facts for agents](https://www.ninjachat.ai/llms-full.txt)

## MCP

- [Hosted MCP server](https://www.ninjachat.ai/mcp): Chat, image, video, and search tools for agents
- [MCP for Cursor](https://www.ninjachat.ai/mcp/cursor)
- [MCP for Claude](https://www.ninjachat.ai/mcp/claude)
- [MCP endpoint](https://www.ninjachat.ai/api/mcp)

## Compare / switch

- [OpenAI API alternative](https://www.ninjachat.ai/openai-api-alternative)
- [Replicate alternative](https://www.ninjachat.ai/replicate-alternative)
- [Migrate from OpenAI](https://www.ninjachat.ai/openai-api-alternative#migration): Keep GPT. Claude, Gemini, image, and video join the same key.
- [Migrate from Anthropic](https://www.ninjachat.ai/migrate/anthropic): Keep Claude. GPT, Gemini, image, and video without a second SDK.
- [Migrate from OpenRouter](https://www.ninjachat.ai/migrate/openrouter): Same SDK. Chat, image, and video on one prepaid balance.
- [Migrate from Replicate](https://www.ninjachat.ai/migrate/replicate): Keep FLUX, Veo, and Kling. Chat from every lab on the same key.
- [Migrate from fal.ai](https://www.ninjachat.ai/migrate/fal): Keep FLUX and Kling. Chat from OpenAI, Anthropic, and Gemini joins.
- [Migrate from Together AI](https://www.ninjachat.ai/migrate/together): Keep DeepSeek and Qwen. Add GPT, Claude, Gemini, and video.
- [Migrate from Fireworks AI](https://www.ninjachat.ai/migrate/fireworks): Keep the open models. Add every closed lab on the same call.
