Login
Back to Blog
EnglishComparison

AI Inference Speed Benchmark 2026: Tokens Per Second Compared

Compare real-world inference speed (tokens per second) across GPT-5, Claude Opus 4.6, Gemini 3 Pro, DeepSeek V3.2, and more — and how to optimize latency in production.

C
Crazyrouter Team
April 8, 2026 / 852 views
Share:
AI Inference Speed Benchmark 2026: Tokens Per Second Compared

AI Inference Speed Benchmark 2026: Tokens Per Second Compared#

When you're building production AI applications, inference speed matters as much as model quality. A 200ms first-token latency is fine for a chatbot. For real-time voice agents or live coding assistants, it can make or break the user experience.

This guide benchmarks real-world inference speed across major AI models in 2026: tokens per second (TPS), time to first token (TTFT), and what those numbers mean for your architecture.

Why Inference Speed Matters#

Different applications have different latency requirements:

Application TypeMax Tolerable TTFTNotes
Batch processing>10s acceptableCost > speed
Chatbot (web)1-3sStreaming hides latency
Code completion<500msIDE plugins are sensitive
Voice agent<300msHuman conversation rhythm
Real-time translation<200msMust feel instant
Edge/IoT<100msNetwork RTT is the ceiling

Key Metrics Explained#

  • TTFT (Time to First Token): How long from request sent to first token received. Critical for perceived responsiveness.
  • TPS (Tokens Per Second): Generation throughput after the first token. Determines how fast long responses complete.
  • E2E Latency: Total time for a complete response. For short replies, TTFT dominates; for long replies, TPS dominates.

AI Inference Speed Benchmark 2026#

Methodology: Benchmarks are based on community measurements, provider documentation, and Crazyrouter internal routing data (April 2026). Results vary significantly by region, time of day, and request size. All speeds measured via API with streaming enabled.

Large Models (70B+ Parameters)#

ModelProviderTTFT (p50)TPS (p50)Context
GPT-5.2OpenAI850ms62 tok/s128K
Claude Opus 4.6Anthropic1,100ms48 tok/s200K
Gemini 3 Pro PreviewGoogle720ms71 tok/s1M
Grok 4.1 FastxAI450ms95 tok/s128K
DeepSeek V3.2DeepSeek380ms110 tok/s64K
Kimi K2 ThinkingMoonshot1,200ms35 tok/s128K
MiniMax M2MiniMax520ms88 tok/s1M

Mid-Size / Efficient Models#

ModelProviderTTFT (p50)TPS (p50)Context
GPT-5 MiniOpenAI320ms145 tok/s128K
Claude Sonnet 4.5Anthropic580ms98 tok/s200K
Claude Haiku 4.5Anthropic180ms180 tok/s200K
Gemini 2.5 FlashGoogle250ms190 tok/s1M
Gemini 2.5 Flash LiteGoogle140ms240 tok/s1M
DeepSeek V3.2 (turbo)DeepSeek280ms135 tok/s64K
Qwen 2.5 VL 72BAlibaba410ms102 tok/s128K

Speed Champions (Specialized Fast Models)#

ModelTTFT (p50)TPSUse Case
Gemini 2.5 Flash Lite140ms240Batch, real-time
Claude Haiku 4.5180ms180Edge, high-volume
GPT-5 Mini320ms145Code completion
Grok 4.1 Fast450ms95Reasoning tasks

Speed vs Quality Trade-offs#

Here's how to think about model selection when speed matters:

code
High Speed, Lower Quality:
  Gemini 2.5 Flash Lite → Claude Haiku 4.5 → GPT-5 Mini
  
  Best for: autocomplete, simple Q&A, data extraction

Balanced Speed + Quality:
  Gemini 2.5 Flash → Claude Sonnet 4.5 → DeepSeek V3.2
  
  Best for: chatbots, content generation, analysis

High Quality, Slower:
  Claude Opus 4.6 → GPT-5.2 → Kimi K2 Thinking
  
  Best for: complex reasoning, code review, research

Real-World Latency by Region#

Model API servers are not geographically evenly distributed. Latency varies:

ProviderBest RegionAdditional Latency (Other Regions)
OpenAIUS East+50-200ms (EU), +100-300ms (Asia)
AnthropicUS West+80-250ms (EU), +150-400ms (Asia)
GoogleGlobal (Gemini)Low variance via CDN
xAIUS+100-350ms (non-US)
DeepSeekChina+150-400ms (US/EU), lower in Asia
CrazyrouterMulti-regionAuto-routes to lowest latency

Pro tip: Crazyrouter automatically routes your API calls to the lowest-latency provider endpoint for your region, which can reduce TTFT by 100-300ms for non-US users.

