Skip to main content
For free and developer tiers, Groq will shut down llama-3.3-70b-versatile on August 16, 2026. Replace it with openai/gpt-oss-120b before that date. Groq retired deepseek-r1-distill-llama-70b on October 2, 2025. Replace it with openai/gpt-oss-120b. See Groq deprecations.
reasoning_agent.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your Groq API key

4

Replace Llama 3.3

Replace llama-3.3-70b-versatile with openai/gpt-oss-120b in the saved file.
5

Replace DeepSeek R1 Distill

Replace deepseek-r1-distill-llama-70b with openai/gpt-oss-120b in the saved file.
6

Run the example

Save the code above as reasoning_agent.py, then run:
Full source: cookbook/90_models/groq/reasoning_agent.py