Primate Intelligence Billing API

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

GitHub OpenAPI

Operations 1

GET /v1/credits Credit balance and transaction 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/primateintelligence-ai:primateintelligence-ai-billing-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-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Primate Vision Billing 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: Billing
paths:
  /v1/credits:
    get:
      summary: Credit balance and transaction history
      description: 'Agent-facing billing truth (PRI-480 A-5): remaining balance in billable seconds plus a paginated ledger. Check this before submitting work to avoid a 402. Requires the billing:read scope.'
      tags:
      - Billing
      security:
      - bearerAuth: []
      parameters:
      - schema:
          type: integer
          minimum: 1
          maximum: 100
          description: Transactions per page (1–100, default 20).
          example: 20
        required: false
        name: limit
        in: query
      - schema:
          type: string
          description: Cursor — return transactions older than this id.
        required: false
        name: before
        in: query
      responses:
        '200':
          description: Balance plus one page of ledger entries.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditsResponse'
        '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: getV1Credits
      x-operation-id-source: derived
components:
  schemas:
    ErrorObject:
      type:
      - object
      - 'null'
      properties:
        code:
          type: string
          example: video_unreadable
        message:
          type: string
      required:
      - code
      - message
    CreditsResponse:
      type: object
      properties:
        object:
          type: string
          enum:
          - credits
        balance_seconds:
          type: number
          description: The authoritative credit balance (legacy field name retained for backward compatibility).
        grant_seconds:
          type:
          - number
          - 'null'
          description: Original signup grant, when one exists.
        used_seconds:
          type:
          - number
          - 'null'
          description: Consumed against the signup grant (grant minus balance).
        transactions:
          type: array
          items:
            $ref: '#/components/schemas/CreditTransaction'
        has_more:
          type: boolean
      required:
      - object
      - balance_seconds
      - grant_seconds
      - used_seconds
      - transactions
      - has_more
    CreditTransaction:
      type: object
      properties:
        id:
          type: string
        kind:
          type: string
          description: e.g. signup_grant, analysis_debit, stream_debit, purchase.
          example: signup_grant
        seconds_delta:
          type: number
          description: 'Signed: negative debits, positive credits.'
        balance_after_seconds:
          type: number
        source_type:
          type:
          - string
          - 'null'
        source_id:
          type:
          - string
          - 'null'
        created_at:
          type: string
      required:
      - id
      - kind
      - seconds_delta
      - balance_after_seconds
      - source_type
      - source_id
      - created_at
    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.