Verify a receipt

Every paid response carries a signed receipt. Paste one here and your browser checks the signature against Phantom’s public key. No Phantom server gives the verdict.

The x-phantom-receipt header, a whole curl -i response, or a stream’s phantom.receipt event.

Get a receipt

Paid calls return one in the x-phantom-receipt header. A chat stream sends it in a phantom.receipt event before it ends, and a video job returns it when you poll the finished job.

curl -si https://phantom.codes/v1/chat/completions \
  -H "Authorization: Bearer $PHANTOM_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "phantom-1",
       "messages": [{"role": "user", "content": "Hello"}]}' \
  | grep -i x-phantom-receipt