Blog

Insights & Guides

Deep dives on compiled decision intelligence, sub-100ms inference, and the economics of replacing LLM API calls.

guide

LLM Classification vs Fine-Tuning vs Distillation: Which to Use?

A technical comparison of direct LLM classification, fine-tuning, and distillation/compilation — with a decision tree for choosing the right approach.

10 Jul 202611 min read
guide

The Complete Guide to Compiled Decision Intelligence

Compiled Decision Intelligence turns LLM reasoning into fast, deployable classifiers. The definitive guide to the three-stage pipeline, training process, and when to use it.

10 Jul 202611 min read
guide

How to Connect Sparkient to Claude, Cursor, and VS Code via MCP

Step-by-step setup for Sparkient's MCP server in Claude Desktop, Cursor, and VS Code. Create, train, and call decision types from your IDE.

10 Jul 20268 min read
guide

How to Run ML Classifiers Offline with Zero Cloud Dependencies

Deploy ONNX classifiers to air-gapped environments, IoT devices, and edge locations. Sub-10ms inference with no network calls.

10 Jul 20267 min read
guide

How to Build a Moderation API Without Any Labelled Data

Use an LLM as a teacher to generate synthetic training data, then compile a moderation classifier that runs at sub-100ms — no labelled dataset required.

10 Jul 20269 min read
guide

How to Train a Classifier Using an LLM as Teacher

A technical deep-dive into the teacher-student pattern: use an LLM to generate labelled training data, then compile a fast classifier that runs in production.

10 Jul 202610 min read
economics

What Does Content Moderation Actually Cost? A Real Comparison

A detailed cost comparison of content moderation options — human review, free APIs, LLM calls, commercial services, and compiled models — at real production volumes.

10 Jul 20269 min read
guide

How to Add Content Moderation to a Next.js App in 5 Minutes

Step-by-step guide to adding real-time content moderation to your Next.js app with Sparkient — both API route and edge middleware approaches.

9 Jul 20268 min read
guide

How to Add Decision Gates to a LangChain Agent

Add fast pre-action decision gates to LangChain agents — classify actions as act, ask_user, escalate, or block in under 100ms without a second LLM call.

9 Jul 20269 min read
guide

When Should You Replace an LLM Call with a Classifier?

A practical checklist for deciding when to replace an LLM call with a faster, cheaper classifier — and when to keep the LLM.

9 Jul 202610 min read
comparison

Best Content Moderation APIs in 2026: Speed, Accuracy, and Cost Compared

A fair comparison of the top content moderation APIs — Perspective, OpenAI, Azure, Hive, and Sparkient — ranked by latency, accuracy, cost, and customization.

8 Jul 20269 min read
comparison

Fastest ML Inference APIs Compared: Latency Benchmarks 2026

A latency-tier breakdown of ML inference options in 2026 — from sub-1ms rules to multi-second LLM calls — with real benchmarks and guidance on what fits where.

8 Jul 20269 min read
diagnosis

How to Audit Your LLM Spending: A Developer's Guide

A step-by-step guide to finding every LLM call in your codebase, calculating what each one costs, and identifying which calls are candidates for compilation into cheaper, faster classifiers.

7 Jul 202610 min read
diagnosis

Why You Shouldn't Call an LLM in Your Request Handler

Putting an LLM call in your synchronous request handler creates unpredictable latency, cascade failures, and cost scaling problems. Here are the alternatives — and when each one applies.

7 Jul 20269 min read
diagnosis

I Need a Classifier but I Don't Have Training Data or an ML Team

Traditional ML classifiers need labelled data and ML expertise. Most startups have neither. Here are four options — from quick-and-dirty to production-grade — and how to pick the right one.

6 Jul 20269 min read
diagnosis

LLM Costs Scale Linearly with Traffic — How to Break the Curve

Every LLM API charges per token or per request. That means 2× traffic = 2× cost. Here's how compiled models convert variable cost to fixed cost — and the crossover point where it makes sense.

5 Jul 20269 min read
diagnosis

I Built an LLM Prompt That Works — How Do I Deploy It Without the LLM?

Your prompt classifies perfectly in testing. But deploying it means paying per-call at scale. Here's how to compile your prompt's intelligence into a sub-100ms classifier.

4 Jul 20268 min read
diagnosis

My AI Agent Takes 3 Seconds Per Decision — How to Get Under 100ms

AI agents that call LLMs for every decision are slow. Here's how to identify which decisions can be compiled into sub-100ms classifiers — and which actually need the full LLM.

3 Jul 20267 min read
diagnosis

I Need to Moderate Content but Can't Add a 1-Second API Call

Compare every content moderation approach by latency and accuracy: keyword filters, Perspective API, OpenAI Moderation, GPT-4o, and compiled classifiers.

2 Jul 202611 min read
diagnosis

My Rules Engine Can't Handle Edge Cases but LLMs Are Too Slow

Stuck between rules that are fast but dumb and LLMs that are smart but slow? Here's how a three-stage pipeline gives you both speed and accuracy.

30 Jun 202610 min read
diagnosis

I'm Spending $3K/Month on OpenAI for Classification — What Are My Options?

A cost breakdown of every alternative to GPT-4o for classification workloads: cheaper models, fine-tuning, open-source, and compiled classifiers.

27 Jun 20269 min read
diagnosis

My LLM Calls Are Adding 800ms to Every Request — How to Fix It

You've diagnosed the problem: the LLM call is the bottleneck. Here are four options to fix it, with real latency numbers and code for each.

25 Jun 20269 min read
symptom

From Prototype to Production: What Breaks When You Scale AI Features

Your AI feature works at 100 requests/day. Here's exactly what breaks at 10K, 100K, and 1M — and how to fix each stage before it hits.

23 Jun 20269 min read
symptom

5 Architecture Anti-Patterns That Break at 100K Requests Per Day

Five architecture mistakes that work fine at 1K requests/day but collapse at 100K. How to spot them, why they break, and what to do instead.

20 Jun 202610 min read
symptom

Your Cloud Bill Doubled — Here's How to Find the LLM Line Item

A practical guide to auditing LLM spend, calculating per-request costs, and finding cheaper alternatives for classification workloads.

18 Jun 20268 min read
symptom

Why Your API Is Slow: Finding the LLM Bottleneck in Your Stack

Your API response time jumped from 50ms to 900ms. Here's how to find and fix the LLM call hiding in your request handler.

16 Jun 20268 min read