OpenAIOpenAI API
POST/responses/input_tokens?beta=true
Manage beta Getinputtokencounts.
Contract-preserving POST Endpoint for beta Getinputtokencounts in the OpenAI API. Model and resource-specific values are supplied by the caller at runtime.
All 288 OpenAI Platform REST endpoints from a fixed MIT-licensed official revision, including typed SSE streaming and Realtime call management. Hub provides documentation and an independent SDK/CLI, but never proxies model, account, or usage data; callers connect directly with local API keys.
Request
- operationId
beta_Getinputtokencounts- Server
https://api.openai.com/v1- Authentication
- ApiKeyAuth, AdminApiKeyAuth
Request parameters
openai-beta
headerarray
openai beta value in the OpenAI API contract.
Request body
Content-Type: application/json
Properties: conversationinputinstructionsmodelparallel_tool_callspersonalityprevious_response_idreasoningtexttool_choicetoolstruncation
Responses
200
BetaTokenCountsResourceapplication/json
Successful supplier response.
Properties: input_tokensobject
429
ErrorResponseapplication/json
Supplier response with HTTP status 429.
Properties: error
{
"input_tokens": 123,
"object": "response.input_tokens"
}