---
title: "Changes to Count message tokens (Anthropic Messages API)"
method: POST
path: "/v1/messages/count_tokens"
---

# Changes to Count message tokens (Anthropic Messages API)

`POST /v1/messages/count_tokens`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 3 of 53 revisions.

- **2026-08-22** `496ff50bdfef` — 2 info
- **2026-08-14** `e31b805bf9ac` — 2 info
- **2026-05-22** `4473702da82e` — 1 info

## Changes

- **2026-08-22** `496ff50bdfef` — 2 info
  - added the optional property `error/provider` to the response with the `400` status
  - added the optional property `error/provider` to the response with the `401` status
- **2026-08-14** `e31b805bf9ac` — 2 info
  - added the new optional request property `cache_control`
  - added the new optional request property `tools/items/cache_control`
- **2026-05-22** `4473702da82e` — 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/enterpilot/apis/gomodel-api/docs/v1/messages/count_tokens/post.md) · [API](https://skmtc.dev/enterpilot/apis/gomodel-api.md) · [Page](https://skmtc.dev/enterpilot/apis/gomodel-api/changes/v1/messages/count_tokens/post)
