Azure OpenAI Responses API with computer-use-preview

Axel B Andersen 186 Reputation points
2025-05-19T06:49:47.97+00:00

I am testing the Azure OpenAI Response endpoint. I got the basics working with rest calls - tool calling also works. In these calls I consume the models I have deployed in Azure Foundry.

I really want to test the CUA optiion, that is described here https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/responses?tabs=rest-api#computer-use - I am aware, that the documentation is for python, but the nuts and bolts should be the same underneath the python library.

When calling my endpoint like below, the response fails

$parameters = @{
	uri = "https://<mydeployment>.openai.azure.com/openai/responses?api-version=2025-03-01-preview"
	Method = "Post"
	Headers = @{
		"api-key" = "MySecretKey"
		}
	ContentType = "application/json"
	body = '{
		  "input": [
		    {
		      "role": "user",
		      "content": "Check the latest OpenAI news on bing.com\r\n"
		    }
		  ],
		  "reasoning": {
		    "summary": "concise"
		  },
		  "tools": [
		    {
		      "display_width": 1024,
		      "environment": "browser",
		      "display_height": 768,
		      "type": "computer_use_preview"
		    }
		  ],
		  "model": "computer-use-preview",
		  "truncation": "auto"
		}'
	}
Invoke-RestMethod @parameters

{
  "error": {
    "message": "The requested model \u0027-\u0027 with deployment name computer-use-preview does not exist.",
    "type": "invalid_request_error",
    "param": "model",
    "code": "model_not_found"
  }
}


It seems that the computer-use-preview model is not available. What do I need to do to deploy that model?

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,602 questions
0 comments No comments
{count} votes

Accepted answer
  1. kothapally Snigdha 3,020 Reputation points Microsoft External Staff Moderator
    2025-05-20T14:49:47.0933333+00:00

    Hi @Axel B Andersen

    Yes, registration is required, and you can complete it at link. Please ensure your registration is finalized and access is granted. Create a deployment: After registration, you must create a deployment for the computer-use-preview model in your Azure OpenAI resource.

    Once your registration is approved and the deployment is correctly set up, you should be able to make API calls without encountering that error.

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Axel B Andersen 186 Reputation points
    2025-05-19T19:06:17.36+00:00

    Figured it out. Registration is required: https://aka.ms/oai/cuaaccess

    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.