Skip to main content

Overview

The Snowflake Cortex REST API integration allows Genesis Data Agents to leverage state-of-the-art large language models (LLMs) directly within your Snowflake environment. This enables powerful AI capabilities for text generation, embeddings, and unstructured data analysis—all without requiring a Snowflake warehouse.

Key Benefits

  • No Warehouse Required: Cortex REST API operates without warehouse compute costs
  • Multiple Model Options: Access models from OpenAI, Anthropic, Meta, Mistral AI, and DeepSeek
  • Server-Sent Events: Streaming token generation for responsive user experiences
  • Native Integration: Seamlessly works within Genesis agent implementations

How Genesis Uses Cortex REST API

Genesis integrates with Cortex REST API through the bot_implementation configuration, allowing agents to use Cortex models as their underlying LLM provider. For models served only by Snowflake’s Messages API, Genesis sends structured response_format schemas through the Messages API’s output_config.format. Other models keep using the OpenAI-compatible Chat Completions endpoint, which also handles structured responses; the Messages route is used for those only when the configured Messages path has no response format or the selected model is Messages-only. The Messages API always constrains a supplied schema, so OpenAI’s strict flag is not forwarded. Schema-less JSON mode, or an empty schema, is sent without a structured-output constraint.
Team Wiki reconciliation uses your active LLM provider. When Cortex is the active provider, wiki_write can use a Cortex model such as cortex/claude-sonnet-4-6 from wiki.extractor_model to reconcile a new learning with existing ones. If you switch providers, choose a model from the new active provider. See Team Wiki Learnings.

Prerequisites

Before configuring Cortex REST API in Genesis, ensure you have:
  1. Snowflake Account with Cortex AI features enabled in a supported region
  2. Authentication Credentials: Programmatic Access Token (PAT) or Snowflake key-pair (PEM private key plus account and user)
  3. CORTEX_USER Role: Granted to your user/role (usually inherited from PUBLIC role)
  4. Genesis Data Agents platform deployed (SPCS or standalone)

Configure in Genesis

On standalone or non-native deployments, open Config -> AI Providers, select Snowflake Cortex, and choose Authentication Method:
  • Personal Access Token (PAT) — enter Account URL and Personal Access Token.
  • Key Pair (JWT) — enter Snowflake Account, Snowflake User, Private Key (PEM), and optional Private Key Passphrase for encrypted keys.
Use Test Connection to verify either mode before saving. In Snowflake Native App / SPCS runtimes where Cortex is already available, Genesis can use native runtime credentials without entering these fields. See AI Providers for embedding-method options and model-assignment details.

Additional Resources

Support

For issues specific to:
  • Cortex REST API: Contact Snowflake Support
  • Genesis Integration: Email [email protected]
  • Rate Limit Increases: Submit ticket to Snowflake Support with usage projections