Interface LowestCostSttOptions

Explicit inputs to one price decision. No availability is inferred.

interface LowestCostSttOptions {
    availableVendors: readonly ("openai" | "elevenlabs" | "deepgram")[];
    language?: null | string;
    nowMs: number;
    estimatedSeconds: number;
    creditVersion?: string;
    credit?: SttCreditSnapshot;
}

Properties

availableVendors: readonly ("openai" | "elevenlabs" | "deepgram")[]

Vendors whose credentials and eligibility the host has established.

language?: null | string

Null means automatic language, never an English default. Omitted retains legacy English behavior.

nowMs: number

UTC epoch milliseconds of this decision.

estimatedSeconds: number

Positive estimated audio seconds the admission must fund.

creditVersion?: string

Current complete credit-record version; absent for no valid record.

A checked snapshot of that record; absent before the first success.