Primate Intelligence Usage API

The usage API from Primate Intelligence — 1 operation(s) for usage.

GitHub OpenAPI

Operations 1

GET /v1/usage Usage meters (credit balance, period consumption) #

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/primateintelligence-ai:primateintelligence-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

primateintelligence-ai-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Primate Vision Usage API
  version: 1.0.0-alpha
  description: Public API v1 for Primate Vision — video understanding for the agentic web. P1 (PRI-430) publishes resource schemas; endpoints ship from P3 onward.
  contact:
    email: support@primateintelligence.ai
servers:
- url: https://api.primateintelligence.ai
  description: Production
- url: https://dev-api.primateintelligence.ai
  description: Development
tags:
- name: Usage
paths:
  /v1/usage:
    get:
      summary: Usage meters (credit balance, period consumption)
      tags:
      - Usage
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Meters + legacy fields. Same numbers as the dashboard (shared service, reconciles with the credit ledger to the second).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageResponse'
        '400':
          description: validation_failed / url_forbidden / prompt errors (§15)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: invalid_api_key / key_revoked / key_expired
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: resource_not_found (account-scoped; no existence oracle)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '409':
          description: resource_conflict / idempotency_key_reused / idempotency_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: rate_limit_exceeded / concurrency_limit_exceeded / quota_exceeded (always with Retry-After)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      operationId: getV1Usage
      x-operation-id-source: derived
components:
  schemas:
    UsageResponse:
      type: object
      properties:
        meters:
          type: array
          items:
            $ref: '#/components/schemas/Meter'
          description: 'Data-driven meter list (§4.6 invariant #1). At launch: credit_seconds (balance) + seconds_processed.period (used/resets_at). Pricing changes add/change rows — never the schema. quota_exceeded errors carry details.meter naming which meter tripped.'
      required:
      - meters
      description: Usage meters + legacy dashboard fields (the flat fields are deprecated in favor of meters[]; they remain during the web-client migration).
    ErrorObject:
      type:
      - object
      - 'null'
      properties:
        code:
          type: string
          example: video_unreadable
        message:
          type: string
      required:
      - code
      - message
    Meter:
      type: object
      properties:
        meter:
          type: string
          example: credit_seconds
        unit:
          type: string
          example: seconds
        balance:
          type: number
          description: Balance-shaped meters (e.g. credit_seconds).
        limit:
          type:
          - number
          - 'null'
          description: null = unlimited/PAYG.
        used:
          type: number
          description: Period-shaped meters.
        resets_at:
          type: string
          format: date-time
          description: Omitted for non-period meters.
          example: '2026-07-08T14:00:00Z'
      required:
      - meter
      - unit
      description: One named usage meter (§4.6). The list is data-driven — pricing changes add/change rows, never the schema.
    ErrorEnvelope:
      type: object
      properties:
        error:
          allOf:
          - $ref: '#/components/schemas/ErrorObject'
          - type: object
            properties:
              status:
                type: integer
            required:
            - status
      required:
      - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key (pv_live_… / pv_test_…). Clerk session JWTs are accepted on the same endpoints for first-party clients.