1. Get an API key
Go to your Developers dashboard:- Click Create API Key, give it a name, and copy it (starts with
nj_sk_, shown once)
2. Make a request
3. See the response
model: "auto" routed a quick factual question to gemini-3-flash (fastest, cheapest for short queries). Add "include_routing": true to see the routing decision.
Switch models
Same endpoint, just changemodel:
Try the power features
These are unique to NinjaChat — no other API offers them.Try every endpoint type
Next steps
| I want to… | Go here |
|---|---|
| Auto-select the best model per task | Smart Routing → |
| Compare models side-by-side | Model Compare → |
| Run 20 prompts at once | Batch → |
| Build a multi-turn chatbot | Sessions → |
| Know cost before running | Estimate → |
| See all available models | Models → |
| Understand pricing | Pricing → |
| Handle errors properly | Error Handling → |