AI Gateway Universal API
Zuplo AI Gateway provides a universal API that standardizes interactions with various AI providers. This API follows the OpenAI API specification, making it easy to integrate with existing applications that already use OpenAI's API.
Using the Universal API
The Universal API is automatically enabled for all AI Gateway applications.
Using this endpoint is as simple as changing your API base URL to point to
Zuplo. For example, if your Zuplo application is hosted at
https://my-ai-gateway.zuplo.app
, you can simply change the base URL in your
API client to https://my-ai-gateway.zuplo.app/v1
.
If you are using an SDK or library that supports custom base URLs, you can
configure it to use your Zuplo application's URL. For example, with the OpenAI
Node.js SDK, you can set the baseURL
option:
Code