Skip to main content

Azure AI Foundry SDK client libraries

The Azure AI Foundry SDK is a comprehensive toolchain designed to simplify the development of AI applications on Azure. It enables developers to:
  • Access popular models from various model providers through a single interface
  • Easily combine together models, data, and AI services to build AI-powered applications
  • Evaluate, debug, and improve application quality & safety across development, testing, and production environments
The Azure AI Foundry SDK is a set of client libraries and services designed to work together.
This article applies to a Foundry Project. For more information, see Types of projects.

Prerequisites

  • An Azure subscription. If you don’t have one, create a free account.
  • Create a Foundry project if you don’t have one already.
  • Sign in with the Azure CLI using the same account that you use to access your project:
    az login
    

Unified Projects client library

The Azure AI Foundry Projects client library is a unified library that enables you to use multiple client libraries together by connecting to a single project endpoint.
  • Install the project client library
    pip install azure-ai-projects azure-identity
    
  • Create a project client in code. Copy the Azure AI Foundry project endpoint from the Overview page of the project and update the connections string value.
    from azure.identity import DefaultAzureCredential
    from azure.ai.projects import AIProjectClient
    
    project = AIProjectClient(
      endpoint="your_project_endpoint",  # Replace with your endpoint
      credential=DefaultAzureCredential())