Skip to main content
These are advanced options the pre.dev AI API supports on top of the standard chat completion fields. This page lists them and how they interact with billing.

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 served the call, at its own price. Read model in the response, or the by_model rows in usage, to see where traffic landed.

Provider preferences

The provider object controls which providers serve a model:
usage.cost reflects the chosen provider’s price, so max_price bounds your credit spend per token. The :nitro variant is shorthand for throughput sorting.

Reasoning

reasoning (an object) and reasoning_effort (a string) request thinking on models that support it. Reasoning tokens are output tokens for billing.
plugins accepts web, file-parser, response-healing, and context-compression. web_search_options tunes the web plugin. Plugin costs are included in usage.cost.

Other pass-through fields

If you send user, keep it stable per end user so abuse reports can be attributed. The gateway sets it when absent.