prune.

Documentation

Technical guides for the Prune LLM proxy — integration, security, and comparisons.

Quick answer

Prune is a managed AI gateway. Change your SDK base URL, add a Prune API key, and every response includes a cost/security receipt. Unique-path savings apply even when prompts never repeat; cache is upside. Try the free Prune Check tool below, or see how Prune compares to LiteLLM, cache-first gateways, Portkey, Helicone, and Cloudflare AI Gateway.

Prune is in private beta — request early access on the homepage. Full dashboard access unlocks after your invite.

Quick start

AES-256-GCM encryption for vaulted provider API keys vault · ≥25% median cost reduction on unique (non-cache) traffic in the published benchmark suite · Spend caps enforced in under 10ms, before the provider call

quickstart.py
pip install prune-sdk

from prune import OpenAI

client = OpenAI(
    api_key="sk-...",
    prune_api_key="prune_...",  # from dashboard → API Keys
)

resp = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)
print(client.last_prune_metadata)  # cache_hit, tokens_saved, ...