Prompt Buddy logoPrompt Buddy

google · Google AI Docs

Gemini API Get started with Gemini Live API using the Google GenAI SDK

Provides a step-by-step implementation guide for initializing and using the Gemini Live API through the Google GenAI SDK.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Gemini API Get started with Gemini Live API using the Google GenAI SDK

Provides a step-by-step implementation guide for initializing and using the Gemini Live API through the Google GenAI SDK.

When To Use

Use when you need to implement real-time multimodal interactions using the Gemini Live API via the Google GenAI SDK.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/gemini-api-get-started-with-live-using-the-google-genai-sdk-workflow-guide.mdA guide explaining how to integrate with the Gemini Live API for real-time bidirectional interaction using the Google GenAI SDK in Python and JavaScript.Questions about a guide explaining how to integrate with the Gemini Live API for real-time bidirectional interaction using the Google...
examples/gemini-api-get-started-with-live-using-the-google-genai-sdk-gemini-api-l.textA Python script demonstrating how to establish a real-time session with the Gemini Live API using the Google GenAI SDK.Exact payloads, commands, or snippets shown in A Python script demonstrating how to establish a real-time session with the Gemini Live API using the Google GenAI SDK.
examples/gemini-api-get-started-with-live-using-the-google-genai-sdk-gemini-api-l-2.textA TypeScript code example demonstrating how to establish a live connection to the Gemini API using the Google GenAI SDK with audio modality configuration.Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to establish a live connection to the Gemini API using the Google GenAI S...
examples/gemini-api-get-started-with-live-using-the-google-genai-sdk-gemini-api-l-3.textA Python code example demonstrating how to send real-time text input to a Gemini Live API session using the Google GenAI SDK.Exact payloads, commands, or snippets shown in A Python code example demonstrating how to send real-time text input to a Gemini Live API session using the Google Ge...
examples/gemini-api-get-started-with-live-using-the-google-genai-sdk-gemini-api-l-4.textA text example demonstrating how to use the session.sendRealtimeInput method within the Google GenAI SDK to send realtime text input to the Gemini Live API.Exact payloads, commands, or snippets shown in A text example demonstrating how to use the session.sendRealtimeInput method within the Google GenAI SDK to send real...
examples/gemini-api-get-started-with-live-using-the-google-genai-sdk-gemini-api-l-5.textA code snippet demonstrating how to send raw PCM audio bytes to a Gemini Live API session using the Google GenAI SDK.Exact payloads, commands, or snippets shown in A code snippet demonstrating how to send raw PCM audio bytes to a Gemini Live API session using the Google GenAI SDK.
examples/gemini-api-get-started-with-live-using-the-google-genai-sdk-gemini-api-l-6.textA code snippet demonstrating how to send raw PCM audio chunks as base64 encoded data using the Google GenAI SDK for the Gemini Live API.Exact payloads, commands, or snippets shown in A code snippet demonstrating how to send raw PCM audio chunks as base64 encoded data using the Google GenAI SDK for t...
examples/gemini-api-get-started-with-live-using-the-google-genai-sdk-gemini-api-l-7.textA code snippet demonstrating how to send JPEG-encoded image bytes as real-time video input using the Google GenAI SDK for the Gemini Live API.Exact payloads, commands, or snippets shown in A code snippet demonstrating how to send JPEG-encoded image bytes as real-time video input using the Google GenAI SDK...
examples/gemini-api-get-started-with-live-using-the-google-genai-sdk-gemini-api-l-8.textA code snippet demonstrating how to send real-time video input using base64-encoded JPEG frames via the Google GenAI SDK.Exact payloads, commands, or snippets shown in A code snippet demonstrating how to send real-time video input using base64-encoded JPEG frames via the Google GenAI...
examples/gemini-api-get-started-with-live-using-the-google-genai-sdk-gemini-api-l-9.textA Python code snippet demonstrating how to asynchronously iterate through and process incoming audio data from a Gemini Live API session using the Google GenAI SDK.Exact payloads, commands, or snippets shown in A Python code snippet demonstrating how to asynchronously iterate through and process incoming audio data from a Gemi...
examples/gemini-api-get-started-with-live-using-the-google-genai-sdk-gemini-live-.textA JavaScript code snippet demonstrating how to process base64 encoded audio data from the Gemini Live API within an onmessage callback.Exact payloads, commands, or snippets shown in A JavaScript code snippet demonstrating how to process base64 encoded audio data from the Gemini Live API within an o...
examples/gemini-api-get-started-with-live-using-the-google-genai-sdk-gemini-live--2.textA Python code snippet demonstrating how to asynchronously iterate through a Gemini Live API session to receive and print server content and transcriptions.Exact payloads, commands, or snippets shown in A Python code snippet demonstrating how to asynchronously iterate through a Gemini Live API session to receive and pr...
examples/gemini-api-get-started-with-live-using-the-google-genai-sdk-gemini-live--3.textA JavaScript code snippet demonstrating how to handle server content and transcriptions within the onmessage callback of the Gemini Live API.Exact payloads, commands, or snippets shown in A JavaScript code snippet demonstrating how to handle server content and transcriptions within the onmessage callback...
examples/gemini-api-get-started-with-live-using-the-google-genai-sdk-gemini-live--4.textA Python code example demonstrating how to handle tool calls and function responses within an asynchronous Gemini Live API session using the Google GenAI SDK.Exact payloads, commands, or snippets shown in A Python code example demonstrating how to handle tool calls and function responses within an asynchronous Gemini Liv...
examples/gemini-api-get-started-with-live-using-the-google-genai-sdk-gemini-live--5.textA JavaScript code snippet demonstrating how to handle tool calls and send function responses within the onmessage callback of the Gemini Live API.Exact payloads, commands, or snippets shown in A JavaScript code snippet demonstrating how to handle tool calls and send function responses within the onmessage cal...

What This Skill Covers

  • The Gemini Live API allows for real-time, bidirectional interaction with Gemini models, supporting audio, video, and text inputs and native audio outputs. Th...
  • Main sections: Overview, Connecting to the Live API, Python, JavaScript, Sending text.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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/get-started-sdk