跳转到内容
EN

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.

签名

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

请求体

必填内容类型说明
是application/json

响应

状态码内容类型说明
200application/jsonNative Responses API input token count
400application/jsonUnsupported Idempotency-Key or invalid native request.