apihubs-ru · Schema

StatsResponseDto

APIAIMarketplaceRussianSaaS

Properties

Name Type Description
from string Фактически использованное начальное время периода (ISO 8601)
to string Фактически использованное конечное время периода (ISO 8601)
totals object
byDay array Расходы в день, по возрастанию, пропуски заполнены нулями
byModel array Расходы по модели, сначала самые дорогие
byType array Расход на тип генерации
View JSON Schema on GitHub

JSON Schema

apihubs-ru-stats-response-dto-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/apihubs-ru/json-schema/apihubs-ru-stats-response-dto-schema.json",
  "title": "StatsResponseDto",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apihubs-ru-openapi.json#/components/schemas/StatsResponseDto",
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "description": "Фактически использованное начальное время периода (ISO 8601)"
    },
    "to": {
      "type": "string",
      "description": "Фактически использованное конечное время периода (ISO 8601)"
    },
    "totals": {
      "$ref": "#/$defs/StatsTotalsDto"
    },
    "byDay": {
      "description": "Расходы в день, по возрастанию, пропуски заполнены нулями",
      "type": "array",
      "items": {
        "$ref": "#/$defs/StatsBucketDto"
      }
    },
    "byModel": {
      "description": "Расходы по модели, сначала самые дорогие",
      "type": "array",
      "items": {
        "$ref": "#/$defs/StatsBucketDto"
      }
    },
    "byType": {
      "description": "Расход на тип генерации",
      "type": "array",
      "items": {
        "$ref": "#/$defs/StatsBucketDto"
      }
    }
  },
  "required": [
    "from",
    "to",
    "totals",
    "byDay",
    "byModel",
    "byType"
  ],
  "$defs": {
    "StatsBucketDto": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "Ключ корзины — дата (ГГГГ-ММ-ДД) или идентификатор модели"
        },
        "count": {
          "type": "number",
          "description": "Количество генераций в корзине"
        },
        "cost": {
          "type": "number",
          "description": "Потраченная сумма в корзине, в центах; исключая возвращенные за неудачные попытки"
        }
      },
      "required": [
        "key",
        "count",
        "cost"
      ]
    },
    "StatsTotalsDto": {
      "type": "object",
      "properties": {
        "balance": {
          "type": "number",
          "description": "Текущий баланс, в центах"
        },
        "spent": {
          "type": "number",
          "description": "Потрачено в выбранный период, в центах. Неудачные генерации возвращаются, поэтому они здесь не учитываются, хотя считаются запросами"
        },
        "spentAllTime": {
          "type": "number",
          "description": "Потрачено с момента регистрации, в центах; неудачные генерации, за которые был возврат, исключены"
        },
        "requests": {
          "type": "number",
          "description": "Генерации, созданные в течение периода"
        },
        "succeeded": {
          "type": "number",
          "description": "Генерации успешно завершены"
        },
        "failed": {
          "type": "number",
          "description": "Генерации, завершившиеся с ошибкой"
        },
        "inProgress": {
          "type": "number",
          "description": "Генерации, которые все еще выполняются"
        },
        "llmRequests": {
          "type": "number",
          "description": "Запросы чата LLM за период"
        },
        "llmTokens": {
          "type": "number",
          "description": "Потребленные токены LLM за период"
        }
      },
      "required": [
        "balance",
        "spent",
        "spentAllTime",
        "requests",
        "succeeded",
        "failed",
        "inProgress",
        "llmRequests",
        "llmTokens"
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/apihubs-ru-stats-response-dto"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.