chore(provider): add Google AI Studio support#2805
Merged
amitksingh1490 merged 4 commits intoantinomyhq:mainfrom Apr 3, 2026
Merged
chore(provider): add Google AI Studio support#2805amitksingh1490 merged 4 commits intoantinomyhq:mainfrom
amitksingh1490 merged 4 commits intoantinomyhq:mainfrom
Conversation
Register google_ai_studio as a first-class provider using the OpenAI-compatible endpoint at generativelanguage.googleapis.com, allowing users to authenticate with GEMINI_API_KEY and access Gemini models directly without an OpenRouter intermediary. Closes antinomyhq#703
| "id": "google_ai_studio", | ||
| "api_key_vars": "GEMINI_API_KEY", | ||
| "url_param_vars": [], | ||
| "response_type": "OpenAI", |
Contributor
There was a problem hiding this comment.
Suggested change
| "response_type": "OpenAI", | |
| "response_type": "Google", |
| "api_key_vars": "GEMINI_API_KEY", | ||
| "url_param_vars": [], | ||
| "response_type": "OpenAI", | ||
| "url": "https://generativelanguage.googleapis.com/v1beta/openai/chat/completions", |
Contributor
There was a problem hiding this comment.
use this url https://generativelanguage.googleapis.com/v1beta/models/gemini-3-flash-preview:generateContent
refer vertex_ai
Contributor
|
We have optimised the google response type for google models it will give you better & faster results |
amitksingh1490
approved these changes
Apr 3, 2026
This was referenced Apr 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Google AI Studio as a first-class provider, giving users direct access to Gemini models using their
GEMINI_API_KEYwithout routing through OpenRouter.Changes
Provider registration (
provider.json):google_ai_studioentry using the native Google API endpoint (https://generativelanguage.googleapis.com/v1beta)GEMINI_API_KEY(standard API key flow)response_type: "Google"to use the native Google response format rather than the OpenAI-compatible shimDomain registration (
provider.rs):ProviderId::GOOGLE_AI_STUDIOconstantall_built_in()list"google_ai_studio"→"GoogleAIStudio")FromStrparsing for the"google_ai_studio"stringFromStrparsingTesting