Responses

Count input tokens

Count the input tokens a Responses request would use, without running the model. Takes the same body as Create a response and counts it with the model tokenizer: exact for text and tools, estimated for images and for models whose tokenizer we do not carry. Free.

post/responses/input_tokens

Request

  • Base URL
    https://api.openscale.so/v1
  • URL
    https://api.openscale.so/v1/responses/input_tokens
  • Auth
    HTTP bearer

Request body

object required

Response

The input token count.

object'response.input_tokens' required
input_tokensinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.