Azure Batch OpenAI not working with o3-mini - Bad Request: Model {modelName} is enabled only for api versions 2024-12-01-preview and later

David Captur 70 Reputation points
2025-04-23T09:56:20.1866667+00:00

Using Azure UI Foundry I created a batch using an input file with a single entry to test it out as shown below:

{"custom_id":"task-0","method":"POST","url":"/chat/completions","body":{"model":"o3-mini-batch","max_completion_tokens":"20000","reasoning_effort":"low","messages":[{"role":"system","content":"You are an AI assistant that helps people find information."},{"role":"user","content":"When was Microsoft founded?"}]}}

o3-mini-batch is the deployment name of a Global Batch o3-mini deployment I just deployed. When Azure OpenAI attempts to process this file, it keeps failing, returning this error after processing (not after validation):

{"custom_id":"task-0","response":{"request_id":"","status_code":400},"error":{"code":null,"message":{"error":{"code":"BadRequest","message":"Model {modelName} is enabled only for api versions 2024-12-01-preview and later"}}}}

I cannot find a way to set / pass an api-version in the Input Batch File. The same problem is not happening when using other models. I also cannot find a way to change any versions of the o3-mini-batch deployment itself, the model version is set to 2025-01-31 (Default). There also seems to be no way to provide a specific api-version when using the Azure AI Foundry UI.

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,378 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Manas Mohanty 3,125 Reputation points Microsoft External Staff
    2025-04-24T11:24:08.0666667+00:00

    Hi David Captur

    Jsonl content with out max_token and reasoning_effort works in easus with my global batch deployment of o3-mini.

    Could you verify at your side.

    {"custom_id": "task-0", "method": "POST", "url": "/chat/completions", "body": {"model": "o3-mini", "messages": [{"role": "system", "content": "You are an AI assistant that helps people find information."}, {"role": "user", "content": "When was Microsoft founded?"}]}}
    {"custom_id": "task-1", "method": "POST", "url": "/chat/completions", "body": {"model": "o3-mini", "messages": [{"role": "system", "content": "You are an AI assistant that helps people find information."}, {"role": "user", "content": "When was the first XBOX released?"}]}}
    {"custom_id": "task-2", "method": "POST", "url": "/chat/completions", "body": {"model": "o3-mini", "messages": [{"role": "system", "content": "You are an AI assistant that helps people find information."}, {"role": "user", "content": "What is Altair Basic?"}]}}
    
    
    

    Thank you.

    0 comments No comments

Your answer

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