Skip to content
GET/models

List supported models and their prices

Returns every model id accepted by the count endpoint, with its context window and per-million-token input and output prices in USD.

$0.0002 per call300 req/minFree allowance applies

Request

curl -X GET "https://www.twotic.dev/v1/token-counter/models" \
  -H "Authorization: Bearer $TWOTIC_KEY"

Response

200The supported models.
{
  "count": 11,
  "models": [
    {
      "id": "claude-sonnet-4",
      "contextWindow": 200000,
      "inputPerMillionUsd": 3,
      "outputPerMillionUsd": 15
    },
    {
      "id": "gpt-4o-mini",
      "contextWindow": 128000,
      "inputPerMillionUsd": 0.15,
      "outputPerMillionUsd": 0.6
    }
  ],
  "pricesUpdated": "2026-08-01"
}

As an agent tool

Connect https://www.twotic.dev/api/mcp/token-counter and this endpoint is exposed as the tool token-counter_models.

List every model this API can price, with context-window size and per-million-token input and output cost in USD. Choose this to discover valid model ids before calling the count tool, or to compare list prices across providers. Takes no input.