Azure OpenAI
Azure OpenAI cURL Integration
Use cURL to integrate Azure OpenAI with Helicone to log your Azure OpenAI usage.
1
2
Modify the API base and add the `Helicone-Auth` header
Please ensure to replace API keys with your own.
curl --request POST \
--url https://oai.helicone.ai/openai/deployments/DEPLOYMENTNAME/chat/completions?api-version=[API_VERSION] \
--header 'Helicone-Auth: Bearer [HELICONE_KEY]' \
--header 'Helicone-OpenAI-Api-Base: https://[AZUREDOMAIN].openai.azure.com' \
--header 'api-key: [AZURE_API_KEY]' \
--header 'content-type: application/json' \
--data '{
"messages": [
{
"role": "user",
"content": "Answer in one word"
}
],
"max_tokens": 800,
"temperature": 1,
"model": "gpt-3.5-turbo-0613"
}'