Skip to main content
These are advanced options the pre.dev AI API supports on top of the standard chat completion fields. You choose the model; pre.dev chooses how to serve it.

Fallback models

Send models instead of a single model. The gateway tries each in order, and the response reports which one answered.
You pay for the model that actually answered, at its own price. Read model in the response, or the by_model rows in usage, to see where traffic landed.

Reasoning

reasoning (an object) and reasoning_effort (a string) control thinking on models that support it. Reasoning tokens are billed as output tokens.
Many models reason by default. For short answers, pass reasoning: { "enabled": false } or keep max_tokens large enough for the thinking and the answer. plugins accepts web, file-parser, response-healing, and context-compression. web_search_options tunes the web plugin, and a model id ending in :online turns web search on. Plugin costs are part of the call’s charge.

Other supported fields

If you send user, keep it stable per end user so abuse reports can be attributed.