google genai endpoints
Google Count Tokens
return {
"totalTokens": 31,
"totalBillableCharacters": 96,
"promptTokensDetails": [
{
"modality": "TEXT",
"tokenCount": 31
}
]
}
post/models/{model_name}:countTokens
Request
- Base URL: https://api.aiaw.app (the document declares no server; this is the origin it was published from)
- URL: https://api.aiaw.app/models/{model_name}:countTokens
- Auth: one of:
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
Path parameters
model_namestring required
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.