-
Notifications
You must be signed in to change notification settings - Fork 728
Description
Google Cloud ConsoleまたはGoogle AI StudioでAPIキーを作成しても、Gemini APIが接続に必要とする正しい形式のキーが生成されず、困っています。
私の操作ミスではなく、Googleシステム側の設定不整合が原因であると判断し、解決策を求めています。
発生している問題は、APIキー作成時に常に誤った形式のキー(AIzaSy...から始まるキー)が生成されることです。Python SDKでの接続にはgen-lang-client-...から始まる形式のキーが必要です。
【実行済みのトラブルシューティング】
Generative Language APIの有効化と無効化の再試行を行いました。
キーに「制限なし」「Generative Language APIに制限」の両方を設定して再作成しました。
新しいGoogle Cloudプロジェクトを作成し、APIを有効化してのキー再作成も試しました。
別のGoogleアカウントでのキー生成テストも行いましたが、同じ問題が発生しました。
Python SDKの再インストールも行いました。
【要望】
私のGoogle Cloudアカウントにて、gen-lang-client-...形式のAPIキーが正常に生成されるよう、解決策をご教示いただくか、または担当チームへの調査依頼をお願いいたします。
Translation
I'm having trouble creating an API key in the Google Cloud Console or Google AI Studio. It doesn't generate the correct format required for connecting to the Gemini API.
I believe this is due to a setting inconsistency on Google's system, not my own error, and I'm seeking a solution.
The problem I'm experiencing is that when I create an API key, an incorrect key format (starting with AIzaSy...) is always generated. Connecting with the Python SDK requires a key format starting with gen-lang-client-....
[Troubleshooting I've tried]
I've tried enabling and disabling the Generative Language API again.
I've recreated the key with both "Unrestricted" and "Restricted to Generative Language API" settings.
I've also created a new Google Cloud project, enabled the API, and recreated the key.
I also tested key generation using a different Google account, but the same problem occurred.
I've also reinstalled the Python SDK.
[Request]
Please advise me on a solution so that I can correctly generate API keys in the gen-lang-client-... format in my Google Cloud account, or ask the relevant team to investigate.