Show / Hide Table of Contents

Class GoogleCloudAiplatformV1ModalityTokenCount

Represents a breakdown of token usage by modality. This message is used in CountTokensResponse and GenerateContentResponse.UsageMetadata to provide a detailed view of how many tokens are used by each modality (e.g., text, image, video) in a request. This is particularly useful for multimodal models, allowing you to track and manage token consumption for billing and quota purposes.

Inheritance
object
GoogleCloudAiplatformV1ModalityTokenCount
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Aiplatform.v1.Data
Assembly: Google.Apis.Aiplatform.v1.dll
Syntax
public class GoogleCloudAiplatformV1ModalityTokenCount : IDirectResponseSchema

Properties

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

Modality

The modality that this token count applies to.

Declaration
[JsonProperty("modality")]
public virtual string Modality { get; set; }
Property Value
Type Description
string

TokenCount

The number of tokens counted for this modality.

Declaration
[JsonProperty("tokenCount")]
public virtual int? TokenCount { get; set; }
Property Value
Type Description
int?

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX