Skip to main content
POST
Estimate Input Tokens

Authorizations

Authorization
string
header
required

HTTP: Bearer Auth

  • Security Scheme Type: http
  • HTTP Authorization Scheme: Bearer API_key, used to authenticate your account. View it in Account Management > API Keys

Headers

Content-Type
enum<string>
default:application/json
required

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

Available options:
application/json

Body

application/json
model
string
required

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

Example:

"MiniMax-M3"

input
required

Conversation content. Supports either a simple text or a full conversation history array

instructions
string

System instructions

tools
object[]

Tool list

tool_choice
enum<string>

Tool selection strategy: none means no tool will be called; auto lets the model decide whether to call tools

Available options:
none,
auto
text
object

Output format control

reasoning
object

Reasoning control. For MiniMax-M3, the default is none, which disables reasoning. Set effort to a non-none value (minimal, low, medium, or high) to enable Adaptive Thinking, but this does not tune MiniMax-M3's reasoning depth. For M2.x models, reasoning cannot be disabled.

Response

200 - application/json

Successful response

object
enum<string>
required

Object type, always response.input_tokens

Available options:
response.input_tokens
input_tokens
integer
required

Estimated input token count