GeminiCountTokens

API Endpoint call for Gemini backend server, POST Count Tokens URI

Table 1. Supported parameters
Parameter Required Data type Details
apiKeySecret Yes string The name of a Kubernetes Secret which holds the Gemini API Key. The Secret must contain data literal "geminiApiKey" whose value is the API Key to use for authentication.
inputMessage No string or null The name of a message that will be used to form the request. Defaults to "request"
model Yes string Model ID to use in the request
outputMessage No string or null The name of a message that will be used to store the response data from the request. Defaults to "response"
tlsClientProfile Yes string The name of the TlsClientProfile resource to use when connecting to AI endpoint