InvokeModel or Converse request.
Using Count Tokens with Portkey
Portkey supports Bedrock’s CountTokens endpoint through the Anthropic-compatible format, allowing you to use the same API signature across Bedrock, Vertex AI, and Anthropic providers.Use Cases
- Estimate costs before sending inference requests
- Optimize prompts to fit within token limits
- Plan for token usage in your applications
Related Documentation
Portkey is now PRISMA AIRS AI Gateway. See it in action.
Contact Us

