UNPKG

@promptbook/node

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

36 lines (35 loc) 873 B
/** * The pricing for Gemini models per 1 million tokens in USD. * * Note: This is an estimation. * * @see https://ai.google.dev/pricing */ export declare const GEMINI_PRICING: { 'gemini-1.5-flash': { input: number; output: number; }; }; /** * The model to use for price estimation. */ export declare const GEMINI_MODEL_FOR_ESTIMATION = "gemini-1.5-flash"; /** * Gemini pricing entry per 1 million tokens. */ export type GeminiPricing = { input: number; output: number; }; /** * Resolves Gemini pricing for the requested model. * * It first tries exact match, then prefix match, then falls back to a stable * default pricing model. */ export declare function resolveGeminiPricing(modelName?: string): GeminiPricing; /** * A an estimation of how many characters are in one token. */ export declare const CHARS_PER_TOKEN = 4;