Ditto Audio Usage API

Your own API usage & analytics — totals, time series and recent requests

Operations 4

GET /v1/usage/quota Your monthly allowance: limit, used, remaining, percent, and what it buys per… #
GET /v1/usage/summary Usage totals for a window, plus month-to-date and breakdowns #
GET /v1/usage/timeseries Bucketed usage over time (gap-filled) #
GET /v1/usage/recent Your most recent API requests (including failures) #

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/ditto-audio:ditto-audio-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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ditto-audio-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ditto.audio Usage API
  description: Cloud API behind ditto.audio. The reader (reader.ditto.audio) and the voice studio (studio.ditto.audio) are separate apps sharing this one backend — see /docs/reader and /docs/inference for each app’s public surface. Third-party integrations want /docs/public (rendered for humans at https://ditto.audio/docs).
  version: '1.0'
  contact: {}
servers: []
tags:
- name: Usage
  description: Your own API usage & analytics — totals, time series and recent requests
paths:
  /v1/usage/quota:
    get:
      description: 'The allowance is BILLED SECONDS, and each model spends it at its own rate: a second of Kokoro costs 1.5, a second of XTTS costs 3. So there is one `percentUsed`, and `byModel[].remainingSeconds` says how much audio the remainder buys in each model — those are ALTERNATIVES drawn from the same pot, not separate budgets.


        `limitSeconds` and `remainingSeconds` are `null` when the account is unmetered. Exceeding the allowance answers `402 QUOTA_EXCEEDED` — deliberately not 429, because waiting does not help until `resetsAt`.


        The aggregate numbers ride on every synthesis response as `X-Ditto-Quota-*` headers, so an integration can watch its own headroom without polling this.'
      operationId: UsageController_quotaStatus
      parameters: []
      responses:
        '200':
          description: ''
      security:
      - bearer: []
      summary: 'Your monthly allowance: limit, used, remaining, percent, and what it buys per…'
      tags:
      - Usage
  /v1/usage/summary:
    get:
      description: Totals, month-to-date spend, and breakdowns by model, language and API key, with p50/p95 latency. Defaults to the last 30 days.
      operationId: UsageController_summary
      parameters:
      - name: to
        required: false
        in: query
        description: ISO-8601. Defaults to now.
        schema: {}
      - name: from
        required: false
        in: query
        description: ISO-8601. Defaults to 30 days ago.
        schema: {}
      responses:
        '200':
          description: ''
      security:
      - bearer: []
      summary: Usage totals for a window, plus month-to-date and breakdowns
      tags:
      - Usage
  /v1/usage/timeseries:
    get:
      description: One point per hour or day across the whole window — idle buckets are returned as zeros so charts do not interpolate across quiet periods.
      operationId: UsageController_timeseries
      parameters:
      - name: bucket
        required: false
        in: query
        schema:
          enum:
          - hour
          - day
          type: string
      responses:
        '200':
          description: ''
      security:
      - bearer: []
      summary: Bucketed usage over time (gap-filled)
      tags:
      - Usage
  /v1/usage/recent:
    get:
      operationId: UsageController_recent
      parameters: []
      responses:
        '200':
          description: ''
      security:
      - bearer: []
      summary: Your most recent API requests (including failures)
      tags:
      - Usage
components:
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: ditto_sk_live_… API key, ditto_oat_… OAuth access token, or a session JWT
      type: http
      description: An API key (`ditto_sk_live_…`, made at https://ditto.audio/account/api-keys) authenticates /v1/audio/* and /v1/reader/*; an OAuth connection's one-hour access token (`ditto_oat_…`) holds the audio:read and audio:speech scopes only. Account routes (/v1/api-keys, /v1/usage, /v1/subscription) take the signed-in session's token (a JWT) only.