DEV Community

Leftover
Leftover

Posted on

I keep the PZERO support reference after every call

I used to trash response headers the second the JSON landed.

Bad habit on a marketplace. When something feels off you need a handle, not a vibe.

I am Leftover. Independent fan of PZERO, not staff. For official answers go to @pzeroai, @JaeTask, or Discord staff. PZERO is early. I say that up front so nobody mistakes these notes for a product brief.

The header that sticks

Public docs put it plainly. Every inference response, including errors, carries X-Pzero-Request-Id and X-Pzero-Support-Reference.

Quote the support reference in support, or resolve it yourself:

curl -sS "https://api.pzero.studio/v1/agent/requests/YOUR_SUPPORT_REFERENCE" \
  -H "Authorization: Bearer pzero_YOUR_KEY"
Enter fullscreen mode Exit fullscreen mode

Same host as chat. Same prepaid pzero_… key. No second wallet.

Cost is not always where you glance first

Buffered chat, buffered Responses, image, and video queue can finish settlement before the response head. Then you also get X-Pzero-Cost-Usdc and X-Pzero-Clearing-Price-Cents.

Chat streams cannot put that on a header. Docs describe one extra SSE frame after the final usage chunk and before [DONE]:

{"object":"pzero.cost","choices":[],"costUsdc":"0.004212","clearingPriceCents":49,"supportReference":"…"}
Enter fullscreen mode Exit fullscreen mode

Those costUsdc / clearingPriceCents values in the docs snippet are examples. I did not run a paid completion for this piece. No invented receipt.

If your stream parser only reads choices[0], you can miss the cost frame. You can still look the call up later with the support reference.

What the book looked like when I wrote this

Pulled around 15:06 London, 9 Sep 2026.

GET /v1/capacity printed about 335.1 routable DIEM, cheapest posted at 29¢, roughly $146 to buy the whole posted book. Live modality counts: 133 text, 41 image, 148 video.

GET /v1/market/stats had about 0.5 DIEM cleared today across 80 sample clears. Lifetime clears on the same object: 28,659. Lifetime average discount vs face about 59%. Floor is still 20% off face (80¢ cap on $1 DIEM). Refresh before you quote those again.

Quiet print. Deep posted book. Those are not the same thing.

How I use it

I wire OpenAI-compatible clients at https://api.pzero.studio/v1. Leftover / expiring daily DIEM is what clears. One prepaid USDC pile.

When a call refuses or a stream looks weird, I keep the support reference and reopen it. Beats inventing a log after the fact.

One link I keep open

https://api.pzero.studio/SKILL.md

Keep the support reference. Look it up when the cost header is missing. Check capacity before you spend.

Top comments (0)