UNPKG

askexperts

Version:

AskExperts SDK: build and use AI experts - ask them questions and pay with bitcoin on an open protocol

20 lines (19 loc) 463 B
/** * Pricing information in sats per million tokens */ export interface PricingResult { inputPricePPM: number; outputPricePPM: number; } /** * Interface for model pricing providers */ export interface ModelPricing { /** * Gets pricing information for a model in sats per million tokens * * @param name - Model ID * @returns Promise resolving to pricing information */ pricing(name: string): Promise<PricingResult>; }