Triall Usage API

The Usage API from Triall — 2 operation(s) for usage.

GitHub OpenAPI

Operations 2

GET /api/usage Get Usage #
POST /api/usage/reset Reset Usage #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/triall-ai:triall-ai-usage-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

triall-ai-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Triall Usage API
  description: Iterative AI Reasoning System
  version: 0.1.0
tags:
- name: Usage
paths:
  /api/usage:
    get:
      summary: Get Usage
      description: Get usage statistics for all providers and models.
      operationId: get_usage_api_usage_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageResponse'
      security:
      - HTTPBearer: []
      tags:
      - Usage
  /api/usage/reset:
    post:
      summary: Reset Usage
      description: Reset all usage statistics. Admin only.
      operationId: reset_usage_api_usage_reset_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
      tags:
      - Usage
components:
  schemas:
    ProviderUsage:
      properties:
        provider:
          type: string
          title: Provider
        input_tokens:
          type: integer
          title: Input Tokens
        output_tokens:
          type: integer
          title: Output Tokens
        cost:
          type: number
          title: Cost
        requests:
          type: integer
          title: Requests
      type: object
      required:
      - provider
      - input_tokens
      - output_tokens
      - cost
      - requests
      title: ProviderUsage
      description: Usage statistics for a single provider.
    ModelUsage:
      properties:
        model:
          type: string
          title: Model
        input_tokens:
          type: integer
          title: Input Tokens
        output_tokens:
          type: integer
          title: Output Tokens
        cost:
          type: number
          title: Cost
        requests:
          type: integer
          title: Requests
      type: object
      required:
      - model
      - input_tokens
      - output_tokens
      - cost
      - requests
      title: ModelUsage
      description: Usage statistics for a single model.
    UsageResponse:
      properties:
        providers:
          items:
            $ref: '#/components/schemas/ProviderUsage'
          type: array
          title: Providers
        models:
          items:
            $ref: '#/components/schemas/ModelUsage'
          type: array
          title: Models
        total_input_tokens:
          type: integer
          title: Total Input Tokens
        total_output_tokens:
          type: integer
          title: Total Output Tokens
        total_cost:
          type: number
          title: Total Cost
        last_updated:
          anyOf:
          - type: string
          - type: 'null'
          title: Last Updated
      type: object
      required:
      - providers
      - models
      - total_input_tokens
      - total_output_tokens
      - total_cost
      title: UsageResponse
      description: Complete usage statistics.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer