responses_input_tokens
OpenAI Responses input token count — OpenAI-compatible POST /v1/responses/input_tokens: send the same body you would send to /v1/responses (model, input as a string or message items with input_text / input_image / input_file parts, instructions, tools, text.format schema) and get {object:'response.input_tokens', input_tokens} plus a breakdown, before paying for a model call. Offline estimate, no model call, no data stored. Price: $0.001 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>",
"input": "<input>"
},
"name": "responses_input_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Tell me a three sentence bedtime story about a unicorn. | |
| model | Yes | gpt-4.1 |