Skip to content
中文

Count Response Input Tokens

Code Mode: praxis.model.responses.inputTokens.create

HTTP: POST /model/v1/responses/input_tokens

Request an input-token count for Responses input. Unlike OpenAI, this operation is unavailable and returns 501; use the documented Messages token-count operation only when its input shape and estimation limits fit your task.

Signature

praxis.model.responses.inputTokens.create(args:{body:{[key:string]:unknown}}):Promise<{[key:string]:unknown}>;

Request body

RequiredContent typesDescription
yesapplication/json

Responses

StatusContent typesDescription
200application/jsonNative Responses API input token count
400application/jsonUnsupported Idempotency-Key or invalid native request.