OpenAI SDK provides the most robust integration method for accessing multiple model providers.Since most AI providers prioritize OpenAI SDK compatibility, you can seamlessly call all 250+ models available through the Keywords AI platform gateway.
from openai import OpenAIclient = OpenAI( base_url="https://api.keywordsai.co/api/", api_key="YOUR_KEYWORDS_AI_API_KEY", # Get from Keywords AI dashboard)
To call Azure OpenAI models, instead of using azure OpenAI’s client, the easier way is to use the OpenAI client.
Copy
1. Go to [Keywords AI Providers](https://platform.keywordsai.co/platform/api/providers)2. Add your Azure OpenAI credentials3. Configure your Azure deployment settings4. Use Azure models through the same Keywords AI endpoint