Changes to Count tokens in a Message

POST /v1/messages/count_tokens

Every recorded change to this endpoint, newest first. Back to the operation

Changed in 22 of the 68 revisions of this API.123142

  1. d1d189d791d121
  2. 67ee007cda1c26
  3. e9d8152420c311
  4. 6e9020ec2b4127
  5. 538e9bd0db771
  6. a97790bd7f1811
  7. 7caa9a75ddbc1
  8. 4465f98f96c11
  9. 9445a445fbbe1
  10. 063bcb9d6cf9117
  11. 00259327305f11
  12. 546c704d347b12
  13. f9d488f9290d5
  14. a4186730f56c1
  15. 6edc6519fd321
  16. e0696f59ae0712
  17. 69486316563e11
  18. 7fce94a3c9f714
  19. 29a6b7ba51941
  20. 5387c517ad6a15
  21. 6924f88807cb1
  22. 53a0f3638030135

What changed

    • removed the request property ///

      request-property-removed

    • removed the request property ///

      request-property-removed

    • added subschema #2 subschema #3 to the request property anyOf list

      request-property-any-of-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the new optional request property ///////////////

      new-optional-request-property

    • added the new optional request property //////

      new-optional-request-property

    • added the new optional request property ////////////

      new-optional-request-property

    • added the new optional request property //////

      new-optional-request-property

    • added the new optional request property //////////

      new-optional-request-property

    • added the new optional request property ////////////////

      new-optional-request-property

    • added the new optional request property //////

      new-optional-request-property

    • added browser_state discriminator mapping keys to the //////// request property

      request-property-discriminator-mapping-added

    • added file discriminator mapping keys to the ///////// request property

      request-property-discriminator-mapping-added

    • added file discriminator mapping keys to the /////////////// request property

      request-property-discriminator-mapping-added

    • added file discriminator mapping keys to the ////// request property

      request-property-discriminator-mapping-added

    • added file discriminator mapping keys to the ////// request property

      request-property-discriminator-mapping-added

    • added file discriminator mapping keys to the //////////// request property

      request-property-discriminator-mapping-added

    • added file discriminator mapping keys to the ////////// request property

      request-property-discriminator-mapping-added

    • added file discriminator mapping keys to the ////////// request property

      request-property-discriminator-mapping-added

    • added file discriminator mapping keys to the //////////////// request property

      request-property-discriminator-mapping-added

    • added to the / request property oneOf list

      request-property-one-of-added

    • added to the ///////// request property oneOf list

      request-property-one-of-added

    • added to the ////// request property oneOf list

      request-property-one-of-added

    • added to the ////////// request property oneOf list

      request-property-one-of-added

    • added to the /////////////// request property oneOf list

      request-property-one-of-added

    • added to the ////// request property oneOf list

      request-property-one-of-added

    • added to the //////////// request property oneOf list

      request-property-one-of-added

    • added to the ////////// request property oneOf list

      request-property-one-of-added

    • added to the //////////////// request property oneOf list

      request-property-one-of-added

    • added to the //////// request property oneOf list

      request-property-one-of-added

  • e9d8152420c311See the full diff
    • removed from the //// request property oneOf list

      request-property-one-of-removed

    • removed mid_conv_system discriminator mapping keys from the //// request property

      request-property-discriminator-mapping-deleted

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the //////////////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the //////////////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the //////////////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the ////////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the ////////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the ////////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the /////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the /////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the /////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the ///////////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the ///////////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the ///////////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the ///////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the ///////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the ///////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the /////////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the /////////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the /////////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the ///////////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the ///////////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the ///////////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the ///////////////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the ///////////////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the ///////////////////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the //////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the //////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • the //////// request property's maxLength was increased from 255 to 500

      request-property-max-length-increased

    • removed subschema #17 subschema #18 from the request property anyOf list

      request-property-any-of-removed

  • a97790bd7f1811See the full diff
    • removed subschema #5 subschema #6 subschema #8 subschema #12 subschema #13 subschema #16 subschema #17 from the request property anyOf list

      request-property-any-of-removed

    • added subschema #5 subschema #6 subschema #7 subschema #9 subschema #13 subschema #14 subschema #17 subschema #18 to the request property anyOf list

      request-property-any-of-added

    • added subschema #2 to the request property anyOf list

      request-property-any-of-added

    • added to the / request property oneOf list

      request-property-one-of-added

    • added the new optional header request parameter anthropic-user-profile-id

      new-optional-request-parameter

  • 063bcb9d6cf9117See the full diff
    • removed subschema #17 subschema #18 subschema #19 subschema #20 subschema #21 from the request property anyOf list

      request-property-any-of-removed

    • added the new code_execution_20260521 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260521 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260521 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260521 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260521 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260521 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260521 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260521 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260521 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260521 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260521 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260521 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260521 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260521 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260521 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260521 enum value to the request property ////

      request-property-enum-value-added

    • added to the / request property oneOf list

      request-property-one-of-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • removed subschema #4 from the request property anyOf list

      request-property-any-of-removed

    • added subschema #2 subschema #3 subschema #6 to the request property anyOf list

      request-property-any-of-added

    • removed subschema #13 subschema #14 from the request property anyOf list

      request-property-any-of-removed

    • added the new optional request property ////////

      new-optional-request-property

    • added subschema #13 subschema #14 to the request property anyOf list

      request-property-any-of-added

    • added subschema #2 to the request property anyOf list

      request-property-any-of-added

    • added mid_conv_system discriminator mapping keys to the //// request property

      request-property-discriminator-mapping-added

    • added the new system enum value to the request property //

      request-property-enum-value-added

    • added the new url_not_in_prior_context enum value to the request property ////////

      request-property-enum-value-added

    • added to the //// request property oneOf list

      request-property-one-of-added

    • the ///// request property type changed from unknown to no type

      request-property-type-changed

    This revision also has 22 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the ///// request property type changed from no type to unknown

      request-property-type-changed

  • e0696f59ae0712See the full diff
    • removed subschema #13 subschema #14 subschema #15 subschema #16 from the request property anyOf list

      request-property-any-of-removed

    • added subschema #2 subschema #14 subschema #15 subschema #16 subschema #17 to the request property anyOf list

      request-property-any-of-added

    • added the new xhigh enum value to the request property //

      request-property-enum-value-added

    • removed subschema #2 from the request property anyOf list

      request-property-any-of-removed

    • added subschema #2 subschema #3 to the request property anyOf list

      request-property-any-of-added

  • 7fce94a3c9f714See the full diff
    • removed subschema #3 subschema #6 subschema #7 subschema #8 subschema #9 subschema #10 subschema #11 subschema #14 subschema #15 subschema #16 subschema #17 subschema #18 subschema #19 subschema #20 subschema #21 subschema #22 subschema #23 from the request property anyOf list

      request-property-any-of-removed

    • added the new optional request property //

      new-optional-request-property

    • added the new optional request property //

      new-optional-request-property

    • added subschema #3 subschema #4 subschema #5 subschema #8 subschema #9 subschema #10 subschema #11 subschema #12 subschema #13 subschema #16 to the request property anyOf list

      request-property-any-of-added

    • added to the / request property oneOf list

      request-property-one-of-added

    • added the new optional request property

      new-optional-request-property

    • added the new code_execution_20260120 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260120 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260120 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260120 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260120 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260120 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260120 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260120 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260120 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260120 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260120 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260120 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260120 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260120 enum value to the request property ////

      request-property-enum-value-added

    • added the new code_execution_20260120 enum value to the request property ////

      request-property-enum-value-added

    • removed the request property

      request-property-removed

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 53a0f3638030135See the full diff
    • request property ////// was restricted to a list of enum values

      request-property-became-enum

    • added the new optional request property //////

      new-optional-request-property

    • added the new optional request property //////

      new-optional-request-property

    • added the new optional request property //////

      new-optional-request-property

    • added the new optional request property

      new-optional-request-property

    • added the new optional request property ///

      new-optional-request-property

    • added the new optional request property ///

      new-optional-request-property

    • added the new optional request property ///

      new-optional-request-property

    • added the new optional request property ///

      new-optional-request-property

    • added the new optional request property ///

      new-optional-request-property

    • added the new optional request property ///

      new-optional-request-property

    • added the new optional request property ///

      new-optional-request-property

    • added the new optional request property ///

      new-optional-request-property

    • added the new optional request property ///

      new-optional-request-property

    • added the new optional request property ///

      new-optional-request-property

    • added the new optional request property ///

      new-optional-request-property

    • added the new optional request property ///

      new-optional-request-property

    • added the new optional request property ///

      new-optional-request-property

    • added the new optional request property ///

      new-optional-request-property

    • added the new optional request property ///

      new-optional-request-property

    • added the new optional request property ///

      new-optional-request-property

    • added the new optional request property ///

      new-optional-request-property

    • added subschema #3 to the request property anyOf list

      request-property-any-of-added

    • the request property const value web_search was removed

      request-property-const-removed

    • added bash_code_execution_tool_result code_execution_tool_result container_upload text_editor_code_execution_tool_result tool_search_tool_result web_fetch_tool_result discriminator mapping keys to the //// request property

      request-property-discriminator-mapping-added

    • added tool_reference discriminator mapping keys to the //////// request property

      request-property-discriminator-mapping-added

    • added the new bash_code_execution enum value to the request property //////

      request-property-enum-value-added

    • added the new code_execution enum value to the request property //////

      request-property-enum-value-added

    • added the new text_editor_code_execution enum value to the request property //////

      request-property-enum-value-added

    • added the new tool_search_tool_bm25 enum value to the request property //////

      request-property-enum-value-added

    • added the new tool_search_tool_regex enum value to the request property //////

      request-property-enum-value-added

    • added the new web_fetch enum value to the request property //////

      request-property-enum-value-added

    • added the new web_search enum value to the request property //////

      request-property-enum-value-added

    • added to the / request property oneOf list

      request-property-one-of-added

    • added to the //////// request property oneOf list

      request-property-one-of-added

    • added to the //// request property oneOf list

      request-property-one-of-added