llama-index-llms-azure-openai
llama-index llms azure openai integration
Decision gist · record as of 2026-08-14
Yes, if you are already using LlamaIndex and need to connect to Azure OpenAI models. The package is actively maintained, has no known vulnerabilities, and integrates cleanly with LlamaIndex's standard LLM interface. Install friction is low. You will need valid Azure OpenAI credentials and a deployed model to use it.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires an active Azure OpenAI resource with a deployed model and valid API credentials (endpoint, key, and API version).
- Low install friction with a pure-Python wheel.
- Maintenance status is active.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions, making it suitable for most projects.
last release 2026-05-08 (98 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 625,087 downloads/mo, #5,697 on PyPI
Alternatives
Verify before relying
import os
os.environ["OPENAI_API_KEY"] = "<your-api-key>"
os.environ["AZURE_OPENAI_ENDPOINT"] = "https://<your-resource-name>.openai.azure.com/"
os.environ["OPENAI_API_VERSION"] = "2023-07-01-preview"
from llama_index.llms.azure_openai import AzureOpenAI
llm = AzureOpenAI(engine="my-engine", model="gpt-35-turbo-16k", temperature=0.0)
response = llm.complete("The sky is a beautiful blue and")
print(response)- Whether the package maintains backward compatibility across Azure OpenAI API versions beyond 2023-07-01-preview
- Performance characteristics when handling large-scale concurrent requests through Azure endpoints
What it is and what it does
This package bridges LlamaIndex applications to Azure OpenAI's managed language models. It wraps Azure's OpenAI API behind LlamaIndex's standard LLM interface, letting you use Azure-hosted GPT models (like gpt-35-turbo-16k) for text completion, streaming, and chat without rewriting your LlamaIndex code.
The package handles Azure-specific authentication through azure-identity, manages HTTP requests via httpx, and depends on llama-index-core and llama-index-llms-openai for the core LLM abstraction. You configure it with an Azure endpoint, API key, API version, and the name of your deployed model engine, then call standard methods like complete(), stream_complete(), chat(), and stream_chat() just as you would with any LlamaIndex LLM.
Use it for
- Build RAG or agentic applications using Azure-hosted GPT models within LlamaIndex's framework
- Migrate existing OpenAI-based LlamaIndex code to run on Azure's managed infrastructure
- Stream long-form completions or multi-turn conversations through Azure OpenAI endpoints
- Integrate Azure OpenAI into enterprise applications that require Azure's compliance and security posture
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are already using LlamaIndex and need to connect to Azure OpenAI models.
The package is actively maintained, has no known vulnerabilities, and integrates cleanly with LlamaIndex's standard LLM interface. Install friction is low. You will need valid Azure OpenAI credentials and a deployed model to use it.
Install
llama-index-llms-azure-openai on PyPI
Before you install
Low install friction with a pure-Python wheel. Maintenance status is active. Depends on llama-index-core and llama-index-llms-openai, plus azure-identity and httpx for Azure authentication and HTTP operations.
Requires an active Azure OpenAI resource with a deployed model and valid API credentials (endpoint, key, and API version).
License in practice
MIT license permits commercial and private use with minimal restrictions, making it suitable for most projects.
Quickstart
import os
os.environ["OPENAI_API_KEY"] = "<your-api-key>"
os.environ["AZURE_OPENAI_ENDPOINT"] = "https://<your-resource-name>.openai.azure.com/"
os.environ["OPENAI_API_VERSION"] = "2023-07-01-preview"
from llama_index.llms.azure_openai import AzureOpenAI
llm = AzureOpenAI(engine="my-engine", model="gpt-35-turbo-16k", temperature=0.0)
response = llm.complete("The sky is a beautiful blue and")
print(response)
Verify before relying
- Whether the package maintains backward compatibility across Azure OpenAI API versions beyond 2023-07-01-preview
- Performance characteristics when handling large-scale concurrent requests through Azure endpoints
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesazure-identityhttpxllama-index-corellama-index-llms-openai |
| Maintenance | Actively maintained 98 days since the last release |
| First released | |
| Downloads | 625,087 / month, #5,697 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: llama_index_llms_azure_openai-0.5.5-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “azure openai llm integration”
- llama-index-llms-azure-openaiIntegrates Azure OpenAI language models into LlamaIndex applications,…
- livekit-plugins-openaiIntegrates OpenAI's Realtime, Responses, LLM, TTS, and STT APIs into…
- agent-framework-openaiProvides OpenAI and Azure OpenAI integration for Microsoft Agent…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also llama-index-llms-openai · llama-index-llms-bedrock · llama-index-llms-litellm · llama-index-llms-ollama · ai21 · llama-index-llms-google-genai · llama-index-llms-openai-like · llama-index-embeddings-azure-openai · llama-index-llms-langchain · llama-index-llms-bedrock-converse