> ## Documentation Index
> Fetch the complete documentation index at: https://statsig-4b2ff144-serverless-cloudflare.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting Started

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

Start by installing the Statsig Azure AI SDK.  Depending on your language/framework you would use the right package manager to install the SDK in your project

<Tabs>
  <Tab title="NodeJS">
    ```shell theme={null}
    npm i @statsig/azure-ai
    ```
  </Tab>

  <Tab title="Python">
    ```shell theme={null}
    pip install azureai-statsig
    ```
  </Tab>

  <Tab title=".NET">
    ```shell theme={null}
    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.

<Frame>
  <img src="https://github.com/user-attachments/assets/3172d6f9-176e-4a3b-817f-3a5bd3af4291" alt="Azure AI Studio model deployment creation interface" />
</Frame>

Once confirmed, you will be taken to the details page of that model.

<Frame>
  <img src="https://github.com/user-attachments/assets/b8f46ed9-ce02-486f-b6f7-1d09f7b62f33" alt="Azure AI model deployment details page" />
</Frame>

Now, copy the **Target URI** (this will be your *endpoint* in code) and the **Key** - you'll need this in the SDK to call the APIs.

## Step 3: Get Statsig server SDK key

<Info>
  This guide assumes you have an existing Statsig account. Please go here to create a new free account if you don't already have one: [https://statsig.com/signup](https://statsig.com/signup)
</Info>

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

<Frame>
  <img src="https://github.com/user-attachments/assets/f60f6f2b-60d0-4804-8db5-b82d4ac96bcf" alt="Statsig project settings API keys section" />
</Frame>

## Step 4: Initialize Azure AI Server

<Tabs>
  <Tab title="NodeJS">
    ```js theme={null}
    import { AzureAI } from "@statsig/azure-ai";

    await AzureAI.initialize("<STATSIG_SERVER_KEY>");
    ```
  </Tab>

  <Tab title="Python">
    ```python theme={null}
    AzureAI.initialize("<STATSIG_SERVER_KEY>")
    ```
  </Tab>

  <Tab title=".NET">
    ```csharp theme={null}
    using Statsig;
    using Statsig.AzureAI;

    await Server.Initialize("<STATSIG_SERVER_KEY>");
    ```
  </Tab>
</Tabs>
