Chat Completions
Use POST /chat/completions to send OpenAI-compatible chat requests through OpenModels.
Base URL:
Endpoint:
Request
Required fields:
Common optional fields:
Parameter support can vary by model and upstream provider. If a parameter is not supported by the selected model, choose a different model or remove the parameter.
Route selection
The examples on this page include optional route and route_mode fields so you can see where request-time routing controls belong. Remove both fields to use the default available route for the selected model.
To pin a request to a specific provider route, pass route.provider with a provider name you have confirmed in the Models table or OpenModels dashboard:
Fixed provider routes are only sent to the selected provider. If the provider route is unavailable for that model, remove route or choose another provider route.
For application-level route groups created in the dashboard, pass the route:* ID as model instead. See Model Routes.
cURL
Python
Node.js
Response
Responses follow the OpenAI-compatible chat completions shape:
Use the usage object to understand token consumption for the request. Credit spend is based on actual input and output token usage.