Primate Intelligence Provisioning API

The provisioning API from Primate Intelligence — 4 operation(s) for provisioning.

GitHub OpenAPI

Operations 4

POST /v1/sandbox Provision an instant sandbox (pv_test_) key — no auth, no card #
POST /v1/keys/upgrade Upgrade a test key to a live free-grant key (6,000s credit) #
POST /v1/keys/request Start a device-code claim flow for a full billed key #
GET /v1/keys/request/{code} Poll a device-code claim request #

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-provisioning-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-provisioning-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Primate Vision Provisioning 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: Provisioning
paths:
  /v1/sandbox:
    post:
      summary: Provision an instant sandbox (pv_test_) key — no auth, no card
      tags:
      - Provisioning
      description: 'Anonymous zero-touch provisioning (A1). Issues a fixture-only test-mode key: analyses return deterministic canned results, never touch the GPU, and burn no credits. IP-limited; 7-day expiry. Live keys require signup (billing gate, not an integration gate).'
      responses:
        '201':
          description: Sandbox key issued. The raw key appears only in this response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SandboxKey'
        '429':
          description: sandbox_limit_exceeded — IP daily cap reached. Retry-After set.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '503':
          description: db_unavailable — transient; retry with backoff.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      operationId: postV1Sandbox
      x-operation-id-source: derived
  /v1/keys/upgrade:
    post:
      summary: Upgrade a test key to a live free-grant key (6,000s credit)
      description: 'Stage 1 of the key lifecycle. Call with a `pv_test_` key in Authorization; receive a `pv_live_` key with `tier: free_grant` and a 6,000-second credit grant. No email or card required. **GitHub-gated (PRI-479):** calling without a `github_token` returns `403 github_verification_required` whose `details` carry the OAuth `client_id` and device-flow URLs — complete GitHub''s device flow and retry with `{"github_token": "..."}`. One free grant per GitHub account, ever (duplicate → `409 github_account_already_used`). IP caps (3 / IP / 24h) remain as secondary defense.'
      tags:
      - Provisioning
      security:
      - bearerAuth: []
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpgradeKeyRequest'
      responses:
        '201':
          description: Live key issued. The raw `api_key` appears only in this response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpgradeKeyResponse'
        '401':
          description: github_token_invalid — the supplied github_token failed verification with GitHub.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '403':
          description: test_mode_only — must call with a pv_test_ key. github_verification_required — GitHub gate enabled and no github_token supplied; `details` carry the device-flow bootstrap (client_id, URLs).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '409':
          description: github_account_already_used — this GitHub account has already claimed its free grant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: upgrade_limit_exceeded — per-IP or global daily cap reached.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      operationId: postV1KeysUpgrade
      x-operation-id-source: derived
  /v1/keys/request:
    post:
      summary: Start a device-code claim flow for a full billed key
      description: Stage 2 of the key lifecycle. Optional auth (test or live key accepted, or none). Returns a `device_code` and `claim_url`. Direct the user to `claim_url` to sign in; poll `GET /v1/keys/request/{code}` until status changes from `pending`. Key is delivered once in the claim response; subsequent polls return 410.
      tags:
      - Provisioning
      responses:
        '202':
          description: Device code issued.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceCodeRequest'
        '503':
          description: db_unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      operationId: postV1KeysRequest
      x-operation-id-source: derived
  /v1/keys/request/{code}:
    get:
      summary: Poll a device-code claim request
      description: 'Returns `{status: "pending"}` until the user approves in the browser. After approval, returns `status: "consumed"` (key was delivered in the claim response). Expired or already-consumed codes return 410.'
      tags:
      - Provisioning
      parameters:
      - name: code
        in: path
        required: true
        schema:
          type: string
        description: The `device_code` from POST /v1/keys/request.
      responses:
        '200':
          description: Current status of the device code.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceCodeStatus'
        '404':
          description: resource_not_found — code not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '410':
          description: device_code_expired — code consumed or expired. Start a new request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
      operationId: getV1KeysRequestByCode
      x-operation-id-source: derived
components:
  schemas:
    UpgradeKeyResponse:
      type: object
      properties:
        object:
          type: string
          enum:
          - api_key
        livemode:
          type: boolean
          enum:
          - true
        api_key:
          type: string
          description: The raw `pv_live_` key — store securely, shown only once.
        tier:
          type: string
          enum:
          - free_grant
        expires_at:
          type: string
          format: date-time
        grant_seconds:
          type: integer
          example: 6000
        note:
          type: string
        claim_flow:
          type: object
          properties:
            endpoint:
              type: string
            how:
              type: string
          required:
          - endpoint
          - how
      required:
      - object
      - livemode
      - api_key
      - tier
      - expires_at
      - grant_seconds
    ErrorObject:
      type:
      - object
      - 'null'
      properties:
        code:
          type: string
          example: video_unreadable
        message:
          type: string
      required:
      - code
      - message
    DeviceCodeStatus:
      type: object
      properties:
        object:
          type: string
          enum:
          - device_code_request
        status:
          type: string
          enum:
          - pending
          - consumed
      required:
      - object
      - status
    DeviceCodeRequest:
      type: object
      properties:
        object:
          type: string
          enum:
          - device_code_request
        device_code:
          type: string
          description: Opaque code; use as path param when polling.
        claim_url:
          type: string
          format: uri
          description: Open in browser for the user to approve.
        expires_at:
          type: string
          format: date-time
        poll_interval:
          type: integer
          description: Seconds between polls.
          example: 5
        instructions:
          type: string
      required:
      - object
      - device_code
      - claim_url
      - expires_at
      - poll_interval
    UpgradeKeyRequest:
      type: object
      properties:
        github_token:
          type: string
          description: 'PRI-479: GitHub OAuth access token from the device flow. Required when the GitHub gate is enabled (calling without one returns 403 github_verification_required with device-flow bootstrap details). Verified against GitHub and discarded — never stored. One free grant per GitHub account, ever.'
    ErrorEnvelope:
      type: object
      properties:
        error:
          allOf:
          - $ref: '#/components/schemas/ErrorObject'
          - type: object
            properties:
              status:
                type: integer
            required:
            - status
      required:
      - error
    SandboxKey:
      type: object
      properties:
        object:
          type: string
          enum:
          - sandbox_key
        api_key:
          type: string
          description: 'Shown exactly once — store it now. Fixture-only test mode: no GPU, no credits.'
          example: pv_test_…
        mode:
          type: string
          enum:
          - test
        expires_at:
          type: string
          description: Keys expire 7 days after issuance.
        fixture_video_id:
          type:
          - string
          - 'null'
          description: Pre-seeded ready video for immediate POST /v1/analyses.
        fixture_prompt:
          type: string
        expected_answer:
          type: string
          description: Deterministic canned answer for the fixture prompt — assert this in CI.
        docs_url:
          type: string
        note:
          type: string
      required:
      - object
      - api_key
      - mode
      - expires_at
      - fixture_video_id
      - fixture_prompt
      - expected_answer
      - docs_url
      - note
  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.