Make a request
Relixr is OpenAI-compatible — point your SDK at our gateway base URL and nothing else changes.
Relixr's gateway speaks the same wire format as the OpenAI API. If you already use the openai SDK (or any OpenAI-compatible client), you only need to change the base URL and the key.
Successful responses include a relixr extension alongside the standard OpenAI fields, with the routing decision and a full cost breakdown. Refer to Model routing for the full schema.
Keep your existing retry and timeout logic. Relixr's response shape and status codes match the OpenAI API, so error handling you've already written keeps working.
Test From a Terminal
This is the whole request, ready to paste:
Test Without Writing Code
Go to Playground in the dashboard to send a message against any model, using any of your keys, without writing a client.