Google ADK (gateway)

Route Google ADK model calls through the Respan gateway to use models and provider credentials configured in Respan. The gateway setup uses RESPAN_API_KEY for the model request path.

Setup

1

Install packages

pip install "google-adk[extensions]"
2

Set environment variables

export RESPAN_API_KEY="YOUR_RESPAN_API_KEY"

No provider credentials are needed in your application when the request is routed through the Respan gateway.

3

Point ADK to the Respan gateway

import os
from google.adk.agents import Agent
from google.adk.models.lite_llm import LiteLlm
agent = Agent(
name="assistant",
model=LiteLlm(
model="gpt-5-mini",
api_key=os.environ["RESPAN_API_KEY"],
api_base="https://api.respan.ai/api",
),
instruction="You are a concise assistant.",
)

Switch models

Change the configured model to another model available through your Respan account.

agent = Agent(
name="assistant",
model=LiteLlm(
model="gpt-5.5",
api_key=os.environ["RESPAN_API_KEY"],
api_base="https://api.respan.ai/api",
),
)

See the full model list.