google · Google AI Docs
Gemini API Live API best practices
Provides guidance on optimizing performance, managing latency, and implementing efficient patterns for the Gemini Multimodal Live API.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Gemini API Live API best practices
Provides guidance on optimizing performance, managing latency, and implementing efficient patterns for the Gemini Multimodal Live API.
When To Use
Use when you need to optimize latency, manage session stability, or implement efficient real-time multimodal interactions using the Live API.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/gemini-api-live-best-practices-workflow-guide.md | A guide outlining best practices for designing system instructions, defining tools, and crafting prompts for the Gemini API Live API. | Questions about a guide outlining best practices for designing system instructions, defining tools, and crafting prompts for the Gemi... |
examples/gemini-api-live-best-practices-language-prompt-template.text | A text template demonstrating how to instruct the Gemini API Live API to respond consistently in a specific output language. | Exact payloads, commands, or snippets shown in A text template demonstrating how to instruct the Gemini API Live API to respond consistently in a specific output la... |
examples/gemini-api-live-best-practices-gemini-api-live-persona.text | A text-based example defining a specific persona for a career coach to guide Gemini API Live API interactions. | Exact payloads, commands, or snippets shown in A text-based example defining a specific persona for a career coach to guide Gemini API Live API interactions. |
examples/gemini-api-live-best-practices-tool-definition.text | A text-based example of a tool definition for creating a client profile within the Gemini API Live API context. | Exact payloads, commands, or snippets shown in A text-based example of a tool definition for creating a client profile within the Gemini API Live API context. |
What This Skill Covers
- Preview: The Live API is in preview.
- Main sections:
Design clear system instructions,Define tools precisely,Craft effective prompts,Specify language,Streaming.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://ai.google.dev/gemini-api/docs/live-api/best-practices
