Agent API

NULL Trim — Deterministic 50–85% LLM token-saver and context compressor

NULL Trim deterministically compresses bloated JSON payloads, noisy server logs, CSV tables, and Markdown/text before sending context to an LLM—cutting input token usage by 50–85% with zero LLM calls and exact before/after token telemetry.

POST /v1/trim 1 credit per compression Try in Console Read API Docs

Key Capabilities

Zero-LLM Deterministic Compression

Compresses JSON, logs, CSV, and Markdown in milliseconds with no extra LLM call or hallucination risk.

JSON Key Pruning & Compact TSV

Strips noisy metadata/nulls and converts uniform object arrays into compact TSV or JSON.

Log Folding & Query Focus

Deduplicates repeated log lines, trims timestamps/noise, and prioritizes query-relevant sections within max_tokens.

Exact Token Telemetry

Returns tokens_before, tokens_after, and savings_percent on every API and MCP call.

Quickstart Example

Compress bloated JSON or server logs deterministically

curl -X POST https://api.nullpk.com/v1/trim \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer nullpk_live_your_key" \
  -d '{"content":"...","mode":"auto","max_tokens":1200}'

Practical Use Cases

  • Shrinking oversized tool outputs (API JSON responses, database rows) before feeding them back to an LLM agent.
  • Compressing CI/CD or Kubernetes error logs into high-signal incident summaries under tight context budgets.
  • Converting bloated Markdown documentation or CSV exports to fit smaller, faster models.

Scope & Honest Limitations

  • Optimized for structured data, logs, CSV, and technical prose up to 256 KB per request.
  • Token counts use deterministic character/token heuristics calibrated for modern BPE tokenizers.

Pricing: 1,000 free startup credits; Developer $9/mo (25,000 credits); Business $49/mo (200,000 credits).

Frequently Asked Questions

Does NULL Trim use an LLM to summarize my context?

No. NULL Trim is 100% deterministic—it prunes boilerplate, folds duplicate log lines, and compacts schemas locally with zero LLM calls.

How much token savings can I expect?

Typical savings are 50–85% on bloated JSON payloads, repeated server logs, and wide CSV tables while keeping critical values and query matches intact.

Related NullPK Tools & Ecosystem Resources

NULL Read

Deterministic, SSRF-safe HTML-to-Markdown web extractor for AI agents

NULL Scratch

Ephemeral burn-after-read JSON state storage for AI agents

NULL Bridge

Encrypted outbound-only local tool relay for cloud AI agents