Gemini-compatible token counting (drop-in)
Use when: caller uses the Gemini SDK countTokens flow against the Verlon drop-in endpoint
Drop-in replacement for POST .../v1beta/models/{model}:countTokens. Returns an estimated totalTokens. The count is an estimate: gates route to arbitrary providers whose tokenizers differ, so exact provider token counts are only known at completion time.
Authorizations
Verlon API key (newly minted keys are prefixed sk-vrln-; legacy verlon_* and layer_* keys from prior prefix migrations continue to validate). Generated from the dashboard under Settings → API Keys, or via verlon key create in the CLI.
Path Parameters
The model to generate with — a Gemini model id (gemini-2.5-pro), a Verlon gate id, or <gate-id>/<task> to pin a task on an agent gate.
Response
Estimated token count: { totalTokens: number }.

