Skip to main content
POST
/
v1
/
responses
/
input_tokens
Count response input tokens
curl --request POST \
  --url https://gomodel.example.com/v1/responses/input_tokens \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": "<string>",
  "instructions": "<string>",
  "metadata": {},
  "model": "<string>",
  "provider": "<string>",
  "reasoning": {
    "effort": "<string>"
  }
}
'
{
  "input_tokens": 123,
  "object": "<string>"
}

Authorizations

Authorization
string
header
required

Body

application/json

Response input token request

input

string or []ResponsesInputElement — see docs for array form

instructions
string
metadata
object
model
string
provider
string

Gateway routing hint; stripped before upstream execution.

reasoning
object

Response

OK

input_tokens
integer
object
string