Prerequisites
- Active Orq.ai account
- Orq.ai API key
Connect Gemini CLI
1
Install Gemini CLI
2
Configure the endpoint and API key
Set the Orq.ai API key as Replace
GEMINI_API_KEY, then point Gemini CLI at the Google-compatible AI Gateway endpoint:<ORQ_API_KEY> with a key from Workspace Settings > API Keys.3
Start Gemini CLI
gemini -p reports Invalid auth method selected, add the authentication method to ~/.gemini/settings.json:Connect Google Gen AI SDKs
Interactions API
Use the Interactions API for new model integrations. It provides a unified input and output format for model requests throughclient.interactions.create.
The gateway supports model interactions with text and image input, function tools and results, streaming, stored continuation, background execution, cancellation, and deletion. Managed agents, provider-hosted built-in tools, and non-text output modalities are not supported.
- Node.js
- Python
generateContent compatibility surface.
Exact
last_event_id resume requires an interaction that was created with stream: true.generateContent compatibility
Set the SDK base URL tohttps://my.orq.ai/v3/google. The SDK appends the /v1beta/models/... path.
- Node.js
- Python
gemini-* model ID or any provider/model identifier enabled in the workspace. Find available identifiers in supported models.
Gemini models with thinking enabled count thinking tokens toward
maxOutputTokens. Set thinkingConfig.thinkingBudget to 0 to disable thinking on supported models.