Skip to main content
Helicone OSS LLM Observability

Azure OpenAI with Python

Use Python to integrate Azure OpenAI with Helicone to log your Azure OpenAI usage.
1 min read
Warning

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.

How to Integrate#

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.

Set up your Helicone API key in your .env file

Modify the base URL path

Note

Make sure to include the api-version in all of your requests.

Info
Recomendation: Model Override

When using Azure, the model displays differently than expected at times. We have implemented logic to parse out the model, but if you want to guarantee your model is consistent, we highly recommend using model override:

Helicone-Model-Override: [MODEL_NAME]

Click here to learn more about model override

Start using Azure OpenAI with Helicone

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.

Related Guides#