Anthropic Count Tokens
Stub for Anthropic token-count endpoint.
Claude Code / Claude CLI call this before a real request to pre-size budgets. Upstream (MiniMax) doesn't expose an equivalent, so we return a conservative heuristic: ~4 chars per token across serialized body. This avoids 404 spam in admin dashboard and lets clients keep working.
post/v1/messages/count_tokens
Request
- Base URLhttps://api.nkq.vn (the document declares no server; this is the origin it was published from)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.