Logo - Keyrus
  • Playbook
  • Services
    Data advisory & consulting
    Data & analytics solutions
    Artificial Intelligence (AI)
    Enterprise Performance Management (EPM)
    Digital & multi-experience
  • Insights
  • Partners
  • Careers
  • About us
    What sets us apart
    Company purpose
    Innovation & Technologies
    Committed Keyrus
    Regulatory compliance
    Investors
    Management team
    Brands
    Locations
  • Contact UsJoin us
Expert opinion

12

Snowflake Cortex AI Explained: Capabilities, Pricing, and Real-World Use Cases

Keyrus Snowflake Team

Snowflake Cortex AI transforms how organizations leverage artificial intelligence by bringing powerful AI capabilities directly into the Snowflake Data Cloud. Rather than moving data to external AI services, Cortex AI enables you to apply large language models, search, and analytics directly where your data lives, secure, governed, and integrated.

Part of Snowflake's broader AI strategy, Cortex AI provides a comprehensive suite of managed services: from LLM functions for text processing to specialized tools like Cortex Analyst for natural language querying and Cortex Search for intelligent retrieval.

In this article, we'll explore the Cortex AI suite and demonstrate one of its newest capabilities: AI_REDACT for automatically detecting and removing personally identifiable information (PII) from unstructured text.

What is Snowflake Cortex AI?

Cortex AI transforms Snowflake from a data platform into an AI-native execution environment. Rather than treating AI as a separate stack, Cortex integrates intelligence directly into your data workflows, eliminating the operational, security, and compliance challenges that traditionally accompany enterprise AI adoption.

  • Core principle: AI where your data lives.

Cortex AI operates within Snowflake's security perimeter, respecting all existing governance policies, RBAC controls, and data residency requirements while providing access to industry-leading models from Google, OpenAI, Anthropic, Meta, Mistral, and more.

The Cortex AI Suite

Cortex AI consists of five integrated components:

  1. Snowflake Intelligence: Unified conversational AI interface enabling business users to analyze and act on data using natural language without SQL. Example: A sales manager asks, "Show me Q4 revenue by region," and gets instant visualizations without writing queries.

  2. Cortex Agents: Orchestrate tasks across structured and unstructured data by coordinating between Cortex Analyst, Cortex Search, and LLMs. Example: An agent automatically retrieves customer contracts, analyzes sales data, and generates renewal recommendations.

  3. Cortex Analyst: Fully managed service that converts natural language questions into accurate SQL queries using semantic models. Example: "Which products had declining sales last quarter?" becomes optimized SQL against your data warehouse.

  4. Cortex Search: Managed RAG service combining semantic vector search with keyword matching for AI chatbots and document search. Example: Search across millions of support tickets to find similar issues and their resolutions.

  5. Cortex LLM Functions: SQL and Python functions providing direct access to large language models for text generation, classification, extraction, and analysis. Use AI_SUMMARIZE to condense lengthy documents or AI_EXTRACT to pull key entities from unstructured text.

How Cortex Code and Cortex AI Work Together

Cortex AI is most powerful when paired with Cortex Code. While Cortex AI provides SQL-based intelligence functions, summarization, classification, redaction, sentiment analysis, and semantic search, it assumes that data pipelines, schemas, and governance structures are already in place. This is where Cortex Code plays a foundational role.

Cortex Code accelerates:

-Data model creation

-dbt project generation

-Governance validation

-Workflow orchestration

-Application scaffolding

Once that structure is built, Cortex AI functions can safely operate on curated datasets without exposing raw or ungoverned data.

In enterprise environments, this separation matters because Cortex Code ensures architectural discipline, and Cortex AI enables intelligent execution. Together, they support a secure, scalable AI adoption model inside Snowflake, from infrastructure to inference.

Cortex AI in Action: Privacy-Safe Analytics with AI_REDACT

Let's demonstrate one of Cortex AI's newest capabilities: automatically detecting and redacting PII from unstructured text using AI_REDACT, released in General Availability in December 2025.

AI_REDACT is a fully-managed Cortex AI Function that uses a large language model (LLM) to detect, locate, and redact PII from unstructured text data. The function is available natively in select regions (AWS US, AWS Europe, Azure US/Europe). If unavailable in your region, you must enable cross-region inference. Organizations with strict data residency requirements should verify regional availability or evaluate whether cross-region inference aligns with compliance policies before deployment.

  • Important things to know: AI_REDACT and Dynamic Data Masking serve complementary purposes. Dynamic Data Masking protects structured PII columns (SSN, EMAIL, phone numbers). AI_REDACT targets unstructured text fields where PII appears alongside other content, feedback, notes, or messages, where column-level masking is not applicable.

The Scenario

