Skip to content

XaiClientSecret

Namespace: Vercel.AI.Xai

public sealed class XaiClientSecret

Client secret returned by /realtime/client_secrets.

Inheritance: object

View source

public XaiClientSecret(string token, string url, long? expiresAt)

Creates a client secret.

Parameters

Name Type Description
token string
url string
expiresAt long?

View source

public long? ExpiresAt { get; }

Unix expiration, when the response includes one.

Value: long?

View source

public string Token { get; }

Secret token.

Value: string

View source

public string Url { get; }

WebSocket URL. The model is a query parameter.

Value: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product