MR
Mayur Rathi
@mayurrathi
⭐ 40.7k GitHub stars

Gemini Api Dev

Gemini Api Dev is an code AI skill with a core value of Use this skill when building applications with Gemini models, Gemini API, working with multimodal content (text, images, audio, video), implementing function calling, using structured outputs, or n. It helps developers solve real-world problems in the code domain, boosting efficiency, automating repetitive tasks, and optimizing workflows.

Use this skill when building applications with Gemini models, Gemini API, working with multimodal content (text, images, audio, video), implementing function calling, using structured outputs, or n...

Last verified on: 2026-07-07

Quick Facts

Category code
Works With Claude, Gemini
Source sickn33/antigravity-awesome-skills
Stars ⭐ 40.7k
Last Verified 2026-07-07
Risk Level Low
mkdir -p ./skills/gemini-api-dev && curl -sfL https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/skills/gemini-api-dev/SKILL.md -o ./skills/gemini-api-dev/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# Gemini API Development Skill


Overview


The Gemini API provides access to Google's most advanced AI models. Key capabilities include:

- **Text generation** - Chat, completion, summarization

- **Multimodal understanding** - Process images, audio, video, and documents

- **Function calling** - Let the model invoke your functions

- **Structured output** - Generate valid JSON matching your schema

- **Code execution** - Run Python code in a sandboxed environment

- **Context caching** - Cache large contexts for efficiency

- **Embeddings** - Generate text embeddings for semantic search


Current Gemini Models


- `gemini-3-pro-preview`: 1M tokens, complex reasoning, coding, research

- `gemini-3-flash-preview`: 1M tokens, fast, balanced performance, multimodal

- `gemini-3-pro-image-preview`: 65k / 32k tokens, image generation and editing



> [!IMPORTANT]

> Models like `gemini-2.5-*`, `gemini-2.0-*`, `gemini-1.5-*` are legacy and deprecated. Use the new models above. Your knowledge is outdated.


SDKs


- **Python**: `google-genai` install with `pip install google-genai`

- **JavaScript/TypeScript**: `@google/genai` install with `npm install @google/genai`

- **Go**: `google.golang.org/genai` install with `go get google.golang.org/genai`


> [!WARNING]

> Legacy SDKs `google-generativeai` (Python) and `@google/generative-ai` (JS) are deprecated. Migrate to the new SDKs above urgently by following the Migration Guide.


Quick Start


Python

python
from google import genai

client = genai.Client()
response = client.models.generate_content(
    model="gemini-3-flash-preview",
    contents="Explain quantum computing"
)
print(response.text)

JavaScript/TypeScript

typescript
import { GoogleGenAI } from "@google/genai";

const ai = new GoogleGenAI({});
const response = await ai.models.generateContent({
  model: "gemini-3-flash-preview",
  contents: "Explain quantum computing"
});
console.log(response.text);

Go

go
package main

import (
	"context"
	"fmt"
	"log"
	"google.golang.org/genai"
)

func main() {
	ctx := context.Background()
	client, err := genai.NewClient(ctx, nil)
	if err != nil {
		log.Fatal(err)
	}

	resp, err := client.Models.GenerateContent(ctx, "gemini-3-flash-preview", genai.Text("Explain quantum computing"), nil)
	if err != nil {
		log.Fatal(err)
	}

	fmt.Println(resp.Text)
}

API spec (source of truth)


**Always use the latest REST API discovery spec as the source of truth for API definitions** (request/response schemas, parameters, methods). Fetch the spec when implementing or debugging API integration:


- **v1beta** (default): `https://generativelanguage.googleapis.com/$discovery/rest?version=v1beta`

Use this unless the integration is explicitly pinned to v1. The official SDKs (google-genai, @google/genai, google.golang.org/genai) target v1beta.

- **v1**: `https://generativelanguage.googleapis.com/$discovery/rest?version=v1`

Use only when the integration is specifically set to v1.


When in doubt, use v1beta. Refer to the spec for exact field names, types, and supported operations.


How to use the Gemini API


For detailed API documentation, fetch from the official docs index:


**llms.txt URL**: `https://ai.google.dev/gemini-api/docs/llms.txt`


This index contains links to all documentation pages in `.md.txt` format. Use web fetch tools to:


1. Fetch `llms.txt` to discover available documentation pages

2. Fetch specific pages (e.g., `https://ai.google.dev/gemini-api/docs/function-calling.md.txt`)


Key Documentation Pages


> [!IMPORTANT]

> Those are not all the documentation pages. Use the `llms.txt` index to discover available documentation pages


- [Models](https://ai.google.dev/gemini-api/docs/models.md.txt)

- [Google AI Studio quickstart](https://ai.google.dev/gemini-api/docs/ai-studio-quickstart.md.txt)

- [Nano Banana image generation](https://ai.google.dev/gemini-api/docs/image-generation.md.txt)

- [Function calling with the Gemini API](https://ai.google.dev/gemini-

🎯 Best For

  • UI designers
  • Product designers
  • Claude users
  • Gemini users
  • Software engineers

💡 Use Cases

  • Generating component mockups
  • Creating design system tokens
  • Code quality improvement
  • Best practice enforcement

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude or Gemini and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Gemini Api Dev to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Does this work with Figma?

Some design skills integrate with Figma plugins. Check the Works With section for supported tools.

Is Gemini Api Dev compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Gemini Api Dev?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Gemini Api Dev?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/gemini-api-dev/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Skipping usability testing

AI-generated designs should be validated with real users before development.

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills