К содержимому

Usage ​

Последний полученный расход токенов. Пропущенные отчёты не восстанавливаются из истории. Кешированные входные токены входят во входные, токены рассуждения входят в выходные. Учитывается сохранённая детализация.

Тип: object

ПолеОбязательноеТипОписание и ограничения
input_tokensДаintegerformat: "int64"
minimum: 0
cached_input_tokensДаintegerformat: "int64"
minimum: 0
output_tokensДаintegerformat: "int64"
minimum: 0
reasoning_output_tokensДаintegerformat: "int64"
minimum: 0
total_tokensДаintegerformat: "int64"
minimum: 0

JSON Schema ​

json
{
  "type": "object",
  "description": "Last reported token consumption; missed reports are not reconstructed from history. Cached input and reasoning output are included in input and output respectively. The breakdown is recorded only since collection began; historical usage is not reconstructed.",
  "required": [
    "input_tokens",
    "cached_input_tokens",
    "output_tokens",
    "reasoning_output_tokens",
    "total_tokens"
  ],
  "properties": {
    "input_tokens": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    },
    "cached_input_tokens": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    },
    "output_tokens": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    },
    "reasoning_output_tokens": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    },
    "total_tokens": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    }
  }
}

Все схемы · HTTP API