Integrating Groq with Google ADK using LiteLLM

I recently tried to integrate Groq models with Google ADK to build an agent and ran into some challenges. There’s no official documentation on either side for direct integration, which made it tricky at first.

After digging through the docs:

From the…


This content originally appeared on DEV Community and was authored by Mir Md Tarhimul Quader

I recently tried to integrate Groq models with Google ADK to build an agent and ran into some challenges. There’s no official documentation on either side for direct integration, which made it tricky at first.

After digging through the docs:

From the ADK documentation, I learned that ADK can integrate LiteLLM as an LLM backend.

From the Groq documentation, I found that Groq models can be accessed through LiteLLM by using the model name in this format:

groq/<groq-model-name>

This was the key insight — LiteLLM acts as a bridge between Groq and ADK.

Here’s the minimal setup I used:

from dotenv import load_dotenv
from google.adk.agents import Agent
from google.adk.models.lite_llm import LiteLlm

load_dotenv()

model = LiteLlm(
    model="groq/llama-3.3-70b-versatile",  # use "groq/<groq-model-name>"
)

root_agent = Agent(
    name="greeting_agent",
    model=model,
    description="This agent greets the user.",
    instruction="""
    You are a helpful assistant that greets the users. Ask for the user's name and greet them by name.
    """
)

With this setup, the agent works perfectly. It uses Groq under the hood via LiteLLM, while ADK handles the orchestration.


This content originally appeared on DEV Community and was authored by Mir Md Tarhimul Quader


Print Share Comment Cite Upload Translate Updates
APA

Mir Md Tarhimul Quader | Sciencx (2025-09-29T12:09:46+00:00) Integrating Groq with Google ADK using LiteLLM. Retrieved from https://www.scien.cx/2025/09/29/integrating-groq-with-google-adk-using-litellm/

MLA
" » Integrating Groq with Google ADK using LiteLLM." Mir Md Tarhimul Quader | Sciencx - Monday September 29, 2025, https://www.scien.cx/2025/09/29/integrating-groq-with-google-adk-using-litellm/
HARVARD
Mir Md Tarhimul Quader | Sciencx Monday September 29, 2025 » Integrating Groq with Google ADK using LiteLLM., viewed ,<https://www.scien.cx/2025/09/29/integrating-groq-with-google-adk-using-litellm/>
VANCOUVER
Mir Md Tarhimul Quader | Sciencx - » Integrating Groq with Google ADK using LiteLLM. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/09/29/integrating-groq-with-google-adk-using-litellm/
CHICAGO
" » Integrating Groq with Google ADK using LiteLLM." Mir Md Tarhimul Quader | Sciencx - Accessed . https://www.scien.cx/2025/09/29/integrating-groq-with-google-adk-using-litellm/
IEEE
" » Integrating Groq with Google ADK using LiteLLM." Mir Md Tarhimul Quader | Sciencx [Online]. Available: https://www.scien.cx/2025/09/29/integrating-groq-with-google-adk-using-litellm/. [Accessed: ]
rf:citation
» Integrating Groq with Google ADK using LiteLLM | Mir Md Tarhimul Quader | Sciencx | https://www.scien.cx/2025/09/29/integrating-groq-with-google-adk-using-litellm/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.