[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-dba8cc85-934c-42e3-a9aa-239b4b0c5aab":3,"$fWRDfWZV6Gn5-2VQFCPoSpH1HUsP1PpqCHw0qXF3w42E":42},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":33},"dba8cc85-934c-42e3-a9aa-239b4b0c5aab","gemini-api-dev","Gemini API提供访问谷歌最先进的AI模型。主要功能包括：","cat_coding_backend","mod_coding","sickn33,coding","---\nname: gemini-api-dev\ndescription: \"The Gemini API provides access to Google's most advanced AI models. Key capabilities include:\"\nrisk: unknown\nsource: community\ndate_added: \"2026-02-27\"\n---\n\n# Gemini API Development Skill\n\n## Overview\n\nThe Gemini API provides access to Google's most advanced AI models. Key capabilities include:\n- **Text generation** - Chat, completion, summarization\n- **Multimodal understanding** - Process images, audio, video, and documents\n- **Function calling** - Let the model invoke your functions\n- **Structured output** - Generate valid JSON matching your schema\n- **Code execution** - Run Python code in a sandboxed environment\n- **Context caching** - Cache large contexts for efficiency\n- **Embeddings** - Generate text embeddings for semantic search\n\n## Current Gemini Models\n\n- `gemini-3-pro-preview`: 1M tokens, complex reasoning, coding, research\n- `gemini-3-flash-preview`: 1M tokens, fast, balanced performance, multimodal\n- `gemini-3-pro-image-preview`: 65k \u002F 32k tokens, image generation and editing\n\n\n> [!IMPORTANT]\n> Models like `gemini-2.5-*`, `gemini-2.0-*`, `gemini-1.5-*` are legacy and deprecated. Use the new models above. Your knowledge is outdated.\n\n## SDKs\n\n- **Python**: `google-genai` install with `pip install google-genai`\n- **JavaScript\u002FTypeScript**: `@google\u002Fgenai` install with `npm install @google\u002Fgenai`\n- **Go**: `google.golang.org\u002Fgenai` install with `go get google.golang.org\u002Fgenai`\n\n> [!WARNING]\n> Legacy SDKs `google-generativeai` (Python) and `@google\u002Fgenerative-ai` (JS) are deprecated. Migrate to the new SDKs above urgently by following the Migration Guide.\n\n## Quick Start\n\n### Python\n```python\nfrom google import genai\n\nclient = genai.Client()\nresponse = client.models.generate_content(\n    model=\"gemini-3-flash-preview\",\n    contents=\"Explain quantum computing\"\n)\nprint(response.text)\n```\n\n### JavaScript\u002FTypeScript\n```typescript\nimport { GoogleGenAI } from \"@google\u002Fgenai\";\n\nconst ai = new GoogleGenAI({});\nconst response = await ai.models.generateContent({\n  model: \"gemini-3-flash-preview\",\n  contents: \"Explain quantum computing\"\n});\nconsole.log(response.text);\n```\n\n### Go\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\t\"google.golang.org\u002Fgenai\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\tclient, err := genai.NewClient(ctx, nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tresp, err := client.Models.GenerateContent(ctx, \"gemini-3-flash-preview\", genai.Text(\"Explain quantum computing\"), nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Println(resp.Text)\n}\n```\n\n## API spec (source of truth)\n\n**Always use the latest REST API discovery spec as the source of truth for API definitions** (request\u002Fresponse schemas, parameters, methods). Fetch the spec when implementing or debugging API integration:\n\n- **v1beta** (default): `https:\u002F\u002Fgenerativelanguage.googleapis.com\u002F$discovery\u002Frest?version=v1beta`  \n  Use this unless the integration is explicitly pinned to v1. The official SDKs (google-genai, @google\u002Fgenai, google.golang.org\u002Fgenai) target v1beta.\n- **v1**: `https:\u002F\u002Fgenerativelanguage.googleapis.com\u002F$discovery\u002Frest?version=v1`  \n  Use only when the integration is specifically set to v1.\n\nWhen in doubt, use v1beta. Refer to the spec for exact field names, types, and supported operations.\n\n## How to use the Gemini API\n\nFor detailed API documentation, fetch from the official docs index:\n\n**llms.txt URL**: `https:\u002F\u002Fai.google.dev\u002Fgemini-api\u002Fdocs\u002Fllms.txt`\n\nThis index contains links to all documentation pages in `.md.txt` format. Use web fetch tools to:\n\n1. Fetch `llms.txt` to discover available documentation pages\n2. Fetch specific pages (e.g., `https:\u002F\u002Fai.google.dev\u002Fgemini-api\u002Fdocs\u002Ffunction-calling.md.txt`)\n\n### Key Documentation Pages \n\n> [!IMPORTANT]\n> Those are not all the documentation pages. Use the `llms.txt` index to discover available documentation pages\n\n- [Models](https:\u002F\u002Fai.google.dev\u002Fgemini-api\u002Fdocs\u002Fmodels.md.txt)\n- [Google AI Studio quickstart](https:\u002F\u002Fai.google.dev\u002Fgemini-api\u002Fdocs\u002Fai-studio-quickstart.md.txt)\n- [Nano Banana image generation](https:\u002F\u002Fai.google.dev\u002Fgemini-api\u002Fdocs\u002Fimage-generation.md.txt)\n- [Function calling with the Gemini API](https:\u002F\u002Fai.google.dev\u002Fgemini-api\u002Fdocs\u002Ffunction-calling.md.txt)\n- [Structured outputs](https:\u002F\u002Fai.google.dev\u002Fgemini-api\u002Fdocs\u002Fstructured-output.md.txt)\n- [Text generation](https:\u002F\u002Fai.google.dev\u002Fgemini-api\u002Fdocs\u002Ftext-generation.md.txt)\n- [Image understanding](https:\u002F\u002Fai.google.dev\u002Fgemini-api\u002Fdocs\u002Fimage-understanding.md.txt)\n- [Embeddings](https:\u002F\u002Fai.google.dev\u002Fgemini-api\u002Fdocs\u002Fembeddings.md.txt)\n- [Interactions API](https:\u002F\u002Fai.google.dev\u002Fgemini-api\u002Fdocs\u002Finteractions.md.txt)\n- [SDK migration guide](https:\u002F\u002Fai.google.dev\u002Fgemini-api\u002Fdocs\u002Fmigrate.md.txt)\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,53,386,"2026-05-16 13:19:49",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"编程开发","coding","mdi-code-braces","代码生成、调试、审查，提升开发效率",2,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":25,"skillCount":32,"createdAt":26},"后端开发","backend","mdi-server","API、数据库、服务端架构",296,[34],{"id":35,"skillId":4,"version":36,"fileName":37,"fileSize":38,"filePath":39,"fileHash":40,"manifest":41,"createdAt":19},"e5d1ea4f-ceec-4353-8133-b2d77b769879","1.0.0","gemini-api-dev.zip",2156,"uploads\u002Fskills\u002Fdba8cc85-934c-42e3-a9aa-239b4b0c5aab\u002Fgemini-api-dev.zip","2a3698839143405fde8e064eb250a0824d1afd61165de5f4479416eaa5e5e290","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":5141}]",{"code":43,"message":44,"data":45},200,"success",{"items":46,"stats":47,"page":50},[],{"averageRating":48,"totalRatings":48,"ratingCounts":49},0,[48,48,48,48,48],{"limit":51,"offset":48,"hasMore":52,"nextOffset":51,"ratedOnly":16},15,false]