---
title: "Responses Input Tokens"
method: POST
path: "/openai/v1/responses/input_tokens"
tags: ["responses"]
---

# Responses Input Tokens

`POST /openai/v1/responses/input_tokens`

## Request

- Base URL: `https://api.sea-lion.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sea-lion.ai/openai/v1/responses/input_tokens`
- Auth: API key in header `x-litellm-api-key`

Count the input tokens of a Responses API request without calling the model.

Follows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/input-tokens

```bash
curl -X POST http://localhost:4000/v1/responses/input_tokens     -H "Content-Type: application/json"     -H "Authorization: Bearer $LITELLM_MASTER_KEY"     -d '{
    "model": "gpt-4o",
    "input": "Hello, how are you?"
}'
```

Returns: `{"object": "response.input_tokens", "input_tokens": <count>}`

## Response `200`

Successful Response

- unknown

## Changes

- **2026-10-21** `f2fb14eab3f5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sea-lion/apis/litellm-api/changes/openai/v1/responses/input_tokens/post.md)

---

[API](https://skmtc.dev/sea-lion/apis/litellm-api.md) · [All operations](https://skmtc.dev/sea-lion/apis/litellm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sea-lion/apis/litellm-api/revisions/f2fb14eab3f5?raw)
