Firebase.AI.LiveGenerativeModel

A live, generativeAI model for real-time interaction.

Summary

See theCloud documentation for more details about the low-latency, two-way interactions that use text, audio, and video input, with audio and text output.

Warning: ForFirebaseAI, Live Model is in Public Preview, which means that the feature is not subject to any SLA or deprecation policy and could change in backwards-incompatible ways.

Public functions

ConnectAsync(CancellationToken cancellationToken)
async Task<LiveSession >
Establishes a connection to a live generation service.

Public functions

ConnectAsync

asyncTask<LiveSession>ConnectAsync(CancellationTokencancellationToken)

Establishes a connection to a live generation service.

This function handles the WebSocket connection setup and returns anLiveSession object that can be used to communicate with the service.

Details
Parameters
cancellationToken
The token that can be used to cancel the creation of the session.
Returns
TheLiveSession, once it is established.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-20 UTC.