Credits and usage

Prepaid per-minute billing, auto-reload protection, and 402 handling.

API usage draws from your organization's prepaid balance, funded in whole-dollar amounts from $5 to $500 under Billing in the dashboard or from the pricing page. Recorded analysis and live streaming draw from the same balance. Plans with an included monthly allowance consume that allowance before drawing from the wallet.

Rates

SurfaceRateEndpoint
Recorded analysis$0.02 / audio-minutePOST /v1/analyze/audio, POST /v1/analyze/url
Live analysis$0.08 / audio-minuteWS /v1/stream/realtime

Charges are computed from processed audio duration with a one-cent minimum per request or live session:

charge = max($0.01, ceil(audio_seconds / 60 * rate))

Recorded requests preflight the expected charge before running inference and settle after processing completes. Live WebSocket sessions verify a positive balance at handshake and debit accumulated duration as the session runs.

Auto-reload

To prevent production jobs or live calls from failing on an empty balance, enable Auto-reload under Billing once a payment method is on file:

  • Choose a threshold ($1 to $500) and a reload amount ($5 to $500).
  • Whenever a debit or an incoming preflight check sees your balance below the threshold (or below the required charge for the request), ProsodyAI automatically initiates an off-session Stripe charge to top up your wallet.
  • A 10-minute cooldown prevents duplicate charges during concurrent traffic bursts.

Handling insufficient credits in code

When a workspace balance cannot cover a request, REST endpoints return HTTP 402 and the SDK throws InsufficientCreditsError. Live WebSocket sessions send an error frame with code insufficient_credits or credits_required and close with code 4002.

import { ProsodyClient, InsufficientCreditsError } from '@prosodyai/sdk';

const prosody = new ProsodyClient();

try {
  await prosody.transcribe('./call.wav');
} catch (err) {
  if (err instanceof InsufficientCreditsError) {
    console.error({
      code: err.code,                // "insufficient_credits" | "credits_required"
      balanceCents: err.balanceCents,
      requiredCents: err.requiredCents,
      billingUrl: err.billingUrl,
    });
  }
}

On this page