AJ ZAFAR

Architecting intelligence. Delivering impact.

Azure3 min read

GPT-4.1 arrives in Azure AI Foundry: long context and better coding

GPT-4.1, 4.1-mini and 4.1-nano are now on Azure OpenAI Service with a one million token context. How I would evaluate them before moving production workloads.

The Azure AI Foundry landing page inviting users to create agents, with a model search box

Yesterday Microsoft announced the GPT-4.1 model series for Azure AI Foundry developers. There are three models: GPT-4.1, GPT-4.1-mini and GPT-4.1-nano. They are available through Azure OpenAI Service and on GitHub. Microsoft describes them as the latest iteration of GPT-4o, with clear improvements in coding, instruction following and long-context work.

What was announced

The headline is context length. All three models accept up to one million tokens of input. That is enough to pass a large codebase, a long contract pack or a substantial set of policy documents in a single request.

The three sizes give you a familiar trade-off:

  • GPT-4.1 has the strongest reasoning and the highest cost. It suits complex coding, analysis and agent planning.
  • GPT-4.1-mini balances quality, speed and cost for most everyday workloads.
  • GPT-4.1-nano is the smallest and lowest-cost option, aimed at high-volume and low-latency tasks such as classification or autocomplete.

The models support the same API features as GPT-4o, including tool calling and structured outputs, so most existing code should work with a change of deployment. Microsoft also said supervised fine-tuning for GPT-4.1 and GPT-4.1-mini would arrive later this week.

Azure AI Foundry home page with the heading Create smarter agents with Azure AI Foundry and a search box for models
Azure AI Foundry is where you find, deploy and test the new models.Edit: screenshot updated to the current interface.Image: Microsoft Learn (CC BY 4.0)

What it means for organisations

Long context is not a replacement for retrieval. A million tokens is impressive, but every token costs money and adds latency. For most enterprise scenarios I would still use retrieval to pick the relevant content and keep prompts focused. Long context is most useful where the whole document set genuinely matters, such as reviewing a full code repository or comparing a set of contracts side by side.

Better instruction following helps agents. Many of the problems I see in agent projects come from the model drifting away from its instructions or not calling tools reliably. Improvements here can matter more in practice than benchmark scores. That is especially true for agents built on Azure AI Agent Service or Semantic Kernel.

Model choice is now a design decision. With three sizes in one family, I would not default everything to the largest model. A common pattern on my projects is a larger model for planning and reasoning, and a smaller one for routine steps such as extraction or classification. Compare cost per completed task, not cost per token.

Lifecycle management matters. New model versions arrive often, and older versions retire. Treat a model upgrade like any other dependency change. Run your evaluation set against the new model, compare quality, cost and latency, and only then switch production deployments.

Quota and regions. As with any new model, regional availability and quota can limit your options at first. Check the models page for where each model is deployed, and plan capacity requests early if you expect heavy use.

Azure AI Foundry chat playground with a model deployment selected, a system message box and a chat pane
The chat playground is the quickest place to compare a new deployment with your current model.Edit: screenshot updated to the current interface.Image: Microsoft Learn (CC BY 4.0)

I think GPT-4.1 is a practical release rather than a flashy one. Better coding, more reliable instruction following and three sensible price points are exactly what teams building real agents need. The work now is disciplined evaluation, not chasing the newest model name.

↑↓ navigateEnter openEsc close