UNPKG

gemini-cost-tracker

Version:

CLI tool to display token usage and costs for Gemini and Vertex AI

35 lines 2.17 kB
export declare const DEFAULT_CONFIG: { readonly CURRENCY: "USD"; readonly FORMAT: "table"; readonly PERIOD: "week"; }; export declare const API_ENDPOINTS: { readonly GEMINI_API: "https://generativelanguage.googleapis.com/v1"; readonly VERTEX_AI_API: "https://aiplatform.googleapis.com/v1"; readonly PRICING_URLS: { readonly GEMINI: "https://ai.google.dev/gemini-api/docs/pricing"; readonly GEMINI_MODELS: "https://ai.google.dev/gemini-api/docs/models"; readonly VERTEX_AI: "https://cloud.google.com/vertex-ai/generative-ai/pricing"; }; }; export declare const SUPPORTED_MODELS: { readonly GEMINI: readonly ["gemini-2.5-pro", "gemini-2.5-flash", "gemini-2.5-flash-lite", "gemini-2.0-flash", "gemini-2.0-flash-lite", "gemini-1.5-pro", "gemini-1.5-flash", "gemini-1.5-flash-8b", "gemini-pro", "gemini-pro-vision", "gemini-1.5-pro-extended", "gemini-1.5-flash-extended", "gemini-2.5-pro-extended", "gemini-2.5-flash-audio", "gemini-2.5-flash-lite-audio", "gemini-2.5-flash-native-audio", "gemini-2.5-flash-thinking"]; readonly VERTEX_AI: readonly ["text-bison-001", "text-bison-002", "chat-bison-001", "chat-bison-002", "codechat-bison-001", "codechat-bison-002", "gemini-1.5-pro-vertex", "gemini-1.5-flash-vertex", "gemini-2.5-pro-vertex", "gemini-2.5-flash-vertex"]; }; export declare const FILE_PATHS: { readonly CONFIG_DIR: ".gemini-cost-tracker"; readonly CONFIG_FILE: "config.json"; readonly CREDENTIALS_FILE: "credentials.json"; readonly CACHE_DIR: "cache"; readonly LOGS_DIR: "logs"; }; export declare const ERROR_MESSAGES: { readonly INVALID_DATE_RANGE: "Invalid date range: start date must be before end date"; readonly MISSING_API_KEY: "API key is required but not provided"; readonly INVALID_PROJECT_ID: "Invalid GCP project ID format"; readonly NETWORK_ERROR: "Network error occurred while fetching data"; readonly AUTHENTICATION_FAILED: "Authentication failed - check your credentials"; readonly FILE_NOT_FOUND: "Required configuration file not found"; readonly INVALID_FORMAT: "Invalid output format specified"; }; //# sourceMappingURL=constants.d.ts.map