Skip to content

DotNet Live Api Access Lacks Support for Ephemral token authentication and for specific live models #47

@hariv0

Description

@hariv0

Is your feature request related to a problem? Please describe.

The .NET GenAI library currently lacks support for:

The gemini-2.5-flash-preview-native-audio-dialog model
Ephemeral token authentication for Live API connections
This prevents implementation of secure Live audio-to-audio applications that require temporary authentication credentials instead of persistent API keys.

Describe the solution you'd like

Add support for:

Model Integration: gemini-2.5-flash-preview-native-audio-dialog model in Live API connections
Ephemeral Token Authentication:
CreateAuthTokenAsync() method for token generation
Ephemeral token support in Live.ConnectAsync() method
Token-based WebSocket authentication headers
Describe alternatives you've considered

API Key Authentication: Functional but unsuitable for applications requiring temporary access credentials
OAuth Authentication: Available but not appropriate for ephemeral access patterns
Manual WebSocket Implementation: Bypasses library benefits and increases development complexity

Additional context

Ephemeral token infrastructure exists in codebase (CreateAuthTokenConfig, LiveConnectConstraints) but lacks public API exposure
Current Live API authentication limited to x-goog-api-key and Authorization: Bearer headers
Feature impacts both audio-to-audio and text-to-text Live API implementations

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions