Compress
Fold a corpus no model can fit — an entire codebase, a quarter of transcripts, a stack of filings — down to what matters, sized for any context window.
Distil takes in documents, code, images, video, and audio — millions of tokens in a single call — and hands back a compact, ready-to-use result. All the substance, a fraction of the size — sized for any model's window.
Five endpoints behind one key.
Fold a corpus no model can fit — an entire codebase, a quarter of transcripts, a stack of filings — down to what matters, sized for any context window.
Turn raw text, images, video, or audio into clean, usable output — the substance pulled out of the noise. It reads the text in images and transcribes audio along the way.
Give it a few terms and get back the ones most closely related — for suggestions, search, and tagging.
A live feed of what's surfacing across the platform right now.
Match an item against a library you've built. You get back what it is — or an honest nothing, when it can't be sure.
Base URL: https://dev.primarydesignco.com/api/v1. Authenticate with Authorization: Bearer <key>. Every response carries a usage block.
# Compress a large body of content curl https://dev.primarydesignco.com/api/v1/compress \ -H "Authorization: Bearer pdco_live_…" \ -H "Content-Type: application/json" \ -d '{"text":"…480,000 tokens of source…","target_token_budget":8000}' # → { "data": { "compressed_text": "…", "original_tokens": 480000, # "compressed_tokens": 8000, "compression_ratio": 60 }, # "usage": { "credits": 144, "billing_mode": "credits" } }
Priced in credits — the same unit as the rest of the platform. No seats, no minimums.
| Endpoint | Price |
|---|---|
| POST /v1/compress | by input size (scales with tokens) |
| POST /v1/structure | based on usage (≈1–20 cr) |
| POST /v1/relate | 2 credits |
| GET /v1/recent | 1 credit |
| POST /v1/recognize | 1 credit |
Calls draw from your plan's monthly balance. Start free; scale your plan as volume grows. Nothing else to wire up.
Prefer pure pay-as-you-go? Switch a key to metered and you're billed only for the calls you make.
Every key is scoped, rate-limited, and revocable from your console.
structure:read — compress & understand contentrelate:read — find related ideasrecognize:read — match items