# Is the OpenAI model o3-mini working on crewai

**URL:** <https://community.crewai.com/t/is-the-openai-model-o3-mini-working-on-crewai/3464>\
**Category:** CrewAI Community Support\
**Created:** [February 2, 2025, 10:36pm UTC](https://community.crewai.com/t/is-the-openai-model-o3-mini-working-on-crewai/3464 "2025-02-02T22:36:15Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akaki\_Khvedelidze](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/akaki_khvedelidze/32/1797_2.png) [@Akaki\_Khvedelidze](https://community.crewai.com/u/Akaki_Khvedelidze)\
**Post date:** [February 2, 2025, 10:36pm UTC](https://community.crewai.com/t/is-the-openai-model-o3-mini-working-on-crewai/3464/1 "2025-02-02T22:36:15Z")

</div>

Hello everyone,

I am working on a project using CrewAI, and I’m trying to access the **`o3-mini` model** using the OpenAI API. I’ve set **`OPENAI_MODEL_NAME=o3-mini`** in my `.env` file, but I keep getting the following error:

```auto
OpenAIException - Error code: 404 - {'error': {'message': 'The model `o3-mini` does not exist or you do not have access to it.'}}

```

However, when I switch to **`gpt-4`** or **`gpt-3.5-turbo`** , everything works perfectly.

Could anyone share experience on this

Thanks in advance for your help!

---

<div class="post-metadata">

**Author:** ![Barbaros\_Alp](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/barbaros_alp/32/2401_2.png) [@Barbaros\_Alp](https://community.crewai.com/u/Barbaros_Alp)\
**Post date:** [February 3, 2025, 9:41pm UTC](https://community.crewai.com/t/is-the-openai-model-o3-mini-working-on-crewai/3464/2 "2025-02-03T21:41:38Z")

</div>

I had the same issue today. I also couldn’t find anything on the website.

---

<div class="post-metadata">

**Author:** ![Tony\_Wood](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/tony_wood/32/1876_2.png) [@Tony\_Wood](https://community.crewai.com/u/Tony_Wood)\
**Post date:** [February 4, 2025, 9:52am UTC](https://community.crewai.com/t/is-the-openai-model-o3-mini-working-on-crewai/3464/3 "2025-02-04T09:52:39Z")

</div>

This works for me… I needed to remove the temperature. To get it working .

I use the following in my crew

```
llm = LLM(model="gpt-4o")
llm_mini = LLM(model="o3-mini")

```

and set the llm in the crew

```
		return Agent(
			config=self.agents_config['researcher'],
			verbose=True,
			allow_delegation=False, #This will drive therest of the agents
    		max_iter=20,  
			llm=llm_mini,
		)

```

I am running crewai --version 0.100.0

---

<div class="post-metadata">

**Author:** ![tonykipkemboi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/tonykipkemboi/32/4070_2.png) [@tonykipkemboi](https://community.crewai.com/u/tonykipkemboi)\
**Post date:** [February 4, 2025, 3:43pm UTC](https://community.crewai.com/t/is-the-openai-model-o3-mini-working-on-crewai/3464/4 "2025-02-04T15:43:41Z")

</div>

we’re adding this in the next few hours

---

<div class="post-metadata">

**Author:** ![tonykipkemboi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/tonykipkemboi/32/4070_2.png) [@tonykipkemboi](https://community.crewai.com/u/tonykipkemboi)\
**Post date:** [February 4, 2025, 3:44pm UTC](https://community.crewai.com/t/is-the-openai-model-o3-mini-working-on-crewai/3464/5 "2025-02-04T15:44:27Z")

</div>

Save the model as **MODEL=o3-mini** in **.env**.

---

<div class="post-metadata">

**Author:** ![Akaki\_Khvedelidze](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/akaki_khvedelidze/32/1797_2.png) [@Akaki\_Khvedelidze](https://community.crewai.com/u/Akaki_Khvedelidze)\
**Post date:** [February 4, 2025, 4:17pm UTC](https://community.crewai.com/t/is-the-openai-model-o3-mini-working-on-crewai/3464/6 "2025-02-04T16:17:51Z")

</div>

Thanks for working on this and update:  
I did run  
crewai -update  
Replaced model name OPENAI\_MODEL\_NAME=o3-mini )inctead of [gpt-4o] which works works well.  
Restarted the Terminal but still see the error:  
LiteLLM.Info: If you need to debug this error, use `litellm.set\_verbose=True’.

ERROR:root:LiteLLM call failed: litellm.NotFoundError: OpenAIException - Error code: 404 - {‘error’: {‘message’: ‘The model `o3-mini` does not exist or you do not have access to it.’, ‘type’: ‘invalid\_request\_error’, ‘param’: None, ‘code’: ‘model\_not\_found’}}

Can you guide, anything I’m doing incorrect?

---

<div class="post-metadata">

**Author:** ![tonykipkemboi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/tonykipkemboi/32/4070_2.png) [@tonykipkemboi](https://community.crewai.com/u/tonykipkemboi)\
**Post date:** [February 4, 2025, 4:44pm UTC](https://community.crewai.com/t/is-the-openai-model-o3-mini-working-on-crewai/3464/7 "2025-02-04T16:44:47Z")

</div>

can you first confirm you have access to the model in the openai api account?

also, change the variable name from **OPENAI\_MODEL\_NAME=o3-mini** to **MODEL=o3-mini**

if it’s still not working, please share a link to your codebase repo.

---

<div class="post-metadata">

**Author:** ![achris7](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/achris7/32/850_2.png) [@achris7](https://community.crewai.com/u/achris7)\
**Post date:** [February 24, 2025, 11:14pm UTC](https://community.crewai.com/t/is-the-openai-model-o3-mini-working-on-crewai/3464/8 "2025-02-24T23:14:13Z")

</div>

same issue i’m having today…

---

<div class="post-metadata">

**Author:** ![tonykipkemboi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/tonykipkemboi/32/4070_2.png) [@tonykipkemboi](https://community.crewai.com/u/tonykipkemboi)\
**Post date:** [May 6, 2025, 9:06pm UTC](https://community.crewai.com/t/is-the-openai-model-o3-mini-working-on-crewai/3464/9 "2025-05-06T21:06:53Z")

</div>

mind sharing your code and error?

---

<div class="post-metadata">

**Author:** ![maxmoura](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/maxmoura/32/4206_2.png) [@maxmoura](https://community.crewai.com/u/maxmoura)\
**Post date:** [May 7, 2025, 12:27am UTC](https://community.crewai.com/t/is-the-openai-model-o3-mini-working-on-crewai/3464/10 "2025-05-07T00:27:51Z")

</div>

For those of you running into the error:

```auto
Unsupported parameter: 'stop' is not supported with this model

```

This error’s been popping up for both the [`o3`](https://github.com/crewAIInc/crewAI/issues/2738) and [`o4-mini`](https://github.com/crewAIInc/crewAI/issues/2661) models. Give this a whirl for declaring your `LLM`, following [this recommendation](https://github.com/crewAIInc/crewAI/issues/2661#issuecomment-2852393122):

```python
from crewai import LLM, Agent

o4_mini_llm = LLM(
    # [...] other LLM configuration parameters
    additional_drop_params=["stop"] # 👈
)

test_agent = Agent(
    # [...] other Agent configuration parameters
    llm=o4_mini_llm
)

```

---

<div class="post-metadata">

**Author:** ![Tony\_Wood](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/tony_wood/32/1876_2.png) [@Tony\_Wood](https://community.crewai.com/u/Tony_Wood)\
**Post date:** [May 8, 2025, 9:14am UTC](https://community.crewai.com/t/is-the-openai-model-o3-mini-working-on-crewai/3464/11 "2025-05-08T09:14:17Z")

</div>

I ran into this… Looks like the bug is being worked on [[BUG] o3 model support (not o3-mini) · Issue #2738 · crewAIInc/crewAI · GitHub](https://github.com/crewAIInc/crewAI/issues/2738)

---

<div class="post-metadata">

**Author:** ![maxmoura](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/maxmoura/32/4206_2.png) [@maxmoura](https://community.crewai.com/u/maxmoura)\
**Post date:** [May 8, 2025, 12:06pm UTC](https://community.crewai.com/t/is-the-openai-model-o3-mini-working-on-crewai/3464/12 "2025-05-08T12:06:46Z")

</div>

Hey @Tony_Wood, so [PR #2738](https://github.com/crewAIInc/crewAI/issues/2738) actually got closed once that native LiteLLM solution we were talking about came up. I’m just waiting on [this test](https://github.com/crewAIInc/crewAI/issues/2661#issuecomment-2859064986) with the `o3` model to move along, so we can see for sure if that `additional_drop_params=["stop"]` tweak is actually going to be enough.

---

<div class="post-metadata">

**Author:** ![Tony\_Wood](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/tony_wood/32/1876_2.png) [@Tony\_Wood](https://community.crewai.com/u/Tony_Wood)\
**Post date:** [May 9, 2025, 10:06am UTC](https://community.crewai.com/t/is-the-openai-model-o3-mini-working-on-crewai/3464/13 "2025-05-09T10:06:14Z")

</div>

Hi @maxmoura I just tested with the .119 release and still a problem.. Do you get the same?

```
litellm.exceptions.BadRequestError: litellm.BadRequestError: OpenAIException - Error code: 400 - {'error': {'message': "Unsupported parameter: 'stop' is not supported with this model.", 'type': 'invalid_request_error', 'param': 'stop', 'code': 'unsupported_parameter'}}   
An error occurred while running the flow: Command '['uv', 'run', 'kickoff']' returned non-zero exit status 1.

```

---

<div class="post-metadata">

**Author:** ![Tony\_Wood](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/tony_wood/32/1876_2.png) [@Tony\_Wood](https://community.crewai.com/u/Tony_Wood)\
**Post date:** [May 15, 2025, 4:33pm UTC](https://community.crewai.com/t/is-the-openai-model-o3-mini-working-on-crewai/3464/14 "2025-05-15T16:33:12Z")

</div>

I reported it here [[BUG] o3 is giving a stop message in crewai, version 0.120.1 · Issue #2843 · crewAIInc/crewAI · GitHub](https://github.com/crewAIInc/crewAI/issues/2843)
