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

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

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.