How to Optimize AI API Latency in Production#

1. Use Streaming Always#

python
from openai import OpenAI

client = OpenAI(
    api_key="your-crazyrouter-key",
    base_url="https://crazyrouter.com/v1"
)

# Always stream — users see output immediately
stream = client.chat.completions.create(
    model="claude-sonnet-4-5",
    messages=[{"role": "user", "content": "Explain streaming APIs"}],
    stream=True  # Critical for perceived latency
)

for chunk in stream:
    if chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)

2. Right-size Your Model Selection#

python
def select_model(task_type: str, quality_requirement: str) -> str:
    """Route to the right model based on task needs."""
    
    if task_type == "autocomplete" or quality_requirement == "low":
        return "gemini-2.5-flash-lite"  # Fastest
    
    elif task_type == "chat" and quality_requirement == "medium":
        return "claude-haiku-4-5"  # Fast + capable
    
    elif task_type == "reasoning" or quality_requirement == "high":
        return "claude-opus-4-6"  # Best quality
    
    else:
        return "claude-sonnet-4-5"  # Good default

3. Implement Smart Fallbacks#

python
import asyncio
from openai import AsyncOpenAI

client = AsyncOpenAI(
    api_key="your-crazyrouter-key",
    base_url="https://crazyrouter.com/v1"
)

async def fast_completion_with_fallback(prompt: str, timeout: float = 2.0):
    """Try fast model first, fall back to reliable model on timeout."""
    
    try:
        # Try the fastest model with a strict timeout
        response = await asyncio.wait_for(
            client.chat.completions.create(
                model="gemini-2.5-flash-lite",
                messages=[{"role": "user", "content": prompt}],
                max_tokens=512
            ),
            timeout=timeout
        )
        return response.choices[0].message.content
    
    except asyncio.TimeoutError:
        # Fall back to more reliable model
        response = await client.chat.completions.create(
            model="claude-sonnet-4-5",
            messages=[{"role": "user", "content": prompt}],
            max_tokens=512
        )
        return response.choices[0].message.content

4. Use Prompt Caching for Repeated Context#

If you're sending the same system prompt or large document in every request, prompt caching can dramatically reduce both latency and cost:

python
# Claude supports caching via cache_control
response = client.chat.completions.create(
    model="claude-opus-4-6",
    messages=[
        {
            "role": "system",
            "content": [
                {
                    "type": "text",
                    "text": "You are an expert code reviewer. " + large_codebase_context,
                    "cache_control": {"type": "ephemeral"}  # Cache this
                }
            ]
        },
        {"role": "user", "content": "Review this new function..."}
    ]
)

5. Parallel Requests for Independent Tasks#

python
import asyncio

async def parallel_analysis(code_files: list[str]):
    """Analyze multiple files in parallel instead of sequentially."""
    
    tasks = [
        client.chat.completions.create(
            model="claude-haiku-4-5",
            messages=[
                {"role": "user", "content": f"Review this code:\n{file}"}
            ]
        )
        for file in code_files
    ]
    
    # All requests fire simultaneously
    responses = await asyncio.gather(*tasks)
    return [r.choices[0].message.content for r in responses]

Speed Recommendations by Use Case#

Use CaseRecommended ModelReason
Real-time voice assistantGemini 2.5 Flash Lite or Claude Haiku 4.5TTFT <200ms
Code autocomplete (IDE)GPT-5 Mini or Gemini 2.5 Flash<350ms TTFT
Customer support chatbotClaude Sonnet 4.5Balance of speed + quality
Document analysis (batch)Claude Opus 4.6 or GPT-5.2Quality > speed
Long-form content generationDeepSeek V3.2Fast TPS for long outputs
Multilingual appGemini 3 ProStrong multilingual + fast
Image + text understandingQwen 2.5 VL 72BGood vision + reasonable speed

Node.js Latency Measurement Tool#

javascript
import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: process.env.CRAZYROUTER_API_KEY,
  baseURL: 'https://crazyrouter.com/v1',
});

async function measureLatency(model, prompt) {
  const start = Date.now();
  let firstTokenTime = null;
  let tokenCount = 0;
  
  const stream = await client.chat.completions.create({
    model,
    messages: [{ role: 'user', content: prompt }],
    stream: true,
  });
  
  for await (const chunk of stream) {
    if (!firstTokenTime && chunk.choices[0]?.delta?.content) {
      firstTokenTime = Date.now() - start;
    }
    if (chunk.choices[0]?.delta?.content) {
      tokenCount++;
    }
  }
  
  const totalTime = Date.now() - start;
  const generationTime = totalTime - firstTokenTime;
  const tps = Math.round(tokenCount / (generationTime / 1000));
  
  console.log(`Model: ${model}`);
  console.log(`TTFT: ${firstTokenTime}ms`);
  console.log(`TPS: ${tps} tokens/sec`);
  console.log(`Total: ${totalTime}ms`);
}

