Skip to main content
This integration method is maintained but no longer actively developed. For the best experience and latest features, use our new AI Gateway with unified API access to 100+ models.
1

Create an account and generate an API key

Log into Helicone or create an account. Once you have an account, you can generate an API key here.
2

Modify the base URL path and set up authentication

curl --request POST \
    --url "https://oai.helicone.ai/openai/deployments/$DEPLOYMENT_NAME/chat/completions?api-version=$API_VERSION" \
    --header "Helicone-Auth: Bearer $HELICONE_API_KEY" \
    --header "Helicone-OpenAI-Api-Base: https://$AZURE_DOMAIN.azure.com" \
    --header "api-key: $AZURE_API_KEY" \
    --header "content-type: application/json" \
    --data '{
        "messages": [
            {
                "role": "user",
                "content": "What is the meaning of life?"
            }
        ],
        "max_tokens": 800,
        "temperature": 1,
        "model": "gpt-4o-mini-0613"
    }'
3

Verify your requests in Helicone

With the above setup, any calls to Azure OpenAI will automatically be logged and monitored by Helicone. Review them in your Helicone dashboard.
To learn more about the differences between OpenAI and AzureOpenAI, review the documentation here.