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.
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.
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
Great, that was easy!
For more details, visit WetroCloud’s website and WetroCloud’s Documentation.