Using python-genai with googleapis.com

Python integration

✓ Official SDK
Install
pip install python-genai
Quick start
import python-genai

# Use an OAuth2 access token
client = python_genai.Client(access_token="YOUR_ACCESS_TOKEN")
Gets the metadata for an API key. The key string of the API key isn't include…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://apikeys.googleapis.com/v2/{name}
Lists the API keys owned by a project. The key string of the API key isn't in…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://apikeys.googleapis.com/v2/{parent}/keys
Find the parent project and resource name of the API key that matches the key…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://apikeys.googleapis.com/v2/keys:lookupKey
SDK on GitHub 📄 API Docs
SDK
python-genai
Python
API
googleapis.com
googleapis.com:apikeys
At a glance
Language Python
Endpoints8
Base URLhttps://apikeys.googleapis.com
✓ Official