SuperCompress
Benchmarks Agents Blog Changelog Docs Get API key Log in Playground GitHub

ChatGPT API cost reduction

Reduce ChatGPT API costs with query-aware compression

OpenAI API usage bills you for every input token, so the simplest saving is to stop sending the ones the model does not need for the question. SuperCompress is generally extractive and query-aware: it selects lines from your context that match the question and drops the rest before the call. Preprocessing may rewrite JSON or collapse stack frames before that selection.

By Arjun Shah - Creator of SuperCompress - Updated 2026-11-11

Where your ChatGPT costs come from

Most ChatGPT and OpenAI input spend in agents and apps comes from long logs and test output, tool and MCP results, file reads, retrieved chunks that do not match the question, and long chat history. SuperCompress is generally extractive and query-aware: it selects lines that match this question and drops the rest. Measure original_tokens / kept_tokens (or tokens_saved) on your own traffic.

Other ways to cut the bill

How to measure the cut

The hosted API returns original_tokens, kept_tokens, and tokens_saved as estimates of the compressed context, not provider-billed token counts. MCP compress_context reports compressed_tokens instead of kept_tokens. On MCP passthrough, hosted responses still return original_tokens but leave out compressed_tokens and tokens_saved; the local proxy leaves out all three. Check provider usage for billed totals. Hosted API + MCP, wired into Claude Code, Cursor, Codex and other agents via npm install -g supercompress-proxy && supercompress setup. Using Codex? See how to reduce Codex token usage.

Related cost pages

Frequently asked questions

Will compression work with ChatGPT / OpenAI streaming?

Yes. Compress first, then stream the response.

Does this help ChatGPT Plus / Team usage caps?

For API usage yes, fewer tokens per call. For ChatGPT consumer plans, use SuperCompress in your apps and agents that call the API.

Does it rewrite my prompt?

No. Selection is generally extractive: it keeps lines that match the question and drops the rest. Preprocessing may rewrite JSON or collapse stack frames before that selection. Your question is not compressed.