Snowflake Cortex AI Cost Calculator
Adam L.
Published
0
Snowflake Cortex AI Cost Calculator
Purpose: Reference implementation for Cortex cost monitoring and forecasting
A professional toolkit for tracking Snowflake Cortex service consumption and generating accurate cost projections. Perfect for engineering teams during scoping exercises and for clients managing their AI workload budgets.
FEATURES
- ✅ 16 monitoring views tracking all Cortex services
- ✅ Query-level cost tracking - identify expensive queries
- ✅ Document processing analysis - compare PARSE_DOCUMENT vs Document AI
- ✅ Fine-tuning ROI tracking - separate training vs inference costs
- ✅ Cortex Search optimization - hourly cost tracking to find idle periods
- ✅ Latest pricing - Current rates for Cortex LLM models (15+ available)
- ✅ Serverless task - automatic daily snapshots, no warehouse needed
- ✅ Snapshot table - 4-5x faster queries
- ✅ Simplified Cost per User Calculator for quick scoping
- ✅ 30-day rolling totals for accurate estimates
- ✅ Smart data fallback - works immediately after deployment
- ✅ Historical trend analysis with week-over-week growth
- ✅ Export-ready credit estimates for proposals
- ✅ Zero disruption to production workloads
Key Features
Serverless Task (No Warehouse Required!)
- Automatic daily snapshots at 3:00 AM
- No configuration - Snowflake manages compute
- Low cost: ~$0.30-1.50/month (vs dedicated warehouse)
- Captures data to
CORTEX_USAGE_SNAPSHOTStable
Snapshot Table for Speed
- 4-5x faster queries compared to ACCOUNT_USAGE
- Pre-calculated metrics (no compute-on-query)
- Historical tracking beyond 90-day rolling window
V_CORTEX_USAGE_HISTORYview includes week-over-week trends
Simplified Cost per User Calculator
- Moved to top of Cost Projections tab
- Historical reference table shows actual usage
- Simple persona configuration: name, user count, requests/day
- Instant estimates for per-persona and total costs
Smart Data Fetching
- Automatic fallback: Tries snapshot table first, falls back to live view
- Works immediately after deployment (doesn’t wait for 3 AM)
- Best of both worlds: Fast when available, always functional
Streamlined Experience
- Removed Scenario Comparison tab
- Clean documentation in
docs/folder (user-facing only) - Streamlined codebase for easy understanding
- Essential files only for quick learning