model to auto and NinjaChat picks the best model for each task — or use model: "gpt-5" to pick explicitly.
Core endpoints
| Endpoint | What it does | Guide |
|---|---|---|
POST /api/v1/chat | Text generation with smart routing, fallback chains, sessions | Chat → |
POST /api/v1/compare | Run one prompt against N models, ranked by quality/speed/cost | Compare → |
POST /api/v1/batch | Up to 20 prompts in parallel — one API call | Batch → |
GET /api/v1/models | Live model catalog with metadata | Models → |
POST /api/v1/estimate | Pre-flight cost estimation — free, no credits deducted | Estimate → |
POST /api/v1/sessions | Create persistent conversation sessions | Sessions → |
POST /api/v1/images | Image generation with 13 models | Images → |
POST /api/v1/video | Video generation with 8 models | Video → |
POST /api/v1/search | Web search + AI answers | Search → |
Get started in minutes
Get an API key
Go to your Developers dashboard and create a key. First 50 requests are free — no credit card required.
Make your first request
Copy the curl above, replace
nj_sk_YOUR_API_KEY, and run it in your terminal. Full quickstart →Explore power features
Try smart routing to auto-select models, compare to benchmark models, or batch to run multiple prompts in one call.
What makes NinjaChat different
Every other API gives you one model at a time, stateless, with no intelligence about which model to use. NinjaChat adds a layer on top:How billing works
Every response includescost and balance: