Sep 26, 2025: AI_COUNT_TOKENS function (Preview)

The Snowflake AI_COUNT_TOKENS function helps you size your AI workloads by calculating the total number of input tokens processed by large language models and task-specific functions, so you can size queries appropriately before hitting model limits and accurately estimate costs based on input token usage.

AI_COUNT_TOKENS의 주요 기능에는 다음이 포함됩니다.

  • Count tokens: Calculate the total number of input tokens for any AI Function, including AI_COMPLETE, AI_EMBED, AI_CLASSIFY, and AI_SENTIMENT. AI_COUNT_TOKENS also takes the specific model into account for functions that can use different models.

  • 비용 최적화 인사이트 확보: 작업을 실행하기 전에 정확한 입력 토큰 수를 확인하여 조직 전체에서 프롬프트 및 적절한 규모의 AI 지출을 최적화하는 데 도움이 됩니다.

  • 복잡한 구성 지원: 사용자 지정 레이블, 설명, 작업 정의, 예제를 사용한 분류와 같은 고급 기능의 영향을 분석하여 AI 워크플로의 전체 토큰 영향을 이해합니다

자세한 내용은 AI_COUNT_TOKENS 섹션을 참조하십시오.