Using Requesty with the OpenAI SDK is as simple as changing a single line of code. By pointing the base_url to the Requesty router, you can take advantage of all of Requesty’s features without changing the rest of your code.
This simple change unlocks powerful features, such as:
All of this is available while maintaining the familiar OpenAI SDK interface.
With Requesty, you can access over 250+ models from various providers. To specify a model, you must include the provider prefix, like openai/gpt-4.1-mini or anthropic/claude-sonnet-4-20250514. You can find the full list of available models in the Model Library.
Python
To use the OpenAI Python client with Requesty, simply set the base_url when initializing the client.
Javascript
The same principle applies to the OpenAI Javascript client. Set the baseURL during initialization.
Last modified on April 27, 2026