PDCo
Distil API Context, distilled
Context infrastructure

Understand more than a model can hold.

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.

What you can build

Five endpoints behind one key.

POST
/v1/compress

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.

POST
/v1/structure

Structure

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.

POST
/v1/relate

Relate

Give it a few terms and get back the ones most closely related — for suggestions, search, and tagging.

GET
/v1/recent

Recent

A live feed of what's surfacing across the platform right now.

POST
/v1/recognize

Recognize

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.

Quickstart

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" } }

Pricing

Priced in credits — the same unit as the rest of the platform. No seats, no minimums.

EndpointPrice
POST /v1/compressby input size (scales with tokens)
POST /v1/structurebased on usage (≈1–20 cr)
POST /v1/relate2 credits
GET  /v1/recent1 credit
POST /v1/recognize1 credit
Default

Pay with credits

Calls draw from your plan's monthly balance. Start free; scale your plan as volume grows. Nothing else to wire up.

For platforms

Usage-based

Prefer pure pay-as-you-go? Switch a key to metered and you're billed only for the calls you make.

See plan pricing & credit allowances →

Scopes & control

Every key is scoped, rate-limited, and revocable from your console.

Least-privilege scopes

  • structure:read — compress & understand content
  • relate:read — find related ideas
  • recognize:read — match items

Built for production

  • Keys are shown once, stored hashed
  • Per-key rate limits
  • Instant revoke
  • Per-key usage in your console
Generate your first key