Get input token counts
Returns input token counts of the request.
Returns an object with object set to response.input_tokens and an input_tokens count.
Request body
Response
Success
Example response
{
"object": "response.input_tokens",
"input_tokens": 123
}Changes
Changed in 20 of the 163 revisions of this API.31128
- ○
added the non-success response with the status
response-non-success-status-added
- ○
- ○
api tag
Responsesaddedapi-tag-added
- ○
- ○
request property
////////////deprecatedrequest-property-deprecated
- ○
request property
////////////deprecatedrequest-property-deprecated
- ○
request property
////deprecatedrequest-property-deprecated
- ○
- ○
the
//////request property's maxLength was increased from20971520to104857600request-property-max-length-increased
- ○
- ▲
removed
subschema #1subschema #2from the//////request propertyanyOflistrequest-property-any-of-removed
- ○
added the new optional request property
//////new-optional-request-property
- ○
added the new optional request property
//////new-optional-request-property
- ○
added the new optional request property
//////new-optional-request-property
- ○
added the new optional request property
//////new-optional-request-property
- ○
added
subschema #1to the//////request propertyanyOflistrequest-property-any-of-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the new optional request property
//////new-optional-request-property
- ○
added the new optional request property
//////new-optional-request-property
- ○
- ○
added the new
gpt-image-2.5-flareenum value to the request property/////////////request-property-enum-value-added
- ○
added the new
gpt-image-2.5-flareenum value to the request property/////////////request-property-enum-value-added
- ○
added the new
gpt-image-2.5-flareenum value to the request property/////request-property-enum-value-added
- ○
added the new
gpt-image-2.5-flare-2026-09-08enum value to the request property/////////////request-property-enum-value-added
- ○
added the new
gpt-image-2.5-flare-2026-09-08enum value to the request property/////////////request-property-enum-value-added
- ○
added the new
gpt-image-2.5-flare-2026-09-08enum value to the request property/////request-property-enum-value-added
- ○
added the new
gpt-image-2.5-sunburstenum value to the request property/////////////request-property-enum-value-added
- ○
added the new
gpt-image-2.5-sunburstenum value to the request property/////////////request-property-enum-value-added
- ○
added the new
gpt-image-2.5-sunburstenum value to the request property/////request-property-enum-value-added
- ○
added the new
gpt-image-2.5-sunburst-2026-09-08enum value to the request property/////////////request-property-enum-value-added
- ○
added the new
gpt-image-2.5-sunburst-2026-09-08enum value to the request property/////////////request-property-enum-value-added
- ○
added the new
gpt-image-2.5-sunburst-2026-09-08enum value to the request property/////request-property-enum-value-added
- ○
added the new
maxenum value to the request property////////////request-property-enum-value-added
- ○
added the new
maxenum value to the request property////////////request-property-enum-value-added
- ○
added the new
maxenum value to the request property////request-property-enum-value-added
- ○
added the new
xhighenum value to the request property////////////request-property-enum-value-added
- ○
added the new
xhighenum value to the request property////////////request-property-enum-value-added
- ○
added the new
xhighenum value to the request property////request-property-enum-value-added
- ○
- ○
added the new
incompleteenum value to the request property//////request-property-enum-value-added
- ○
- ○
added the new optional request property
////////////new-optional-request-property
- ○
added the new optional request property
//////////////////new-optional-request-property
- ○
added the new optional request property
///////////////new-optional-request-property
- ○
added the new optional request property
////////////new-optional-request-property
- ○
added the new optional request property
////////////new-optional-request-property
- ○
added the new optional request property
//////////////////new-optional-request-property
- ○
added the new optional request property
///////////////new-optional-request-property
- ○
added the new optional request property
////////////new-optional-request-property
- ○
added the new optional request property
//////new-optional-request-property
- ○
added the new optional request property
//////new-optional-request-property
- ○
added the new optional request property
////new-optional-request-property
- ○
added the new optional request property
//////////new-optional-request-property
- ○
added the new optional request property
///////new-optional-request-property
- ○
added the new optional request property
////new-optional-request-property
- ○
added to the
////request propertyoneOflistrequest-property-one-of-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
- ●
removed the request property
/////////request-property-removed
- ●