API docs

Compress a query with one POST.

Call the versioned detokenate endpoint with a bearer token and a JSON body containing your original query.

Endpoint

POST https://planferret.com/detokenate/v1
Authorization: Bearer pf_live_...
Content-Type: application/json

{ "q": "the original query" }

Response

{
  "q": "compressed query",
  "usage": {
    "original_tokens_estimate": 1200,
    "compressed_tokens_estimate": 650,
    "estimated_savings_percent": 46
  }
}

Limits

Free accounts receive 20 successful API queries per day. Paid accounts are unlimited at $0.01 per successful query and are billed through Stripe when daily usage exceeds 1,000 billable queries.