Skip to content

Add cortex-rest-api-pricing-calculator skill#9

Closed
sfc-gh-nashukla wants to merge 1 commit into
Snowflake-Labs:mainfrom
sfc-gh-nashukla:add-cortex-rest-api-pricing-calculator
Closed

Add cortex-rest-api-pricing-calculator skill#9
sfc-gh-nashukla wants to merge 1 commit into
Snowflake-Labs:mainfrom
sfc-gh-nashukla:add-cortex-rest-api-pricing-calculator

Conversation

@sfc-gh-nashukla
Copy link
Copy Markdown

Summary

  • Adds a new skill for calculating Snowflake Cortex REST API costs (token-based LLM inference endpoint)
  • Supports both conversational quick estimates and linking to a published Streamlit interactive app
  • Covers all models: Claude, GPT, DeepSeek, Mistral, Llama with prompt caching (Table 6b) and non-caching (Table 6c) rates

What it does

  • Quick Estimate mode: CoCo calculates costs inline given model, token volumes, and optional discount
  • Interactive App mode: Directs users to a published Streamlit app on Snowhouse with editable rates, PDF viewer, and Excel export
  • Includes references/pricing-rates.md with current rate tables from Snowflake Credit Consumption Table

Test plan

  • Invoke skill with $cortex-rest-api-pricing-calculator estimate cost for claude-sonnet-4-5
  • Verify Quick Estimate calculates correctly (e.g., 300M input × $3.00 = $900)
  • Verify Interactive App mode returns the Snowhouse Streamlit URL
  • Confirm skill does NOT trigger for Cortex AI SQL function pricing queries

.... Generated with Cortex Code

Conversational and interactive pricing calculator for Snowflake Cortex REST API.
Supports Claude, GPT, DeepSeek, Mistral, Llama models with prompt caching (Table 6b)
and non-caching (Table 6c) rates.

.... Generated with [Cortex Code](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code)

Co-Authored-By: Cortex Code <noreply@snowflake.com>
@sfc-gh-nashukla sfc-gh-nashukla force-pushed the add-cortex-rest-api-pricing-calculator branch from e8c6e50 to f3eadc3 Compare May 11, 2026 22:19
@sfc-gh-nashukla
Copy link
Copy Markdown
Author

Closing - will resubmit later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant