Skip to main content
Every chat, Messages, and Responses request is routed in three layers. Each layer is optional and they combine freely. Without any of these, a request goes to the model you name, served by the cheapest healthy provider that fits the request.

Quick examples

Which model served the request

The response model field always names the model that produced the answer. Billing uses that model’s price. Auto Router responses also carry the X-EH-Routed-Model header.

Supported endpoints