liveapi-service

liveapi-service is a skill for Claude Code, Codex from GoogleCloudPlatform/vertex-ai-samples. It costs 80 tokens per session (1,058 once invoked), scanned A, original, Apache-2.0.

A generator for a client service that connects an application to Gemini LiveAPI over a WebSocket. The generated service handles messages, session setup and resumption, and refreshing bearer tokens used for authentication.

In plain words
What is it for?
Use it to create a LiveAPI client in the programming language you choose. It copies and checks the protocol references, then generates the service and any needed reproducible environment setup.
Why use it?
It gives developers a starting implementation for the connection and session details that are easy to get wrong when integrating a live model API.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create a LiveAPI client in the programming language you choose. It copies and checks the protocol references, then generates the service and any needed reproducible environment setup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/googlecloudplatform/vertex-ai-samples/live_api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add GoogleCloudPlatform/vertex-ai-samples --skill live_api
Clone the repo
git clone --depth 1 https://github.com/GoogleCloudPlatform/vertex-ai-samples

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for liveapi-service

README.md
[![agentmods](https://agentmods.dev/badge/skills/googlecloudplatform/vertex-ai-samples/live_api/github.svg)](https://agentmods.dev/skills/googlecloudplatform/vertex-ai-samples/live_api)
Your own site
<a href="https://agentmods.dev/skills/googlecloudplatform/vertex-ai-samples/live_api"><img src="https://agentmods.dev/badge/skills/googlecloudplatform/vertex-ai-samples/live_api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for liveapi-service

Your own site · 80×15
<a href="https://agentmods.dev/skills/googlecloudplatform/vertex-ai-samples/live_api"><img src="https://agentmods.dev/badge/skills/googlecloudplatform/vertex-ai-samples/live_api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,058 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00080 $0.01058
Opus 5.5 $0.00032 $0.00423
Sonnet 5.5 $0.00016 $0.00212
Haiku 4.5 $0.00008 $0.00106

Measured 1mo ago against content hash a7e661314ef0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

liveapi-service scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/genai-sdk/references/live_api/SKILL.md · 121 lines

How it starts

The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LiveAPI Service Skill

Provided files in references:

  • client_server_messages.md: The public document of protos used for LiveAPI.
  • client_server_messages.proto: The proto generated based on the client_server_messages.md.
  • session_manager.md: Describes how to correctly handle the sessions.

What you should do:

Step 1:

Copy existing reference files to user provided destination folder

Step 2:

Examine the public documents mentioned in client_server_messages.md. Checking if there are any discrepancies between the public documents and the created markdown / proto as client_server_messages. If yes, update these file in the destination folder

Step 3:

Implement a class in the user wanted coding language that work as a LiveAPI service, it should import the existing proto file, build the connection to the LiveAPI endpoint, expose functions to user and let user able to send and receive data to / from the model.

If a language need a specific environment, such as python, you should create the environment in the output folder and provide a bash file, by executing which, the user can recreate the correct environment, do not use or modify the existing system environment.

Wanted behavior:

The user will provide the following information to the class for initialization:

  • project_id
  • location
  • model_id
  • config, should be a ClientMessage with setup field.
  • use_gemini_enterprise, should be a boolean telling if using Gemini Enterprise or not
  • api_key, if not using Gemini Enterprise, an api_key should be provided.

If using Gemini Enterprise, you should get a bearer token, refresh it when needed, and send it with each websocket connection (including session resumption).

The class should expose the following functions to the user:

  • [async] send_realtime_data(data): allow the user to send realtime_data to the model. The data should be a ClientMessage in the proto file.
  • [async] send_client_content(data): allow the user to send non_realtime data to the model, allow the user to add context. The data should be a ClientMessage in the proto file.
  • [async] receive(): Allow the user to receive data from the model. The data received should be a ServerMessage in the proto file.

Step 4:

Once the code implemented, you should implement a test file, initialize the connection and try to send text, audio, video data and receive the response.

Ask the user for necessary information.

Step 5:

You should finally provide a markdown file with name how_to_run.md, describe how to correctly use the class you just created. You should provide full example about how to correctly build clientmessage for all kinds of support modalities and how to send them. Also you should describe how to correctly fetch data from the model.

Step 6:

You should create scripts to deploy your implementation as a service, it should contains both frontend UI and backend service [You can use whatever coding language you want]. In these service, the user can use the frontend UI to test your implementation, it should allow the user to:

  • Start new connection / close current connection.
  • Select models to use.
  • Select input sources (audio or / and video [camera or screenshot]) and streaming data to model.
  • Send text message to model.
  • Heard the audio sound from model and see the model and user transcription and conversation history.

Attention

The service should reuse the ServerMessage and ClientMessage defined in the proto for sending and receiving messages.

While implementing the audio / transcription playback logic, please follow the instruction in https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/live-api/best-practices.

Make sure you correctly handle the interrupt signal from ServerMessage, which should:

  • You'll receive audio and transcription interleaved. The played audio and corresponding transcription should be time aligned.
  • Immediately stop the playing for audio and transcription.
  • Clear the playback buffer to dump unsent audio / transcription.
  • Start new chat bubbles for model / user.

Read the full file on GitHub · 121 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 121 lines · 80 tokens per session scan A a7e661314ef0

Subscribe to this mod's changes

liveapi-service is a skill published in the GitHub repository GoogleCloudPlatform/vertex-ai-samples (790 stars, last pushed 3d ago), licensed Apache-2.0. It adds 80 tokens to every session and 1,058 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

agentfield

Design and ship a multi-agent system on AgentField. Use when the user asks to build, scaffold, design, or run an agent, reasoner network, multi-agent backend, or 'an agent that does X' — whenever the work would otherwise be a single LLM call or a flat LangChain/CrewAI/AutoGen chain. The skill produces composite…

Agent-Field/agentfield · 127 tokens

bun-file-io

Use this when you are working on file operations like reading, writing, scanning, or deleting files. It summarizes the preferred file APIs and patterns used in this repo. It also notes when to use filesystem helpers for directories.

synthetic-sciences/openscience · 49 tokens

protocolsio-integration

Integration with protocols.io API for managing scientific protocols. This skill should be used when working with protocols.io to search, create, update, or publish protocols; manage protocol steps and materials; handle discussions and comments; organize workspaces; upload and manage files; or integrate protocols.io…

synthetic-sciences/openscience · 85 tokens

byted-supabase

A command-line and chat-based operations guide for Volcengine’s Supabase-compatible backend platform, including databases, authentication, storage, realtime data, server functions, and hosting. It is a Volcengine service, not the official open-source Supabase product.

bytedance/agentkit-samples · 60 tokens

volcengine-sdk-generator

Generate complete, runnable Volcengine SDK code and provide SDK configuration guidance. Supports Go, Python, PHP, Java, and Node.js. Trigger this skill whenever the user wants to call a Volcengine API, generate Volcengine SDK code, or describes a cloud operation on Volcengine (e.g., "list ECS instances", "create a VPC…

bytedance/agentkit-samples · 256 tokens

volcengine-api

Query and answer questions about Volcengine API specifications. Trigger this skill whenever a user asks about Volcengine API parameters, error codes, request methods, enum values, required fields, response structures, pagination, parameter dependencies, or API comparisons — even if they don't explicitly say "API".…

bytedance/agentkit-samples · 203 tokens