Azure
Use AI21 models in Microsoft Azure
This guide covers how to use the AI21 Studio Python SDK on Microsoft Azure.
Using the AI21 Python SDK on Azure
- Read the prerequisites for using Jamba on Azure.
- Create your Azure account and configure it for AI21 usage.
- Get your endpoint's base URL and Azure API keys.
- Install or upgrade the AI21 Studio Python SDK to the minimum required version:
pip install -U "ai21>=2.13.0"
- Create either an
AI21AzureClient
orAsyncAI21AzureClient
and pass in your endpoint base URL and keys. See client creation code here. - Other than client creation, SDK usage is the same as with the regular AI21 Studio Python SDK client.
Additional resources
- You can find Azure sync and async examples in our GitHub repository.
- Read the Azure deployment Guide for Jamba.
- Learn how to use the Python SDK
Updated 4 months ago