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

# Get usage

> Audio seconds counted this calendar month (UTC) and your allowance. Needs a key, any scope. May lag by up to 30 seconds.



## OpenAPI

````yaml /api-reference/openapi.yaml get /v1/usage
openapi: 3.1.0
info:
  title: Namu API
  version: 1.0.0
  description: >-
    Speech recognition, speech synthesis, translation and a voice agent for
    Hausa, Zarma and French. Describes the API as it behaves on 8 November 2026.
  contact:
    name: Namu AI Lab
    email: contact@namuai.org
    url: https://www.namuai-lab.com
servers:
  - url: https://api.namuai-lab.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Speech
    description: Text to speech.
  - name: Transcription
    description: Speech to text.
  - name: Translation
    description: Hausa and French, from text or speech.
  - name: Voice agent
    description: A spoken conversation in Hausa. Research preview.
  - name: Models and voices
    description: What the API serves. No key needed.
  - name: Account
    description: Your usage this month.
paths:
  /v1/usage:
    get:
      tags:
        - Account
      summary: Get usage
      description: >-
        Audio seconds counted this calendar month (UTC) and your allowance.
        Needs a key, any scope. May lag by up to 30 seconds.
      operationId: getUsage
      responses:
        '200':
          description: This month's usage.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Usage'
              example:
                month_audio_seconds_used: 312.4
                month_audio_seconds_limit: 1800
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    Usage:
      type: object
      properties:
        month_audio_seconds_used:
          type: number
        month_audio_seconds_limit:
          type: number
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              description: A stable code, such as `invalid_api_key`.
            message:
              type: string
              description: What happened, in plain words.
            request_id:
              type: string
  responses:
    Unauthorized:
      description: >-
        No key, not a Namu key, or a revoked key: `missing_api_key`,
        `invalid_api_key`, `key_revoked`.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              type: missing_api_key
              message: 'Send your key as ''Authorization: Bearer namu_sk_...''.'
              request_id: 3f2a9c1e5b7d4e8fa0c2b6d9e1f3a5c7
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your secret key: `Authorization: Bearer namu_sk_...`. Create one at
        https://www.namuai-lab.com/account/keys.

````

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