Skip to main content

Request

Response

Add "include_routing": true to see which model was chosen and why.

The four variants

How task detection works

NinjaChat analyzes your last 3 user messages to detect the task type:

Full routing table

Billing

Auto variants are billed at the resolved model’s rate. If auto routes to o3-mini, you pay 0.006.Ifitroutestoclaudesonnet4.6,youpay0.006. If it routes to `claude-sonnet-4.6`, you pay 0.015. The routing field always shows the cost-incurring model.

Parameters

Code examples

Manual model selection

If you prefer explicit control over which model runs, here’s a quick reference:
See Models for the full list with pricing and recommendations.