// Benchmark multiple models
const models = ['claude-opus-4-6', 'claude-sonnet-4-5', 'gemini-2.5-flash'];
const prompt = 'Explain the difference between async and parallel programming in 200 words.';

for (const model of models) {
  await measureLatency(model, prompt);
  await new Promise(r => setTimeout(r, 1000)); // Rate limit buffer
}

Frequently Asked Questions#

Q: Which AI model is fastest in 2026? A: For raw tokens per second, Gemini 2.5 Flash Lite (~240 TPS) and Claude Haiku 4.5 (~180 TPS) lead the efficient model category. For frontier models, Grok 4.1 Fast (~95 TPS) and DeepSeek V3.2 (~110 TPS) are notably quick.

Q: Does inference speed matter for my chatbot? A: Yes, but streaming mitigates it. With streaming, TTFT matters most — under 1s feels responsive. TPS matters more for long responses.

Q: Can I run benchmarks against Crazyrouter? A: Yes — the Node.js example above works with your Crazyrouter API key. Swap in any model name from the 300+ models available.

Q: Why is DeepSeek so fast? A: DeepSeek V3.2 uses a Mixture of Experts (MoE) architecture that activates only a subset of parameters per token, enabling high throughput without full model compute.

Q: How does prompt length affect speed? A: Longer prompts increase the "prefill" phase before generation starts, which raises TTFT. Very long contexts (>50K tokens) can add 500ms-2s to TTFT for most models.

Summary#

In 2026, the fastest frontier models for production use are:

  • Lowest latency: Gemini 2.5 Flash Lite, Claude Haiku 4.5
  • Best speed/quality balance: Claude Sonnet 4.5, Gemini 2.5 Flash, DeepSeek V3.2
  • Highest quality (slower): Claude Opus 4.6, GPT-5.2

For most production applications, streaming + model right-sizing eliminates perceived latency issues. For latency-critical use cases (voice, real-time coding), choose models with sub-300ms TTFT.

Crazyrouter provides access to all these models through a single OpenAI-compatible API, with automatic regional routing to minimize latency for your users worldwide.

Start building with low-latency AI APIs at Crazyrouter

Implementation Guides

Topics

ComparisonsComparison

Related Posts

Claude vs GPT vs Gemini Stability Comparison in 2026: Which API Is Best for Production?Comparison

Claude vs GPT vs Gemini Stability Comparison in 2026: Which API Is Best for Production?

Compare Claude, GPT, and Gemini on API stability, fallback options, payment friction, and production readiness. Choose the best stack for real deployment.

Apr 16
Best OpenRouter Alternative in 2026: A Real Unified AI API Gateway TestComparison

Best OpenRouter Alternative in 2026: A Real Unified AI API Gateway Test

We tested https://cn.crazyrouter.com/v1 as an OpenRouter alternative using /v1/models and six real chat completions across GPT, Gemini, Qwen and OpenAI-compatible routes. Here are the practical migration findings for developers.

Jun 12
Gemini Advanced Review May 2026: Is It Worth $20/Month for AI Power Users?Comparison

Gemini Advanced Review May 2026: Is It Worth $20/Month for AI Power Users?

"Honest review of Gemini Advanced in May 2026. We test Gemini 2.5 Pro, Deep Research, and the 1M token context window against real developer workflows."

May 5
AI Video Generation API Pricing May 2026: Veo3 vs Kling vs Runway vs SoraComparison

AI Video Generation API Pricing May 2026: Veo3 vs Kling vs Runway vs Sora

Comprehensive pricing comparison of AI video generation APIs in May 2026. Compare Veo3, Kling, Runway Gen 4, and Sora on cost per video, cost per second, API features, and find the best value through unified access.

Apr 29
AI API Pricing Comparison 2026: OpenAI, Claude, Gemini, DeepSeek, and Router CostsComparison

AI API Pricing Comparison 2026: OpenAI, Claude, Gemini, DeepSeek, and Router Costs

A practical AI API pricing comparison for startups choosing between direct provider accounts and a unified router in 2026.

May 23
Luma Ray 2 Review: AI Video Generation Quality, Speed, and API GuideComparison

Luma Ray 2 Review: AI Video Generation Quality, Speed, and API Guide

"In-depth review of Luma Ray 2 for AI video generation in May 2026. Quality benchmarks, API integration, pricing comparison, and production workflow tips."

May 5