> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aircaps.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get usage

> Daily usage of both models.



## OpenAPI

````yaml GET /v1/usage
openapi: 3.1.0
info:
  title: AirCaps API
  version: 1.0.0
  description: >-
    Speech-to-text for English. A5S Async v1 (REST) and A5S v2 Streaming
    (WebSocket).
servers:
  - url: https://api.aircaps.com
security:
  - bearerAuth: []
tags:
  - name: Transcripts
  - name: Files
  - name: Account
paths:
  /v1/usage:
    get:
      tags:
        - Account
      summary: Get usage
      description: Daily usage of both models.
      operationId: getUsage
      parameters:
        - name: days
          in: query
          description: Calendar days, including today.
          schema:
            type: integer
            minimum: 1
            maximum: 90
            default: 30
        - name: timezone
          in: query
          description: IANA time zone for day boundaries.
          schema:
            type: string
            default: UTC
            example: America/New_York
      responses:
        '200':
          description: Usage report.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Usage'
              example:
                object: usage
                timezone: UTC
                start_date: '2026-09-07'
                end_date: '2026-10-06'
                models:
                  - id: a5s-async-v1
                    name: A5S Async v1
                  - id: a5s-v2-streaming
                    name: A5S v2 Streaming
                daily:
                  - date: '2026-10-06'
                    model: a5s-async-v1
                    requests: 12
                    completed: 12
                    failed: 0
                    audio_seconds: 5410.2
                totals:
                  a5s-async-v1:
                    requests: 12
                    completed: 12
                    failed: 0
                    audio_seconds: 5410.2
                by_key:
                  - key_id: 0123456789ab
                    name: Production
                    model: a5s-async-v1
                    requests: 12
                    audio_seconds: 5410.2
        '400':
          description: >-
            Invalid request. Codes: `invalid_request`, `unsupported_language`,
            `unsupported_model`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: invalid_request_error
                  code: unsupported_language
                  message: >-
                    language 'de' is not supported; only English ("en", "en-US",
                    ...) is available today. Multilingual support is planned.
                  param: null
                  request_id: req_01k6z3m4q8w7e5r2t1y0u9i8o7
        '401':
          description: 'Missing or invalid API key. Codes: `unauthorized`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: authentication_error
                  code: unauthorized
                  message: invalid API key
                  param: null
                  request_id: req_01k6z3m4q8w7e5r2t1y0u9i8o7
        '403':
          description: >-
            The account may not do this. Codes: `account_suspended`,
            `account_disabled`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: permission_error
                  code: account_disabled
                  message: this account is disabled
                  param: null
                  request_id: req_01k6z3m4q8w7e5r2t1y0u9i8o7
        '500':
          description: >-
            Server error. Safe to retry (use the same Idempotency-Key). Codes:
            `internal_error`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  type: api_error
                  code: internal_error
                  message: internal error
                  param: null
                  request_id: req_01k6z3m4q8w7e5r2t1y0u9i8o7
components:
  schemas:
    Usage:
      type: object
      properties:
        object:
          type: string
          enum:
            - usage
        timezone:
          type: string
        start_date:
          type: string
          format: date
        end_date:
          type: string
          format: date
        models:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
              name:
                type: string
        daily:
          type: array
          items:
            allOf:
              - type: object
                properties:
                  date:
                    type: string
                    format: date
                  model:
                    type: string
              - type: object
                properties:
                  requests:
                    type: integer
                  completed:
                    type: integer
                  failed:
                    type: integer
                  audio_seconds:
                    type: number
        totals:
          type: object
          additionalProperties:
            type: object
            properties:
              requests:
                type: integer
              completed:
                type: integer
              failed:
                type: integer
              audio_seconds:
                type: number
          description: Per model id.
        by_key:
          type: array
          items:
            type: object
            properties:
              key_id:
                type:
                  - string
                  - 'null'
              name:
                type: string
              model:
                type: string
              requests:
                type: integer
              audio_seconds:
                type: number
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
            - request_id
          properties:
            type:
              type: string
              enum:
                - invalid_request_error
                - authentication_error
                - permission_error
                - rate_limit_error
                - api_error
            code:
              type: string
              description: Machine-readable code; see [Errors](/errors).
            message:
              type: string
            param:
              type:
                - string
                - 'null'
              description: The request field at fault, if any.
            request_id:
              type: string
              description: >-
                Also in the `x-request-id` header. Include it when contacting
                support.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key: `Authorization: Bearer aircaps_sk_...`'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.