OpenAI Compatibility
Learn how to use our API keys to develop products using OpenAI SDK
Before you begin!
Visit the Wetrocloud console to get your API key. If you have trouble obtaining it, refer to this guide.
Introduction
We designed WetroCloud’s API to be mostly compatible with OpenAI’s client libraries, making it easy to configure your existing applications to run on WetroCloud and try our inference with 10X speed. We supports a multiple of models from OpenAI, Anthopic, Meta etc. Visit Wetrocloud supported models list to check out our supported models.
Configuring OpenAI to Use WetroCloud API
To start using WetroCloud with OpenAI’s client libraries, ensure you have the OpenAI SDK installed, then pass your WetroCloud API key to the api_key parameter and change the base_url to https://api.wetrocloud.com/v1/openai:
Install OpenAI SDK
First, install OpenAI.
Configuration
To use WetroCloud with OpenAI’s SDK, set the API base URL to WetroCloud’s endpoint and provide your API key.
Example: Text Completion
Just use
Benefits of Using WetroCloud with OpenAI SDK
- Same OpenAI Functions + inference 10x speed
- No Code Changes – Just update api_base to WetroCloud’s endpoint.
- Access to multiple model – Use latest models from OpenAI,Anthopic,Meta etc. with WetroCloud’s API key.
- Scalable & Cost-Effective – Optimized for performance at scale.
Great, that was easy!
For more details, visit WetroCloud’s website and WetroCloud’s Documentation.