gemini-api-integration
Skill by sickn33
Guides AI agents through integrating the Google Gemini API into Node.js, Python, or browser projects. It covers model selection, multimodal inputs, streaming, function calling, and production practices.
Install gemini-api-integration
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/gemini-api-integration ~/.claude/skills/gemini-api-integrationRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/gemini-api-integration ~/.gemini/antigravity-cli/skills/gemini-api-integrationAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install gemini-api-integration in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The gemini-api-integration skill guides AI agents through integrating the Google Gemini API into applications. It covers model selection, text generation, multimodal inputs, streaming, function calling, and failure handling. The source uses the Google GenAI SDK, named as @google/genai for JavaScript and google-genai for Python.
The guide asks the agent to keep API keys on the server, pin SDK versions, and check model availability and pricing in official documentation before choosing a model. Function calls proposed by the model are treated as untrusted and must be validated before dispatch. It is aimed at developers adding Gemini to Node.js, Python, or browser projects. The source states that its examples are unexecuted integration templates.
Written from the project's SKILL.md and checked against it.
What it can do
- Model selectionHelps choose a Gemini model after checking availability, deprecations, pricing and feature support.
- Server-side generationShows how to call generateContent from Node.js or Python with a key read from the environment.
- Streaming responsesUses streaming interfaces and handles partial output, cancellation and blocked responses.
- Multimodal inputsGuides sending text with image, audio or video, including MIME type and retention checks.
- Function callingValidates model tool calls against an allowlist and schema before running them.
- Chat history handlingPreserves conversation turns and function-call identifiers, and uses system instruction fields.
- Failure handlingInspects structured errors and retries only transient failures with bounded backoff.
What you need
- Google Gemini API key
- Node.js with @google/genai or Python with google-genai
- Access to a Gemini model on the account
Try asking
- Set up a Node.js script that calls Gemini with a streamed response
- Add function calling to my Gemini chat with an allowlist of tools
- Show me how to send an image with a text prompt to Gemini in Python
Good to know
- Examples are unexecuted templates and do not confirm account access or production readiness
- SDK syntax, model availability, quotas and pricing change over time
- Older @google/generative-ai and google-generativeai APIs are not covered as current guidance
- Gemini API keys must not be shipped in browser code
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/gemini-api-integration/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md4 KB
Alternatives to gemini-api-integration
All alternatives →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser
gemini-api-integration: common questions
Which Gemini SDK does this skill use?
The source uses the Google GenAI SDK, @google/genai for JavaScript and google-genai for Python. It says the older generative-ai packages are not current setup guidance.
Should the Gemini API key go in browser code?
No. The source says never to ship a long-lived key in browser code and recommends a secret manager or protected environment.
Are the code examples tested?
The source says they are unexecuted integration templates. It recommends running a small non-sensitive prompt against a test project first.
How do I install gemini-api-integration?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is gemini-api-integration free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is gemini-api-integration safe to use?
It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to gemini-api-integration?
Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.
