Prerequisites
To use the Responses API with deployed models in your application, you need:- An Azure subscription. If you’re using GitHub Models, you can upgrade your experience and create an Azure subscription in the process. Read Upgrade from GitHub Models to Microsoft Foundry Models if that’s your case.
- A Foundry project. This kind of project is managed under a Foundry resource. If you don’t have a Foundry project, see Create a project for Microsoft Foundry.
-
Your Foundry project’s endpoint URL, which is of the form
https://YOUR-RESOURCE-NAME.services.ai.azure.com/api/projects/YOUR_PROJECT_NAME. -
A deployment of a Foundry Model, such as the
DeepSeek-R1-0528model used in this article. If you don’t have a deployment already, see Add and configure Foundry Models to a model deployment to your resource.
Use the AI model starter kit
The code snippets in this article are from the AI model starter kit. Use this starter kit as a quick way to get started with complete cloud infrastructure and code needed to call Foundry Models, using a stable OpenAI library with the Responses API.Use the Responses API to generate text
Use the code in this section to make Responses API calls for Foundry Models. In the code samples, you create the client to consume the model and then send it a basic request.Use keyless authentication with Microsoft Entra ID. To learn more about keyless authentication, see What is Microsoft Entra authentication? and DefaultAzureCredential.
- Python
- C#
- JavaScript
- Java
- Go
-
Install libraries, including the Azure Identity client library:
-
Use the following code to configure the OpenAI client object in the project route, specify your deployment, and generate responses.
Supported Foundry Models
A selection of Foundry Models are supported for use with the Responses API.View supported models in the Foundry portal
To see a full list of the supported models in the Foundry portal:- Sign in to Microsoft Foundry. Make sure the New Foundry toggle is on. These steps refer to Foundry (new).

- Select Discover in the upper-right navigation, then Models in the left pane.
- Open the Capabilities dropdown and select the Agent supported filter.
List of supported models
This section lists some of the Foundry Models that are supported for use with the Responses API. For the Azure OpenAI models that are supported, see Available Azure OpenAI models. Foundry Models sold by Azure:- MAI-DS-R1: Deterministic, precision-focused reasoning.
- grok-4: Frontier-scale reasoning for complex, multiple-step problem solving.
- grok-4-fast-reasoning: Accelerated agentic reasoning optimized for workflow automation.
- grok-4-fast-non-reasoning: High-throughput, low-latency generation and system routing.
- grok-3: Strong reasoning for complex, system-level workflows.
- grok-3-mini: Lightweight model optimized for interactive, high-volume use cases.
- Llama-3.3-70B-Instruct: Versatile model for enterprise Q&A, decision support, and system orchestration.
- Llama-4-Maverick-17B-128E-Instruct-FP8: FP8-optimized model that delivers fast, cost-efficient inference.
- DeepSeek-V3-0324: Multimodal understanding across text and images.
- DeepSeek-V3.1: Enhanced multimodal reasoning and grounded retrieval.
- DeepSeek-V3.2: Model that harmonizes high computational efficiency with superior reasoning and agent performance.
- DeepSeek-V3.2-Speciale: Specialized DeepSeek-V3.2 variant.
- DeepSeek-R1-0528: Advanced long-form and multiple-step reasoning.
- gpt-oss-120b: Open-ecosystem model that supports transparency and reproducibility.