UnoRouter Perf Metrics API

The PerfMetrics API from UnoRouter, for perfmetrics.

GitHub OpenAPI

Operations 2

GET /api/perf-metrics Get Perf Metrics #
GET /api/perf-metrics/summary Get Perf Metrics Summary #

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/unorouter-com:unorouter-com-perfmetrics-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

unorouter-com-perfmetrics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: ' '
  title: New Perf Metrics API
  version: 0.0.1
tags:
- name: PerfMetrics
paths:
  /api/perf-metrics:
    get:
      operationId: getPerfMetrics
      parameters:
      - description: Model name (required)
        in: query
        name: model
        schema:
          type: string
      - description: Optional group filter
        in: query
        name: group
        schema:
          type: string
      - description: Lookback window in hours (default 24, max 720)
        in: query
        name: hours
        schema:
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_perf_metrics.QueryResult'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_perf_metrics.QueryResult'
          description: OK
      security:
      - {}
      summary: Get Perf Metrics
      tags:
      - PerfMetrics
  /api/perf-metrics/summary:
    get:
      operationId: getPerfMetricsSummary
      parameters:
      - description: Lookback window in hours (default 24, max 720)
        in: query
        name: hours
        schema:
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_perf_metrics.SummaryAllResult'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_perf_metrics.SummaryAllResult'
          description: OK
      security:
      - {}
      summary: Get Perf Metrics Summary
      tags:
      - PerfMetrics
components:
  schemas:
    GroupResult:
      properties:
        avg_latency_ms:
          format: int64
          type: integer
        avg_tps:
          format: double
          type: number
        avg_ttft_ms:
          format: int64
          type: integer
        cache_hit_percent:
          format: double
          nullable: true
          type: number
        group:
          type: string
        series:
          items:
            $ref: '#/components/schemas/BucketPoint'
          type:
          - array
          - 'null'
        success_rate:
          format: double
          type: number
        uptime_percent:
          format: double
          nullable: true
          type: number
      required:
      - avg_latency_ms
      - avg_tps
      - avg_ttft_ms
      - group
      - series
      - success_rate
      type: object
    Response_perf_metrics.SummaryAllResult:
      description: Response_perf_metrics.SummaryAllResult schema
      properties:
        data:
          $ref: '#/components/schemas/SummaryAllResult'
        message:
          type: string
        success:
          type: boolean
      required:
      - data
      - message
      - success
      type: object
    SuccessRatePoint:
      properties:
        success_rate:
          format: double
          type: number
        ts:
          format: int64
          type: integer
      required:
      - success_rate
      - ts
      type: object
    Response_perf_metrics.QueryResult:
      description: Response_perf_metrics.QueryResult schema
      properties:
        data:
          $ref: '#/components/schemas/QueryResult'
        message:
          type: string
        success:
          type: boolean
      required:
      - data
      - message
      - success
      type: object
    BucketPoint:
      properties:
        avg_latency_ms:
          format: int64
          type: integer
        avg_tps:
          format: double
          type: number
        avg_ttft_ms:
          format: int64
          type: integer
        success_rate:
          format: double
          type: number
        ts:
          format: int64
          type: integer
      required:
      - avg_latency_ms
      - avg_tps
      - avg_ttft_ms
      - success_rate
      - ts
      type: object
    Summary:
      properties:
        avg_latency_ms:
          format: int64
          type: integer
        avg_tps:
          format: double
          type: number
        success_rate:
          format: double
          type: number
      required:
      - avg_latency_ms
      - avg_tps
      - success_rate
      type: object
    ModelSummary:
      properties:
        avg_latency_ms:
          format: int64
          type: integer
        avg_tps:
          format: double
          type: number
        avg_ttft_ms:
          format: int64
          type: integer
        model_name:
          type: string
        recent_success_rates:
          items:
            format: double
            type: number
          type:
          - array
          - 'null'
        recent_success_series:
          items:
            $ref: '#/components/schemas/SuccessRatePoint'
          type:
          - array
          - 'null'
        request_count:
          format: int64
          type: integer
        success_rate:
          format: double
          type: number
      required:
      - avg_latency_ms
      - avg_tps
      - avg_ttft_ms
      - model_name
      - request_count
      - success_rate
      type: object
    QueryResult:
      properties:
        groups:
          items:
            $ref: '#/components/schemas/GroupResult'
          type:
          - array
          - 'null'
        model_name:
          type: string
        series:
          items:
            $ref: '#/components/schemas/BucketPoint'
          type:
          - array
          - 'null'
        series_schema:
          type: string
        summary:
          $ref: '#/components/schemas/Summary'
        window_end:
          format: int64
          type: integer
        window_start:
          format: int64
          type: integer
      required:
      - groups
      - model_name
      - series
      - series_schema
      - summary
      - window_end
      - window_start
      type: object
    SummaryAllResult:
      properties:
        models:
          items:
            $ref: '#/components/schemas/ModelSummary'
          type:
          - array
          - 'null'
        recent_success_series:
          additionalProperties:
            items:
              $ref: '#/components/schemas/SuccessRatePoint'
            type: array
          type:
          - object
          - 'null'
        summary:
          $ref: '#/components/schemas/Summary'
        window_end:
          format: int64
          type: integer
        window_start:
          format: int64
          type: integer
      required:
      - models
      - summary
      - window_end
      - window_start
      type: object
  securitySchemes:
    accessToken:
      description: System access token for dashboard API routes. Must be paired with New-Api-User header.
      in: header
      name: Authorization
      type: apiKey
    anthropicApiKey:
      description: Anthropic-style API key. Used by /v1/messages and /v1/models.
      in: header
      name: x-api-key
      type: apiKey
    bearerAuth:
      description: API token (sk-...). Used by relay routes (/v1/*) and token-based query endpoints.
      scheme: bearer
      type: http
    newApiUser:
      description: User ID header. Required together with the access token or session cookie for dashboard API routes.
      in: header
      name: New-Api-User
      type: apiKey
    sessionAuth:
      description: Session cookie from /api/user/login. Used by dashboard routes as an alternative to access token.
      in: cookie
      name: session
      type: apiKey