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"
$export RESPAN_BASE_URL="https://api.respan.ai/api"
$export RESPAN_MODEL="gpt-5-mini"

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

3

Point ADK to the Respan gateway

1import os
2from google.adk.agents import Agent
3from google.adk.models.lite_llm import LiteLlm
4
5model_name = os.getenv("RESPAN_MODEL", "gpt-5-mini")
6
7agent = Agent(
8 name="assistant",
9 model=LiteLlm(
10 model=model_name,
11 api_key=os.environ["RESPAN_API_KEY"],
12 api_base=os.getenv("RESPAN_BASE_URL", "https://api.respan.ai/api"),
13 ),
14 instruction="You are a concise assistant.",
15)

Switch models

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

1agent = Agent(
2 name="assistant",
3 model=LiteLlm(
4 model="gpt-5.5",
5 api_key=os.environ["RESPAN_API_KEY"],
6 api_base="https://api.respan.ai/api",
7 ),
8)

See the full model list.