gemini-api-dev

Implements Gemini API applications with current models, SDKs, and multimodal capabilities.

Updated May 23, 2026
One-click install
npx skills add https://github.com/kiranimmadi2/promptforge-ai --skill gemini-api-dev-kiranimmadi2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini-api-dev
Source: https://github.com/kiranimmadi2/promptforge-ai/tree/main/gemini-skills/skills/gemini-api-dev
Command: npx skills add https://github.com/kiranimmadi2/promptforge-ai --skill gemini-api-dev-kiranimmadi2

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developers building with the Gemini API often rely on outdated training data, using deprecated models like gemini-1.5 or legacy SDKs like google-generativeai. This Skill provides current model names, correct SDK packages, and working code patterns for Gemini API development. ## Core Features & Use Cases - Current Model & SDK Reference: Lists active models (gemini-3.5-flash, gemini-2.5-pro, gemma-4) and official SDKs for Python, JavaScript/TypeScript, Go, and Java, while flagging deprecated ones. - Quick Start Code Patterns: Provides working generate_content examples in four languages with correct client initialization. - Documentation Lookup Strategy: Directs the AI to use the Google MCP search_docs tool when available, or fetch from ai.google.dev llms.txt index as a fallback. - Use Case: You ask your AI assistant to add image generation to your app. Instead of hallucinating an old model name, it uses gemini-3.1-flash-image-preview with the correct @google/genai SDK syntax. ## Quick Start Ask the AI to write a Python script that sends a prompt to the Gemini API and prints the response using the current SDK.

Frequently Asked Questions about gemini-api-dev

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I call the Gemini API in Python?

Install the google-genai package with pip install google-genai, create a client with genai.Client(), then call client.models.generate_content with a model like gemini-3.5-flash and your prompt. The legacy google-generativeai package is deprecated.

Which Gemini model should I use for my application?

Use gemini-3.5-flash for fast balanced multimodal tasks, gemini-3.1-pro-preview or gemini-2.5-pro for complex reasoning and coding, and gemini-3.1-flash-lite-preview for high-frequency lightweight calls. Image generation uses gemini-3-pro-image-preview or gemini-3.1-flash-image-preview.

What is the difference between google-genai and google-generativeai?

google-genai is the current official Python SDK for the Gemini API, while google-generativeai is the legacy deprecated package that should never be used. The same applies to @google/genai versus @google/generative-ai in JavaScript.

Does the Gemini API support Java and Go?

Yes, Java uses the com.google.genai:google-genai artifact from Maven Central, and Go uses google.golang.org/genai. Both provide a client with a models.generateContent method matching the Python and JavaScript patterns.

How do I get up-to-date Gemini API documentation?

If the Google MCP server is installed, use its search_docs tool as the only documentation source. Otherwise fetch the llms.txt index at ai.google.dev/gemini-api/docs/llms.txt and retrieve specific pages in .md.txt format.

Can I use this for real-time audio or video streaming?

No, this Skill covers standard request-response API usage. For real-time bidirectional audio, video, and text streaming, install the separate google-gemini/gemini-live-api-dev skill which covers WebSocket streaming and the Live API.