google-generativeai

PyPI

Is google-generativeai safe to use?

The latest brin safety scan flagged google-generativeai v0.8.6 with risk indicators that warrant review. No known CVE vulnerabilities. Trust score: 80/100. Review the findings below before use. This is an automated assessment and may contain errors.

Install (safety-checked)

google-generativeai Has Warnings

Warnings detected due to potential concerns

warning
CVEs

0

Threats

0

Install Scripts

0

Risk Indicators

  • Flagged for potential Ssrf patterns (75% confidence)
  • Package includes native code modules

brin Recommendations

  • This package has warnings detected. Evaluate the specific concerns before proceeding.

Install with brin add google-generativeai to automatically apply these checks before installation.

This is an automated, point-in-time assessment and may contain errors. Findings are risk indicators, not confirmed threats. Security posture may change over time. Maintainers can dispute findings via the brin review process.

google-generativeai Capabilities & Permissions

What google-generativeai can access when installed. Review these capabilities before using with AI agents like Cursor, Claude Code, or Codex.

Network Access

This package makes network requests.

ai.google.devdeveloper.chrome.comdocs.google.comgenerativelanguage.googleapis.comgithub.comgoogleapis.devgoogleapis.github.iopeps.python.orgpillow.readthedocs.iostackoverflow.com+1 more
Protocols: http, https

Filesystem Access

Reads from the filesystem.

.env (r).env (r)

Environment Variables

Accesses the following environment variables.

API_KEYGEMINI_API_KEYGOOGLE_API_KEY

Native Modules

Contains native code that runs outside the JavaScript sandbox.

pandas

AGENTS.md for google-generativeai

Good instructions lead to good results. brin adds google-generativeai documentation to your AGENTS.md so your agent knows how to use it properly—improving both safety and performance.

brin init

Vercel's research: 100% accuracy with AGENTS.md vs 53% without →

google-generativeai Documentation & Source Code

For the full google-generativeai README, API documentation, and source code, visit the official package registry.

Frequently asked questions about google-generativeai safety

Weekly Downloads

3.4M

Version

0.8.6

Last Scanned

Feb 5, 2026

Trust Score

80/100·Legitimacy signals, not safety

Capabilities

Network

Connects to: ai.google.dev, developer.chrome.com, docs.google.com...

Filesystem

Reads files

Environment

Accesses: API_KEY, GEMINI_API_KEY, GOOGLE_API_KEY

Native

Contains native modules

Is google-generativeai Safe? | PyPI Safety Scan - brin