Skip to main content
Pass budget_cents and NinjaChat picks the highest-quality model at or under that price — it overrides model entirely.
POST /api/v1/chat
Response

Parameters

Within the cheapest qualifying tier, several free-tier models can tie on cost (0.3¢/req) and on number of capabilities. When that happens, the router breaks the tie deterministically by taking the first equally-ranked model in its internal catalog order — not necessarily the “best” one by any qualitative measure. gemini-3-flash, gemini-2.5-flash, deepseek-v3, and qwq-32b are all 4-capability free-tier models, for example; gemini-3-flash wins ties against the others purely because it’s listed first.

Where it shines

Per-request cost control without maintaining a model list. A tiered product can literally map plan → budget:
As new models launch, every tier silently upgrades to the best model its budget buys.