POST Responses

Count the input tokens of a Responses request

OpenAI's input-token counting endpoint. A model served natively on this protocol is counted by its upstream; any other count is an estimate, marked by `x-aiduct-token-count: estimated`. Not billed.

Endpoint

post/v1/responses/input_tokens

Responses

200

`{ object: "response.input_tokens", input_tokens }`

400

Invalid request