AI Cost Estimator

Estimate your AI coding costs

← Back to Blog

Step 3.7 Flash: 196B MoE with 78% Less KV-Cache Cost Than DeepSeek

June 2, 2026 · 5 min read

Abstract visualization of neural network architecture with glowing data pathways

Step 3.7 Flash: Architecture-Level Cost Reduction

StepFun (阶跃星辰) has released Step 3.7 Flash, a 196 billion parameter Mixture-of-Experts model that takes a fundamentally different approach to inference efficiency. The headline number: its KV-cache memory cost is only ~22% of DeepSeek's equivalent — a 78% reduction. This isn't achieved through compression or quantization tricks, but through a novel multi-matrix decomposition attention mechanism baked into the architecture from training.

The model is released under Apache 2.0 and is already available for inference via Fireworks AI. StepFun designed the attention and FFN (feed-forward network) layers to be decoupled, allowing hardware-optimized serving configurations that weren't possible with standard transformer architectures.

Why KV-Cache Cost Matters for Your Bill

KV-cache (key-value cache) is the memory used to store the attention state for all previous tokens in a conversation or context window. For long-context workloads — large codebases, multi-file refactoring, extended agent sessions — KV-cache is often the dominant cost driver, not the actual computation. When you're paying for inference on a 100K+ token context, most of what you're paying for is the GPU memory reserved for that cache.

This is why long-context pricing is so much more expensive than short prompts. A model serving a 200K context window needs 4-10x more GPU memory per request than the same model on a 10K context. Reducing KV-cache by 78% means the same hardware can serve 3-4x more concurrent long-context requests — a direct path to lower per-token pricing.

Theoretical Cost vs. DeepSeek R1

DeepSeek R1 currently prices at $0.70 per million input tokens and $2.50 per million output tokens. If Step 3.7 Flash achieves similar reasoning quality while requiring only 22% of the KV-cache resources, the theoretical floor for its pricing is significantly lower. At equivalent hardware utilization, inference providers could offer Step 3.7 Flash at roughly:

Model Input (per 1M) Output (per 1M) KV-Cache Relative Cost
DeepSeek R1 $0.70 $2.50 100% (baseline)
DeepSeek V4 Pro $0.435 $0.87 ~80%
Step 3.7 Flash (projected) ~$0.15-0.30 ~$0.50-1.00 22%

These projections assume Fireworks AI passes along the efficiency gains as pricing advantages. Even if margins stay the same percentage, the absolute cost per token drops proportionally to the hardware efficiency. Early Fireworks pricing should confirm whether these numbers hold.

Long-Context Coding: Where 78% KV Reduction Hits Hardest

The impact of 78% KV-cache reduction is most dramatic for long-context coding workloads. Consider an AI coding agent that ingests a 150K-token codebase context for a refactoring task. With DeepSeek R1, the KV-cache cost alone for maintaining that context across a multi-turn session might run $2-5. With Step 3.7 Flash's architecture, the same session costs $0.44-1.10 in KV-cache resources.

For agent systems that maintain persistent context across dozens of turns — Claude Code's sub-agent pattern, for example — the savings compound. A 20-turn refactoring session with 150K base context could save $30-80 in inference costs per task compared to conventional architectures. That adds up to thousands per month for teams running continuous coding agents.

Multi-Matrix Decomposition: The Technical Edge

Step 3.7 Flash's efficiency comes from multi-matrix decomposition attention, which factorizes the standard key-value matrices into smaller, lower-rank representations without losing expressiveness. Unlike post-hoc compression (quantizing KV-cache after training), this decomposition is part of the model's native architecture — it was trained to work with compressed attention states from day one.

The decoupled attention and FFN design also enables serving optimizations that traditional transformers can't exploit. Inference providers can allocate different hardware configurations for the attention pass versus the FFN pass, matching each to its optimal compute/memory ratio. This is why StepFun emphasizes "hardware-optimized serving" — the architecture was designed with deployment economics in mind.

What This Means for the Pricing Landscape

Step 3.7 Flash adds another entrant to the "efficient reasoning" tier that's rapidly filling up. Alongside DeepSeek V4 Flash ($0.098/$0.197) for lightweight tasks and DeepSeek R1 ($0.70/$2.50) for reasoning, Step 3.7 Flash targets the middle — reasoning-capable inference at dramatically lower cost per context token. For developers building long-context coding agents, it could become the optimal choice for tasks that need reasoning but don't justify Claude Opus 4.8 at $5/$25.

The broader signal: architectural innovation is now the primary driver of inference cost reduction, not just hardware scaling. Models designed from scratch for serving efficiency will consistently undercut models that optimize after training. Budget-conscious teams should watch Fireworks AI's Step 3.7 Flash pricing closely — it may establish a new floor for reasoning-capable long-context inference.

Frequently Asked Questions

What is KV-cache and why does reducing it lower costs?

KV-cache stores the attention state for all tokens in your context window. For long-context requests (100K+ tokens), KV-cache memory is often the dominant cost — it determines how many concurrent requests a GPU can serve. Reducing KV-cache by 78% means the same GPU handles 3-4x more requests, enabling proportionally lower per-token pricing.

How does Step 3.7 Flash compare to DeepSeek R1 in quality?

Step 3.7 Flash is focused on reasoning efficiency and targets comparable quality to DeepSeek R1 for structured reasoning tasks. Benchmarks are still emerging. The key advantage is cost per token at long context lengths, where the 78% KV-cache reduction has the biggest impact.

Can I self-host Step 3.7 Flash?

Yes. It's Apache 2.0 licensed and available for self-hosting. However, at 196B total parameters (MoE), it requires substantial infrastructure — multiple high-VRAM GPUs. For most teams, using it through Fireworks AI or similar inference providers is more practical than self-hosting.

Is Step 3.7 Flash good for AI coding tasks?

It's well-suited for long-context coding tasks where you need to ingest large codebases — refactoring, cross-file analysis, and agent sessions with persistent context. For short, single-file tasks, the KV-cache advantage matters less and cheaper models like DeepSeek V4 Flash ($0.098/$0.197) may be more cost-effective.

Want to calculate exact costs for your project?