Your organization collects customer feedback, support tickets, and survey responses containing valuable insights, but also personally identifiable information (PII) like names, emails, phone numbers, and addresses. You need to analyze this data for trends and sentiment, but GDPR, HIPAA, and other regulations require that PII be removed first.

Traditional approach: Build complex regex patterns for each PII type, manually review edge cases, and constantly update rules as data formats evolve or use expensive third-party tools.

With Cortex AI_REDACT: Automatically detect and redact PII using AI in a single SQL function, with no regex patterns or external services required.

Step 1: Prepare Your Data

Create a table with customer feedback containing various types of PII embedded in free-form text. This simulates real-world data where customers naturally include personal information when providing feedback.

#sql

-- Customer feedback with PII embedded in free-form text

CREATE OR REPLACE TABLE raw_customer_feedback (

feedback_id INTEGER

,feedback_text TEXT

,created_at TIMESTAMP_NTZ

);

-- Insert sample feedback with various types of PII

INSERT INTO raw_customer_feedback VALUES

(1, 'Hi, my name is Sarah Johnson and I love your product! You can reach me at sarah.j@email.com or call 415-555-0123 if you have questions.', '2026-01-20 10:15:00')

,(2, 'John Smith here, living at 123 Main Street, San Francisco, CA 94102. The delivery was late but the product quality is excellent. My order number was ORD-98234.', '2026-01-20 11:30:00')

,(3, 'Terrible experience! I called support and gave them my SSN 123-45-6789 and credit card 4532-1234-5678-9010. Still no resolution after 3 weeks.', '2026-01-20 14:45:00')

,(4, 'Amazing service! Emma Wilson from Boston here. The team helped me within minutes. Highly recommend!', '2026-01-20 16:20:00')

,(5, 'Product arrived damaged. I am Michael Chen, customer ID CUST-55421. Please contact me at (650) 555-7890 or mchen@company.com to arrange replacement.', '2026-01-21 09:00:00')

;

Step 2: Redact All PII with AI_REDACT

Use AI_REDACT to automatically identify and mask all types of PII in the text. The AI understands context; it knows "Sarah Johnson" is a name, "415-555-0123" is a phone number, and "123 Main Street, San Francisco, CA 94102" is an address, even written in natural language.

#SQL

CREATE OR REPLACE TABLE redact_customer_feedback

as

SELECT

feedback_id,

SNOWFLAKE.CORTEX.AI_REDACT(feedback_text) AS redacted_text,

created_at

FROM raw_customer_feedback;

For some use cases, you may only need to redact specific PII categories. AI_REDACT allows you to specify which types to mask, leaving other information visible. This is useful when you need to preserve certain data for analysis while protecting the most sensitive information.

#SQL

SELECT

feedback_id,

SNOWFLAKE.CORTEX.AI_REDACT(

feedback_text,

ARRAY_CONSTRUCT('NAME', 'EMAIL', 'PHONE_NUMBER')

) AS redacted_text,

created_at

FROM raw_customer_feedback;

Step 3: Privacy-Safe Sentiment Analysis

Combine AI_REDACT with other Cortex AI functions to perform analytics while maintaining privacy compliance. Here, we analyze sentiment on redacted feedback, ensuring PII never enters our analytics pipeline.

#SQL

SELECT

feedback_id,

redacted_text,

SNOWFLAKE.CORTEX.AI_SENTIMENT(

redacted_text

) AS sentiment_score

FROM redact_customer_feedback;

Considerations When Using AI_REDACT

While AI_REDACT significantly simplifies PII detection, consider these points: The function currently works best with well-formed English text. AI-based detection may occasionally produce false positives (redacting non-PII) or false negatives (missing PII), so validate results on your specific data patterns. For mission-critical compliance, combine AI_REDACT with traditional validation methods during initial implementation. Always test thoroughly with representative samples before production deployment to ensure compliance with your organization’s policies.

AI_REDACT Performance and Cost Optimization

AI_REDACT is optimized for throughput and batch processing. Snowflake recommends processing numerous inputs from large SQL tables rather than row-by-row operations. Batch processing is typically better suited for AI Functions. Use a warehouse size no larger than MEDIUM when calling AI_REDACT, as larger warehouses do not increase performance but can result in unnecessary costs.

  • Result: you've built a privacy-compliant analytics pipeline that automatically strips PII before sentiment analysis, no regex patterns, no manual review, and no external services required. The AI understands context and handles variations like "my name is X", "X here", addresses written naturally, and more.

Key Advantages of Cortex AI

No data movement: Process sensitive data in-place, maintaining compliance and governance without exfiltration.

Enterprise security: Inherits Snowflake's RBAC, data masking, and audit capabilities. Models don't train on your data.

