Cursor Integration
Anthropic count tokens (Cursor mount)
Cursor mount of POST /anthropic/v1/messages/count_tokens.
post/cursor/v1/messages/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.
Request body
Example request
{
"model": "claude-3-opus-20240229"
}Response
Successful response
object required
Changes
No recorded changes to this operation across all 1 revision of this API.