Google GenAI SDK
Use native Google GenAI clients against the /genai endpoint.
Keep native Google GenAI code in Python or JavaScript (@google/genai) and route it through DeepintShield.
What works
generate_contentand streaming withgenerate_content_stream- Async calls through
client.aio - Chats with Python callable tools; clients from
shield.genai()also govern automatic callable tools - Files, cached content, batches, and other providers by model prefix
Limits to know: Anthropic batches are inline only, and Bedrock batches need the Bedrock SDK.
How to connect
Create genai.Client with your Virtual Key as api_key and HttpOptions(base_url="https://app.deepintshield.com/genai", api_version="v1beta"), or use shield.genai() with deepintshield[genai]==3.2.3.