json_schema not supported in gpt-chat-latest-2026-05-05 via Responses API

Steffen Schreiber 25 Reputation points
2026-05-22T11:57:41.6566667+00:00

I am getting the following error, when trying to use gpt-chat-latest in combination with a json_schema via the responses API:

400 Invalid parameter: ‘text.format’ of type ‘json_schema’ is not supported with model version gpt-chat-latest-2026-05-05.

The exact same code works fine with gpt-5.2-chat. When I access chat-latest directly via OpenAI, it works as well when using json_schema.

Please fix this as gpt-chat-latest is marked as the official replacement for gpt-5.2-chat, but at the moment we cannot use it as is.

Thanks,
Steffen

Azure OpenAI in Foundry Models
0 comments No comments

Answer accepted by question author
Sina Salam 31,456 Reputation points Volunteer Moderator
2026-05-22T13:31:46.6766667+00:00

Hello Steffen Schreiber,

Welcome to the Microsoft Q&A and thank you for posting your questions here.

I understand that your json_schema not supported in gpt-chat-latest-2026-05-05 via Responses API.

Simply because JSON Mode and Structured Outputs are different features. JSON Mode uses: { "type": "json_object" }

while Structured Outputs require: { "type": "json_schema" }

The mismatch is between the requested feature and the supported Azure OpenAI configuration. Structured Outputs require a supported model, a supported API version, and a supported API surface. Microsoft documentation states that API version 2024-08-01-preview is the first Azure OpenAI API version that supports Structured Outputs, and that newer preview APIs and the GA v1 API also support it. - https://learn.microsoft.com/en-us/azure/foundry/openai/how-to/structured-outputs

To resolve this, use a supported Azure OpenAI model such as gpt-4o version 2024-08-06, gpt-4o-mini version 2024-07-18, or another model currently listed as supporting Structured Outputs, together with a supported API version and Chat Completions or Responses API. - https://learn.microsoft.com/en-us/azure/foundry/openai/how-to/structured-outputs

If the request is being sent through Azure OpenAI Assistants or Foundry Agents, json_schema should not be used there because Structured Outputs are documented as unsupported for Assistants and Foundry Agents. In that case, use Chat Completions, Responses API where available, or function calling instead. - https://learn.microsoft.com/en-us/azure/foundry/openai/how-to/structured-outputs

After switching to a supported model/API combination and sending response_format.type = "json_schema" through a supported API surface, the request should succeed and return JSON that conforms to the supplied schema.

I hope this is helpful! Do not hesitate to let me know if you have any other questions, steps or clarifications.


Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.

Was this answer helpful?

1 person found this answer helpful.

1 additional answer

Sort by: Oldest
  1. kagiyama yutaka 5,570 Reputation points
    2026-05-26T15:33:32.05+00:00

    I think Azure does not show this gpt‑chat‑latest build as able to use json_schema in the Responses API, and the safe step is to use a model that Azure clearly lists for Structured Outputs.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.