KugelAudio billing API

The billing API from KugelAudio — 2 operation(s) for billing.

Operations 2

GET /v1/billing/credit-state Billing Credit State #
POST /v1/billing/record-usage Record Billing 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/kugelaudio-billing-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

kugelaudio-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: KugelAudio TTS 11labs Billing API
  description: 'Unified API: REST + WebSocket + ElevenLabs + Vapi'
  version: 2.0.0
servers:
- url: https://api.kugelaudio.com
  description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: billing
paths:
  /v1/billing/credit-state:
    get:
      tags:
      - billing
      summary: Billing Credit State
      operationId: billing_credit_state_v1_billing_credit_state_get
      parameters:
      - name: org_id
        in: query
        required: true
        schema:
          type: integer
          minimum: 1
          title: Org Id
      - name: X-Kugel-License-Key
        in: header
        required: true
        schema:
          type: string
          title: X-Kugel-License-Key
      - name: x-api-key
        in: header
        required: true
        schema:
          type: string
          title: X-Api-Key
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BillingCreditStateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/billing/record-usage:
    post:
      tags:
      - billing
      summary: Record Billing Usage
      operationId: record_billing_usage_v1_billing_record_usage_post
      parameters:
      - name: X-Kugel-License-Key
        in: header
        required: true
        schema:
          type: string
          title: X-Kugel-License-Key
      - name: x-api-key
        in: header
        required: true
        schema:
          type: string
          title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecordBillingUsageRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecordBillingUsageResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    BillingCreditStateResponse:
      properties:
        has_access:
          type: boolean
          title: Has Access
        remaining_cents:
          anyOf:
          - type: number
          - type: 'null'
          title: Remaining Cents
      type: object
      required:
      - has_access
      title: BillingCreditStateResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    RecordBillingUsageResponse:
      properties:
        success:
          type: boolean
          title: Success
        cost_cents:
          anyOf:
          - type: number
          - type: 'null'
          title: Cost Cents
        error:
          anyOf:
          - type: string
          - type: 'null'
          title: Error
        currency:
          type: string
          title: Currency
          default: eur
      type: object
      required:
      - success
      title: RecordBillingUsageResponse
    RecordBillingUsageRequest:
      properties:
        org_id:
          type: integer
          title: Org Id
        model_id:
          type: string
          title: Model Id
        audio_seconds:
          type: number
          title: Audio Seconds
        api_key_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Api Key Id
        user_id:
          anyOf:
          - type: string
          - type: 'null'
          title: User Id
        char_count:
          anyOf:
          - type: integer
          - type: 'null'
          title: Char Count
        ttfa_ms:
          anyOf:
          - type: number
          - type: 'null'
          title: Ttfa Ms
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
      type: object
      required:
      - org_id
      - model_id
      - audio_seconds
      title: RecordBillingUsageRequest
      description: One finished TTS generation — same fields as :class:`UsageReport`.