Prompt Compression
Prompt Compression intelligently shrinks prompts before they're sent to an AI model, reducing token usage while maintaining response quality. It helps lower costs and maximize available context.
Overview
How it works
Client ──► FastRouter gateway ──► compression ──► Provider (OpenAI / Anthropic / …)Enabling it
Choosing an engine
Your content
Engine value
What it does
Type
Request format
Supported routes
Surface
Endpoints
Coverage
Parameters
General
Param
Type
Default
Description
Lossless structural (engine: "headroom")
Param
Type
Description
Rule-based prose (engine: "caveman")
Param
Type
Default
Description
ML prose (engine: "llmlingua")
Param
Type
Default
Description
Reading the results
Header
Example
Meaning
Anthropic Messages API notes
Examples
Fail-open behavior
Last updated