Model flexibility: Access multiple LLMs (Claude, GPT-4, Mistral, Llama, Gemini) through a unified interface.

Cost efficiency: Pay-per-use credits. No separate infrastructure or minimum commitments.

Seamless integration: Works with existing Snowflake workflows and BI platforms.

Considerations & Limitations of Snowflake Cortex AI

Platform dependency: Requires data to reside in Snowflake to fully leverage capabilities.

Limited customization: Less control over model tuning compared to dedicated ML platforms.

LLM variability: Outputs may be non-deterministic and require validation for critical use cases.

Data readiness required: Effectiveness depends on well-structured, governed data.

Cost variability: Credit-based pricing can scale quickly without proper monitoring.

Regional availability: Not all functions and models are available in every region; some require cross-region inference with data residency implications.

Feature maturity: Some capabilities are still evolving and may lack enterprise depth. Verify GA status before production deployment.

Pricing and Cost Management

Cortex AI uses credit-based consumption pricing, varying by model, operation, and tools used. It is important to monitor regularly the cost and disable the service unused.

There are a variety of things that drive cost in Cortex AI, including:

Model selection: Larger models (Claude, GPT-4) cost significantly more than smaller models (Mistral 7B, Gemma)

Cortex Search: Charges accrue continuously even without queries, always suspend or drop unused services

Data volume: Processing more text increases costs proportionally

Monitor consumption: Monitor usage regularly to identify and eliminate waste.

Tracking cost at organization-levels

SELECT SERVICE_TYPE, SUM(credits_used) AS total_credits

FROM SNOWFLAKE.ORGANIZATION_USAGE.METERING_DAILY_HISTORY

WHERE service_type ilike '%AI_SERVICES%'

AND usage_date >= DATEADD(day, -30, CURRENT_DATE()) --Last Month

GROUP BY SERVICE_TYPE;

For a breakdown of costs by specific AI service, refer to the following account usage views:

  • SNOWFLAKE.ACCOUNT_USAGE.CORTEX_AISQL_USAGE_HISTORY

  • SNOWFLAKE.ACCOUNT_USAGE.CORTEX_ANALYST_USAGE_HISTORY

  • SNOWFLAKE.ACCOUNT_USAGE.DOCUMENT_AI_USAGE_HISTORY

  • SNOWFLAKE.ACCOUNT_USAGE.CORTEX_SEARCH_SERVING_USAGE_HISTORY

Conclusion

Snowflake Cortex AI makes enterprise-grade artificial intelligence accessible and practical for data teams. By bringing LLMs, search, and analytics directly into the platform, it eliminates integration complexity while respecting governance requirements. Cortex AI works seamlessly with both structured data (tables, SQL) and unstructured data (text, documents), enabling comprehensive AI-powered insights across your entire data estate.

Our AI_REDACT example demonstrated how easily you can build privacy-compliant analytics pipelines. The function uses AI to understand context and identify PII in natural language, handling variations like "my name is X", addresses written naturally, and more without brittle regex patterns. Combine AI_REDACT with other Cortex functions like AI_SENTIMENT, AI_COMPLETE, or AI_SUMMARIZE to safely analyze sensitive text while maintaining GDPR, HIPAA, and CCPA compliance.

Keyrus & Snowflake

As a Premier Snowflake Partner, we help organizations adopt Cortex Code and Cortex AI in a coordinated manner, ensuring that productivity gains do not outpace governance maturity. Our approach aligns platform engineering, FinOps monitoring, and AI enablement to create sustainable enterprise AI architectures within Snowflake. Learn more about our partnership or contact us to start your Coretex ecosystem.

Read More: Snowflake Cortex Code Explained
What is Snowflake Cortex AI?

Snowflake Cortex AI is a fully managed service that provides low-latency access to industry-leading large language models (LLMs) and search capabilities directly within the Snowflake Data Cloud. It allows users to perform AI tasks like summarization, translation, and data extraction using standard SQL or Python without moving data outside the security perimeter.

What is Snowflake Cortex Code?

Snowflake Cortex Code is a context-aware AI agent built natively into the Snowflake platform. Unlike generic AI coding assistants, it understands your specific environment — including schemas, RBAC permissions, governance policies, and data relationships — to generate production-ready code through natural language prompts.

What is the difference between Cortex AI and Cortex Code?

through natural language prompts. Q2: What is the difference between Cortex AI and Cortex Code? Cortex AI applies AI and machine learning directly to your data through SQL functions (such as sentiment analysis or classification). Cortex Code is a development agent that helps you build data infrastructure — generating dbt pipelines, Airflow DAGs, and Streamlit apps. Cortex AI powers intelligence within your data; Cortex Code accelerates how you build on Snowflake.

How is Snowflake Cortex AI priced?

