Data with Zach
YouTube
November 5th: The AI Trade is Dying Q&A
The speaker explains how to evaluate and manage the cost of large‑language‑model (LLM) APIs, comparing token pricing between providers such as Anthropic and DeepSeek. He illustrates the core problem of high AI infrastructure spend and shows how cheaper models can deliver similar performance for routine tasks like customer service. This material is useful for data engineers, ML‑ops engineers, and finance analysts who build and maintain cost‑effective AI pipelines. No specific data‑engineering tools are mentioned, but the concepts apply to any environment that consumes LLM APIs or analyzes financial data.
Insights
1. Token pricing and cost per token
1.1 Token pricing is the charge per 1,000 tokens processed by an LLM API; it directly impacts total spend for large workloads.
1.2 Example: 20 billion tokens cost $20,000 on Anthropic but $160 on DeepSeek, a 125× cost reduction.
1.3 Use case: When scaling a chatbot or data‑processing pipeline, calculate total tokens per month to forecast budget.
1.4 Pitfall: Ignoring token limits or over‑estimating token usage can lead to unexpected bills; always monitor usage metrics.
2. Comparing LLM providers for cost‑efficiency
2.1 Anthropic and DeepSeek differ in pricing models, latency, and model quality; DeepSeek offers cheaper options for many use cases.
2.2 When choosing a provider, evaluate the trade‑off between cost, latency, and accuracy for your workload.
2.3 Example: For customer‑service chatbots, a 10% drop in response quality may be acceptable for a 99% cost saving.
2.4 Common mistake: Switching providers without testing performance can degrade user experience.
3. AI budget cuts and their impact on data pipelines
3.1 Many tech companies are reducing internal AI budgets, cutting spending on high‑cost models and infrastructure.
3.2 Data engineers must anticipate tighter budgets and prioritize cost‑effective solutions or open‑source alternatives.
3.3 Use case: Re‑architect pipelines to batch requests or use cheaper models for non‑critical tasks.
3.4 Trade‑off: Lower cost may mean less powerful models, requiring more engineering effort to maintain quality.
4. Token maxing vs. cost‑effective usage
4.1 Token maxing is the practice of generating the maximum number of tokens to justify high API costs; it is often unnecessary.
4.2 Cost‑effective usage involves setting realistic token limits, pruning prompts, and reusing embeddings.
4.3 Example: A 2‑year call option on a model can be expensive; instead, use a short‑term plan with lower token limits.
4.4 Pitfall: Over‑promising token limits can inflate budgets without delivering proportional value.
5. Using cheaper models for customer service
5.1 The speaker suggests that for routine customer‑service tasks, a less sophisticated model can save 99% of the cost.
5.2 When evaluating models, consider the required accuracy versus the cost savings; a 10% accuracy drop may be acceptable for low‑impact queries.
5.3 Example: Deploying a DeepSeek model for FAQ bots reduces API spend while maintaining acceptable response quality.
5.4 Trade‑off: Cheaper models may have slower inference times or less nuanced language understanding.
6. Financial data analysis with forward PE ratios
6.1 Forward PE ratio measures expected earnings relative to current price; it helps assess valuation of tech stocks like NVIDIA and Micron.
6.2 Data analysts can use financial APIs or databases to compute forward PE ratios and compare across sectors.
6.3 Example: Micron’s forward PE of 4 suggests a cheap valuation relative to earnings, while NVIDIA’s 20 indicates higher expectations.
6.4 Misconception: A low PE does not guarantee profitability; it must be considered alongside growth prospects and market conditions.
1.1 Token pricing is the charge per 1,000 tokens processed by an LLM API; it directly impacts total spend for large workloads.
1.2 Example: 20 billion tokens cost $20,000 on Anthropic but $160 on DeepSeek, a 125× cost reduction.
1.3 Use case: When scaling a chatbot or data‑processing pipeline, calculate total tokens per month to forecast budget.
1.4 Pitfall: Ignoring token limits or over‑estimating token usage can lead to unexpected bills; always monitor usage metrics.
2. Comparing LLM providers for cost‑efficiency
2.1 Anthropic and DeepSeek differ in pricing models, latency, and model quality; DeepSeek offers cheaper options for many use cases.
2.2 When choosing a provider, evaluate the trade‑off between cost, latency, and accuracy for your workload.
2.3 Example: For customer‑service chatbots, a 10% drop in response quality may be acceptable for a 99% cost saving.
2.4 Common mistake: Switching providers without testing performance can degrade user experience.
3. AI budget cuts and their impact on data pipelines
3.1 Many tech companies are reducing internal AI budgets, cutting spending on high‑cost models and infrastructure.
3.2 Data engineers must anticipate tighter budgets and prioritize cost‑effective solutions or open‑source alternatives.
3.3 Use case: Re‑architect pipelines to batch requests or use cheaper models for non‑critical tasks.
3.4 Trade‑off: Lower cost may mean less powerful models, requiring more engineering effort to maintain quality.
4. Token maxing vs. cost‑effective usage
4.1 Token maxing is the practice of generating the maximum number of tokens to justify high API costs; it is often unnecessary.
4.2 Cost‑effective usage involves setting realistic token limits, pruning prompts, and reusing embeddings.
4.3 Example: A 2‑year call option on a model can be expensive; instead, use a short‑term plan with lower token limits.
4.4 Pitfall: Over‑promising token limits can inflate budgets without delivering proportional value.
5. Using cheaper models for customer service
5.1 The speaker suggests that for routine customer‑service tasks, a less sophisticated model can save 99% of the cost.
5.2 When evaluating models, consider the required accuracy versus the cost savings; a 10% accuracy drop may be acceptable for low‑impact queries.
5.3 Example: Deploying a DeepSeek model for FAQ bots reduces API spend while maintaining acceptable response quality.
5.4 Trade‑off: Cheaper models may have slower inference times or less nuanced language understanding.
6. Financial data analysis with forward PE ratios
6.1 Forward PE ratio measures expected earnings relative to current price; it helps assess valuation of tech stocks like NVIDIA and Micron.
6.2 Data analysts can use financial APIs or databases to compute forward PE ratios and compare across sectors.
6.3 Example: Micron’s forward PE of 4 suggests a cheap valuation relative to earnings, while NVIDIA’s 20 indicates higher expectations.
6.4 Misconception: A low PE does not guarantee profitability; it must be considered alongside growth prospects and market conditions.