What are the supported models in Google ADK? Explain all model providers and how to use them.

#google-adk#models#gemini#openai#anthropic#ollama#litellm

Answer

All Supported Models in Google ADK

Google ADK supports 100+ LLMs across 8 model providers, from Google Gemini to local Ollama models.


Model Provider Architecture


All Model Providers

#ProviderModelsConnectionDocs
1Google Geminigemini-2.5-flash, gemini-2.5-proDirectLink
2AnthropicClaude Sonnet, Haiku, OpusVertex AI + RegistryLink
3OpenAIGPT-4o, GPT-4-TurboLiteLLMLink
4Vertex AILlama 3, fine-tuned modelsVertex endpointLink
5OllamaGemma, Llama, Mistral (local)LiteLLM + OllamaLink
6vLLMAny self-hosted modelLiteLLM + vLLMLink
7LiteRT-LMOn-device edge modelsLocal serverLink
8ApigeeEnterprise-governed modelsAI GatewayLink

Code Examples

Gemini (Direct)

python
agent = Agent(name="a", model="gemini-2.5-flash", instruction="...")

OpenAI (LiteLLM)

python
from google.adk.models.lite_llm import LiteLlm
agent = Agent(name="a", model=LiteLlm(model="openai/gpt-4o"), instruction="...")

Anthropic (Registry)

python
from google.adk.models.anthropic_llm import Claude
from google.adk.models.registry import LLMRegistry
LLMRegistry.register(Claude)
agent = Agent(name="a", model="claude-sonnet-4-6", instruction="...")

Ollama (Local)

python
import os
os.environ["OLLAMA_API_BASE"] = "http://localhost:11434"
from google.adk.models.lite_llm import LiteLlm
agent = Agent(name="a", model=LiteLlm(model="ollama_chat/gemma3:latest"), instruction="...")

vLLM (Self-hosted)

python
from google.adk.models.lite_llm import LiteLlm
agent = Agent(name="a", model=LiteLlm(model="hosted_vllm/google/gemma-3-4b-it"), instruction="...")

Model Feature Support

FeatureGeminiOpenAIClaudeOllama
Tool callingFullFullFullPartial
StreamingFull + LiveSSESSESSE
Code executionBuilt-inNoNoNo
Grounding (Search)YesNoNoNo
Vision (images)YesYesYesModel-dependent
Audio I/OYes (Live)Via WhisperNoNo

Pro tip: Start with Gemini for full feature access, then expand to other models as needed.

Learn more at Models Overview.