Promptster Usage API

Usage statistics and history

GitHub OpenAPI

Operations 2

GET /usage Get usage statistics #
GET /history Get request history #

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/promptster-dev:promptster-dev-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

promptster-dev-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Promptster Usage API
  description: 'API for testing and comparing prompts across multiple AI providers.


    ## Authentication

    All API endpoints require authentication via API key in the Authorization header:

    ```

    Authorization: Bearer pk_live_xxxxxxxx

    ```


    ## Rate Limits

    - Free tier: 2,000 calls/month, 5 requests/minute

    - Builder tier ($9/mo): 5,000 calls/month, 30 requests/minute

    - Scale tier ($29/mo): 25,000 calls/month, 120 requests/minute


    Rate limit and billing headers are included in all responses:

    - `X-RateLimit-Remaining-Calls`: Included calls remaining this period

    - `X-Credit-Balance`: Prepaid credit balance

    - `X-Billing-Source`: How the request was billed (plan_included, credits, overage)

    - `X-RateLimit-Tier`: Your subscription tier'
  version: 1.0.0
  contact:
    name: Promptster Support
    url: https://www.promptster.dev
  license:
    name: Proprietary
servers:
- url: https://www.promptster.dev/v1
  description: Production
- url: http://localhost:5000/v1
  description: Local development
security:
- BearerAuth: []
tags:
- name: Usage
  description: Usage statistics and history
paths:
  /usage:
    get:
      summary: Get usage statistics
      description: Get your current API usage statistics and rate limit status
      operationId: getUsage
      tags:
      - Usage
      responses:
        '200':
          description: Usage statistics
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageResponse'
        '401':
          $ref: '#/components/responses/AuthenticationError'
        '500':
          $ref: '#/components/responses/InternalError'
  /history:
    get:
      summary: Get request history
      description: Get your API request history with filtering and pagination
      operationId: getHistory
      tags:
      - Usage
      parameters:
      - name: limit
        in: query
        description: Maximum number of results (1-100)
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 50
      - name: offset
        in: query
        description: Number of results to skip
        schema:
          type: integer
          minimum: 0
          default: 0
      - name: provider
        in: query
        description: Filter by provider
        schema:
          $ref: '#/components/schemas/Provider'
      - name: start_date
        in: query
        description: Filter by start date (ISO 8601)
        schema:
          type: string
          format: date-time
      - name: end_date
        in: query
        description: Filter by end date (ISO 8601)
        schema:
          type: string
          format: date-time
      responses:
        '200':
          description: Request history
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HistoryResponse'
        '401':
          $ref: '#/components/responses/AuthenticationError'
        '500':
          $ref: '#/components/responses/InternalError'
components:
  schemas:
    UsageResponse:
      type: object
      properties:
        user_id:
          type: string
        tier:
          type: string
          enum:
          - free
          - builder
          - scale
          - enterprise
        limits:
          type: object
          properties:
            requests_per_day:
              type: integer
            requests_per_minute:
              type: integer
        usage:
          type: object
          properties:
            today:
              type: object
              properties:
                requests:
                  type: integer
                remaining:
                  type: integer
                reset_at:
                  type: string
                  format: date-time
            this_month:
              type: object
              properties:
                requests:
                  type: integer
                estimated_cost:
                  type: number
    Provider:
      type: string
      enum:
      - openai
      - anthropic
      - google
      - deepseek
      - xai
      - groq
      - mistral
      - perplexity
      - together
      - cerebras
      - fireworks
      description: AI provider identifier
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            message:
              type: string
            provider:
              type: string
              description: Present on provider-side errors (`provider_error`, `provider_payment_required`).
            details:
              type: array
              items:
                type: object
    HistoryResponse:
      type: object
      properties:
        data:
          type: array
          items:
            type: object
        pagination:
          type: object
          properties:
            total:
              type: integer
            limit:
              type: integer
            offset:
              type: integer
            has_more:
              type: boolean
        statistics:
          type: object
          properties:
            total_requests:
              type: integer
            avg_response_time_ms:
              type: integer
            total_estimated_cost:
              type: number
  responses:
    InternalError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              type: internal_error
              message: An error occurred while processing your request
    AuthenticationError:
      description: Authentication error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              type: authentication_error
              message: Invalid API key. Please check your key and try again.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key (starts with pk_live_ or pk_test_)