---
title: "Changes to Anthropic Messages Count Tokens"
method: POST
path: "/anthropic/v1/messages/count_tokens"
---

# Changes to Anthropic Messages Count Tokens

`POST /anthropic/v1/messages/count_tokens`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 3 of 49 revisions.

- **2026-09-10** `f1c865cab90d`: 1 info
- **2026-08-07** `2df28210837a`: 4 info
- **2026-07-13** `610da191cbe7`: 1 warning, 3 info

## Changes

- **2026-09-10** `f1c865cab90d`: 1 info
  - added the new optional `header` request parameter `x-deepinfra-service-tier`
- **2026-08-07** `2df28210837a`: 4 info
  - added the new optional request property `thinking/anyOf[subschema #1: AnthropicThinkingConfig]/budget_tokens`
  - added the new optional request property `thinking/anyOf[subschema #1: AnthropicThinkingConfig]/type`
  - the `enabled` request property default value `true` was removed
  - request property `thinking/anyOf[subschema #1: AnthropicThinkingConfig]/enabled` list-of-types was widened by adding types `null` to media type `application/json`
- **2026-07-13** `610da191cbe7`: 1 warning, 3 info
  - deleted the `header` request parameter `authorization`
  - the endpoint scheme security `HTTPBearer` was added to the API
  - api tag `Chat Completions` added
  - added the new optional `header` request parameter `xi-api-key`

---

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