Bedrock Integration
Count tokens (Bedrock format)
Counts tokens for a Converse-style request using AWS Bedrock format. The request body must include input.converse with a complete Converse payload; only Converse-shaped input is supported.
post/bedrock/model/{modelId}/count-tokens
Request
- Base URLhttp://localhost:8080
- Auth
- HTTP bearer
- or HTTP basic
- or API key in header x-bf-vk
- or API key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
modelIdstring required
Bedrock model identifier (e.g. anthropic.claude-3-5-sonnet-20240620-v1:0).
Request body
Response
Successful response
Changes
No recorded changes to this operation across all 1 revision of this API.