Cortex AI operates on a credit-based, consumption-only pricing model. Costs are determined by the specific model used (e.g., GPT-4 vs. Mistral 7B) and the volume of tokens processed. There are no upfront costs or separate infrastructure management fees.

What is the difference between Cortex Analyst and Cortex Search?

- Cortex Analyst is designed for structured data; it converts natural language questions into accurate SQL queries using a semantic model. - Cortex Search is a managed RAG (Retrieval-Augmented Generation) service for unstructured data, combining vector search and keyword matching to power chatbots and document discovery.

Does Snowflake use my data to train Cortex AI models?

No. A core advantage of Cortex AI is that Snowflake does not use customer data to train the underlying base models. All processing occurs within Snowflake’s governed boundary, ensuring that your proprietary data and sensitive information remain private and secure.

How does AI_REDACT work in Snowflake?

AI_REDACT is a Cortex AI function that uses LLMs to automatically detect and mask personally identifiable information (PII) within unstructured text. Unlike traditional regex-based masking, it understands context to identify names, addresses, and sensitive IDs embedded in natural language, such as customer support tickets or emails.

Can I use Cortex AI functions in any region?

Most Cortex AI functions are available in major AWS and Azure regions. However, specific functions like AI_REDACT or certain high-performance models may require "cross-region inference" if they are not yet natively hosted in your specific Snowflake deployment region.

How do I monitor Cortex AI costs and usage?

Organizations can track AI-related spend by querying the METERING_DAILY_HISTORY view in the ORGANIZATION_USAGE schema, specifically filtering for the AI_SERVICES service type. This provides a transparent breakdown of credit consumption across all AI functions.

What models are available through Snowflake Cortex AI?

Snowflake provides access to a variety of high-performance models from providers including Google (Gemini), Meta (Llama), Mistral AI, Anthropic (Claude), and OpenAI (GPT-4). This allows users to choose the right model size and performance level for their specific use case.

Why should I use AI_REDACT instead of Dynamic Data Masking?

Dynamic Data Masking is built for structured columns (like a dedicated "SSN" column). AI_REDACT is designed for unstructured "blobs" of text where PII is hidden inside sentences. Using them together provides a multi-layered defense for data privacy and compliance (GDPR, HIPAA).

What is AI (Artificial Intelligence)?

AI (Artificial Intelligence) The broad field of building machines that can perform tasks requiring human-like intelligence: reasoning, pattern recognition, decision-making, and language understanding.

What is ML (Machine Learning)?

ML (Machine Learning) A subset of AI where systems learn from data rather than being explicitly programmed. ML models improve with exposure; they find patterns and make predictions without being told the rules.

What are LLM (Large Language Models)?

LLM (Large Language Models) AI models trained on vast quantities of text that can understand and generate human language. The technology behind tools like ChatGPT, Claude, and Microsoft Copilot.

What does AI Literacy mean?

The term "AI literacy" gets used loosely, so it's worth being precise. AI literacy is the ability to understand, evaluate, and work with artificial intelligence in a way that is effective, purposeful, informed, and responsible. It has three interconnected dimensions: - #1- Conceptual understanding: Knowing what AI is, how it works at a meaningful (if not technical) level, what distinguishes different types of AI systems and how to select the right type of AI tools that would add value to the organization. - #2- Applied capability: Being able to identify where AI can add value in your work, how to interact with AI tools effectively, how to utilize it in a way that brings measurable results, and how to evaluate the outputs you receive. - #3- Ethical and governance awareness: Understanding the risks AI introduces, the biases it can carry, and the responsible practices that should govern its use.

What is AI Governance?

AI Governance is a set of rules, standards, and policies put in place to ensure AI is being used properly, ethically, legally, and responsibly. It often manages risks such as bias and privacy breaches, while enabling innovation. AI governance ensures that AI technologies are developed, used and maintained in a way that maximizes outcomes and trust while keeping risks and security under control. In short, AI governance maximizes the benefits of your AI investments, whilst minimizing risks and potential harms. Accumulating more than 28 years of experience in data and artificial intelligence, Keyrus helps you to set-up the right AI governance to create competitive advantage from AI.

Continue reading
  • Expert opinion

    Choosing the Right AI Framework: A Practical Guide for Teams Who Are Tired of Hype

  • White Paper

    Establishing a Data Strategy for Utilities: What it Is, Why You Need It, and How to Get Started

  • Expert opinion

    What Is AI Literacy? A Business Leader's Guide to Building It

  • Event

    Everything You Need to Know From HIMSS 2026

  • Expert opinion

    Snowflake Cortex Code Explained: Capabilities, Pricing, and Real-World Use Cases

Logo - Keyrus
Montreal

1396 rue Sainte Catherine Ouest #205 Montréal QC H3G 1P9 Canada