
## Step 1: Install the SDK in your server app

Install the Statsig Azure AI SDK using the package manager for your language or framework.

{% tabs %}
{% tab title="NodeJS" %}
```shell
npm i @statsig/azure-ai
```
{% /tab %}

{% tab title="Python" %}
```shell
pip install azureai-statsig
```
{% /tab %}

{% tab title=".NET" %}
```shell
dotnet add package StatsigAzureAI
```
{% /tab %}
{% /tabs %}

## Step 2: Create a model deployment in Azure AI Studio

Log into your Azure AI Studio console and create a new deployment that you'd like to use.

{% figure %}
![Azure AI Studio model deployment creation interface](/images/integrations/azureai/getting-started/3172d6f9-176e-4a3b-817f-3a5bd3af4291.png)
{% /figure %}

After confirmation, Statsig takes you to the details page of that model.

{% figure %}
![Azure AI model deployment details page](/images/integrations/azureai/getting-started/b8f46ed9-ce02-486f-b6f7-1d09f7b62f33.png)
{% /figure %}

Copy the **Target URI** (your *endpoint* in code) and the **Key**. You need both in the SDK to call the APIs.

## Step 3: Get Statsig server SDK key

{% callout type="info" %}
This guide assumes you have an existing Statsig account. Go to https://statsig.com/signup to create a new free account if you don't already have one.
{% /callout %}

Go to your **Project Settings** and choose the **Keys & Environments** tab. Scroll down to the **API Keys** section and copy the Server Secret Key. If one doesn't exist, create one or ask your project admin to create one.

{% figure %}
![Statsig project settings API keys section](/images/integrations/azureai/getting-started/f60f6f2b-60d0-4804-8db5-b82d4ac96bcf.png)
{% /figure %}

## Step 4: Initialize Azure AI server

{% tabs %}
{% tab title="NodeJS" %}
```js
import { AzureAI } from "@statsig/azure-ai";

await AzureAI.initialize("<STATSIG_SERVER_KEY>");
```
{% /tab %}

{% tab title="Python" %}
```python
AzureAI.initialize("<STATSIG_SERVER_KEY>")
```
{% /tab %}

{% tab title=".NET" %}
```csharp
using Statsig;
using Statsig.AzureAI;

await Server.Initialize("<STATSIG_SERVER_KEY>");
```
{% /tab %}
{% /tabs %}
