Parallel Usage API

Organization usage endpoints

GitHub OpenAPI

Operations 1

GET /service/v1/usage Get Usage #

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

parallel-ai-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fast Usage API
  version: 0.1.0
  description: Organization usage endpoints
servers:
- url: https://api.parallel.ai/account
  description: Parallel Account API
tags:
- name: Usage
  description: Organization usage endpoints
paths:
  /service/v1/usage:
    get:
      tags:
      - Usage
      summary: Get Usage
      description: Get the authenticated organization's billed usage as daily, weekly, or monthly spans of line items, broken out by product, processor, app, and API key.
      operationId: get_usage_service_v1_usage_get
      parameters:
      - name: start_date
        in: query
        required: true
        schema:
          type: string
          format: date
          description: UTC start date, inclusive. Must be within the last 365 days.
          title: Start Date
        description: UTC start date, inclusive. Must be within the last 365 days.
      - name: end_date
        in: query
        required: true
        schema:
          type: string
          format: date
          description: UTC end date, exclusive. Window of at most 365 days.
          title: End Date
        description: UTC end date, exclusive. Window of at most 365 days.
      - name: interval
        in: query
        required: false
        schema:
          enum:
          - daily
          - weekly
          - monthly
          type: string
          description: Span granularity. 'daily' returns one span per UTC day; 'weekly' one span per UTC week starting Monday; 'monthly' one span per UTC calendar month. Weekly and monthly spans are clamped to the requested window, with their line items summed.
          default: daily
          title: Interval
        description: Span granularity. 'daily' returns one span per UTC day; 'weekly' one span per UTC week starting Monday; 'monthly' one span per UTC calendar month. Weekly and monthly spans are clamped to the requested window, with their line items summed.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - BearerAuth: []
components:
  schemas:
    UsageSpanResponse:
      properties:
        start_time:
          type: string
          format: date-time
          title: Start Time
          description: Span start, inclusive (UTC)
        end_time:
          type: string
          format: date-time
          title: End Time
          description: Span end, exclusive (UTC)
        line_items:
          items:
            $ref: '#/components/schemas/UsageLineItemResponse'
          type: array
          title: Line Items
          description: Usage breakdown for this span
      type: object
      required:
      - start_time
      - end_time
      title: UsageSpanResponse
      description: Usage line items for one UTC day or calendar month.
    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
    UsageResponse:
      properties:
        usage:
          items:
            $ref: '#/components/schemas/UsageSpanResponse'
          type: array
          title: Usage
          description: Usage spans, ascending by start time
      type: object
      title: UsageResponse
      description: Usage spans for the authenticated organization.
    UsageLineItemResponse:
      properties:
        product:
          type: string
          title: Product
          description: Billed product name, as it appears on invoices
        api_key_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Api Key Id
          description: API key the usage was billed under; null when the usage is not attributed to a specific key
        api_key_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Api Key Name
          description: Display name of that API key; null when the usage is not attributed to a key or the key has since been deleted or rotated
        app_name:
          anyOf:
          - type: string
          - type: 'null'
          title: App Name
          description: App the usage was billed under, when grouped
        processor:
          anyOf:
          - type: string
          - type: 'null'
          title: Processor
          description: Processor the usage was billed under, when grouped
        quantity:
          type: number
          title: Quantity
          description: Billed usage quantity
        total_cost_cents:
          type: number
          title: Total Cost Cents
          description: Total cost of this line item in cents (quantity already applied)
        currency:
          type: string
          title: Currency
          description: Currency code, e.g. USD
      type: object
      required:
      - product
      - quantity
      - total_cost_cents
      - currency
      title: UsageLineItemResponse
      description: One billed usage line item within a time span.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Send `Authorization: Bearer <access_token>`. This must be an account API access token minted via a supported Parallel OAuth grant, not a standard API key. See the [account API docs](/integrations/account-api).'