Skip to content

Google Gemini

Server-side:

Terminal window
GEMINI_API_KEY=<your-ai-studio-key>
from tappass import Agent
agent = Agent("https://tappass.example.com", "tp_...")
response = agent.chat("Hello", model="gemini/gemini-1.5-pro")
Terminal window
export OPENAI_BASE_URL=https://tappass.example.com/v1
export OPENAI_API_KEY=tp_...
from openai import OpenAI
client = OpenAI()
response = client.chat.completions.create(
model="gemini/gemini-1.5-pro",
messages=[{"role": "user", "content": "Hello"}],
)
  • Gemini 1.5 Pro, Flash, Flash-8B
  • Streaming + non-streaming
  • Tool calls (function calling)
  • Vision (image + video content)
  • JSON mode / schema-typed outputs

The AI Studio path (GEMINI_API_KEY) is US-routed. When TAPPASS_EU_DATA_RESIDENCY=true, the server’s LLM judge is restricted to EU-hosted models — see the Azure OpenAI page for EU-resident GPT deployments.