StremAI Dashboard API

The dashboard API from StremAI — 5 operation(s) for dashboard.

GitHub OpenAPI

Operations 6

GET /api/dashboard/stats Get Stats #
GET /api/dashboard/keys List Api Keys #
POST /api/dashboard/keys Create Api Key #
DELETE /api/dashboard/keys/{key_id} Revoke Api Key #
GET /api/dashboard/requests Get Recent Requests #
GET /api/dashboard/savings Get Savings Breakdown #

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/stremai-com:stremai-com-dashboard-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

stremai-com-dashboard-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Strem AI Dashboard API
  description: Your AI gets smarter. Your bill gets smaller.
  version: 0.1.0
tags:
- name: Dashboard
paths:
  /api/dashboard/stats:
    get:
      tags:
      - Dashboard
      summary: Get Stats
      description: Get usage stats for the current tenant.
      operationId: get_stats_api_dashboard_stats_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatsResponse'
  /api/dashboard/keys:
    get:
      tags:
      - Dashboard
      summary: List Api Keys
      description: List all API keys for the current tenant.
      operationId: list_api_keys_api_dashboard_keys_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/ApiKeyResponse'
                type: array
                title: Response List Api Keys Api Dashboard Keys Get
    post:
      tags:
      - Dashboard
      summary: Create Api Key
      description: Create a new API key.
      operationId: create_api_key_api_dashboard_keys_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateApiKeyRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateApiKeyResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/dashboard/keys/{key_id}:
    delete:
      tags:
      - Dashboard
      summary: Revoke Api Key
      description: Revoke an API key.
      operationId: revoke_api_key_api_dashboard_keys__key_id__delete
      parameters:
      - name: key_id
        in: path
        required: true
        schema:
          type: string
          title: Key Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/dashboard/requests:
    get:
      tags:
      - Dashboard
      summary: Get Recent Requests
      description: Get recent request logs.
      operationId: get_recent_requests_api_dashboard_requests_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/RequestLogResponse'
                title: Response Get Recent Requests Api Dashboard Requests Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/dashboard/savings:
    get:
      tags:
      - Dashboard
      summary: Get Savings Breakdown
      description: Detailed savings analytics for the current tenant.
      operationId: get_savings_breakdown_api_dashboard_savings_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SavingsBreakdownResponse'
components:
  schemas:
    OptimizationBreakdown:
      properties:
        optimization_type:
          type: string
          title: Optimization Type
        total_savings_usd:
          type: number
          title: Total Savings Usd
        request_count:
          type: integer
          title: Request Count
      type: object
      required:
      - optimization_type
      - total_savings_usd
      - request_count
      title: OptimizationBreakdown
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    SavingsBreakdownResponse:
      properties:
        total_savings_usd:
          type: number
          title: Total Savings Usd
        total_requests:
          type: integer
          title: Total Requests
        savings_rate:
          type: number
          title: Savings Rate
        avg_savings_per_request:
          type: number
          title: Avg Savings Per Request
        daily_savings:
          items:
            $ref: '#/components/schemas/DailySaving'
          type: array
          title: Daily Savings
        by_optimization_type:
          items:
            $ref: '#/components/schemas/OptimizationBreakdown'
          type: array
          title: By Optimization Type
        top_models_saved_on:
          items:
            $ref: '#/components/schemas/ModelSavings'
          type: array
          title: Top Models Saved On
      type: object
      required:
      - total_savings_usd
      - total_requests
      - savings_rate
      - avg_savings_per_request
      - daily_savings
      - by_optimization_type
      - top_models_saved_on
      title: SavingsBreakdownResponse
    ApiKeyResponse:
      properties:
        id:
          type: string
          title: Id
        key_prefix:
          type: string
          title: Key Prefix
        name:
          type: string
          title: Name
        is_active:
          type: boolean
          title: Is Active
        created_at:
          type: string
          title: Created At
        last_used_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Last Used At
      type: object
      required:
      - id
      - key_prefix
      - name
      - is_active
      - created_at
      - last_used_at
      title: ApiKeyResponse
    DailySaving:
      properties:
        date:
          type: string
          title: Date
        savings_usd:
          type: number
          title: Savings Usd
        request_count:
          type: integer
          title: Request Count
      type: object
      required:
      - date
      - savings_usd
      - request_count
      title: DailySaving
    StatsResponse:
      properties:
        total_requests:
          type: integer
          title: Total Requests
        total_tokens:
          type: integer
          title: Total Tokens
        total_cost_usd:
          type: number
          title: Total Cost Usd
        total_savings_usd:
          type: number
          title: Total Savings Usd
        savings_percent:
          type: number
          title: Savings Percent
        requests_today:
          type: integer
          title: Requests Today
        cost_today:
          type: number
          title: Cost Today
        savings_today:
          type: number
          title: Savings Today
        tier:
          type: string
          title: Tier
      type: object
      required:
      - total_requests
      - total_tokens
      - total_cost_usd
      - total_savings_usd
      - savings_percent
      - requests_today
      - cost_today
      - savings_today
      - tier
      title: StatsResponse
    CreateApiKeyResponse:
      properties:
        id:
          type: string
          title: Id
        key:
          type: string
          title: Key
        name:
          type: string
          title: Name
        message:
          type: string
          title: Message
      type: object
      required:
      - id
      - key
      - name
      - message
      title: CreateApiKeyResponse
    CreateApiKeyRequest:
      properties:
        name:
          type: string
          title: Name
          default: New Key
      type: object
      title: CreateApiKeyRequest
    RequestLogResponse:
      properties:
        id:
          type: string
          title: Id
        request_model:
          type: string
          title: Request Model
        routed_model:
          type: string
          title: Routed Model
        was_optimized:
          type: boolean
          title: Was Optimized
        used_micro_model:
          type: boolean
          title: Used Micro Model
        prompt_tokens:
          type: integer
          title: Prompt Tokens
        completion_tokens:
          type: integer
          title: Completion Tokens
        original_cost_usd:
          type: number
          title: Original Cost Usd
        charged_cost_usd:
          type: number
          title: Charged Cost Usd
        savings_usd:
          type: number
          title: Savings Usd
        latency_ms:
          type: integer
          title: Latency Ms
        task_hint:
          anyOf:
          - type: string
          - type: 'null'
          title: Task Hint
        created_at:
          type: string
          title: Created At
      type: object
      required:
      - id
      - request_model
      - routed_model
      - was_optimized
      - used_micro_model
      - prompt_tokens
      - completion_tokens
      - original_cost_usd
      - charged_cost_usd
      - savings_usd
      - latency_ms
      - task_hint
      - created_at
      title: RequestLogResponse
    ModelSavings:
      properties:
        request_model:
          type: string
          title: Request Model
        total_savings_usd:
          type: number
          title: Total Savings Usd
        request_count:
          type: integer
          title: Request Count
        avg_savings_per_request:
          type: number
          title: Avg Savings Per Request
      type: object
      required:
      - request_model
      - total_savings_usd
      - request_count
      - avg_savings_per_request
      title: ModelSavings
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError