# Azure OpenAI Error With Vision Tool

**URL:** <https://community.crewai.com/t/azure-openai-error-with-vision-tool/3092>\
**Category:** General\
**Created:** [January 22, 2025, 2:37am UTC](https://community.crewai.com/t/azure-openai-error-with-vision-tool/3092 "2025-01-22T02:37:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joncarlisle](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@joncarlisle](https://community.crewai.com/u/joncarlisle)\
**Post date:** [January 22, 2025, 2:37am UTC](https://community.crewai.com/t/azure-openai-error-with-vision-tool/3092/1 "2025-01-22T02:37:13Z")

</div>

Hi,

I’m unable to get Auzre OpenAI working. I’ve followed the tutorial exactly. I get this error:

I encountered an error while trying to use the tool. This was the error: The api\_key client option must be set either by passing api\_key to the client or by setting the OPENAI\_API\_KEY environment variable.  
Tool Vision Tool accepts these inputs: Tool Name: Vision Tool  
Tool Arguments: {‘image\_path\_url’: {‘description’: None, ‘type’: ‘str’}}  
Tool Description: This tool uses OpenAI’s Vision API to describe the contents of an image.

Please help.

---

<div class="post-metadata">

**Author:** ![sgarg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/sgarg/32/1427_2.png) [@sgarg](https://community.crewai.com/u/sgarg)\
**Post date:** [April 28, 2025, 1:56am UTC](https://community.crewai.com/t/azure-openai-error-with-vision-tool/3092/2 "2025-04-28T01:56:12Z")

</div>

were u able to make is work I have the same issue
