Responses

Estimate Input Tokens

post/v1/responses/input_tokens

Request

Headers

Content-Type'application/json' required

Media type of the request body. Must be set to application/json

Request body

modelstring required

Model name to invoke, e.g. MiniMax-M3.1-Flash

instructionsstring

System instructions

tool_choice'auto'

Tool selection strategy: auto lets the model decide whether to call tools

Example request

{
  "model": "MiniMax-M3.1-Flash"
}

Response

Successful response

object'response.input_tokens' required

Object type, always response.input_tokens

input_tokensinteger required

Estimated input token count

Changes

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