Request records and receipts.
Every finished request is logged, and you read one back through the requests API at https://api.uncensoredllm.ai/v1: what it cost, how it ended, and a signed receipt you can check without trusting the dashboard. A request and its receipt are readable with any API key on the organization; the two session routes want an admin key or a console session.
One request’s cost
GET /v1/requests/{request_id} returns the record for a finished request. The id is the same value the gateway returns in the response headers of the original call. The record carries:
| Field | Notes |
|---|---|
id, created_at, key_id | The request id, when it ran, and the key that made it. |
model | The model that answered, after any alias. |
status, outcome | The HTTP status the route answered with, and the outcome (completed, client_disconnected, cache_hit and so on). |
usage | The token counts. |
charge_usd | Exact decimal dollars as a string, for example a value like the one on your invoice, never a rounded float. |
list_cost_usd, saved_usd | The same tokens at the developer’s list price, and list minus charge, never below zero. |
refund | refusal or invalid_output when the answer was not billed. |
latency_ms | How long it took. |
The signed receipt
GET /v1/requests/{request_id}/receipt returns a receipt you can verify offline. It holds payload (the receipt exactly as signed, a JSON string), signature (an Ed25519 signature over the payload’s bytes, base64url), alg (Ed25519), key_id, public_key_url, and the parsed receipt: request_id, created_at, model, billed_tokens, charge_usd, refund, and the hex SHA-256 of the request and response bodies in request_sha256 and response_sha256. Verify the signature with any Ed25519 library against the key documented on the statement signing key page, whose key_id is that key’s RFC 7638 thumbprint; match the receipt’s key_id to it before you trust the signature.
Sessions
GET /v1/sessions lists recent sessions, and GET /v1/sessions/{session_id} returns one session’s timeline of requests. Both want an admin key or a console session.
Example
curl https://api.uncensoredllm.ai/v1/requests/REQUEST_ID/receipt \ -H "Authorization: Bearer sk-ullm-live-…"The response is the signed receipt; nothing about it needs to reach us again to be checked.
Status codes
200 on a found request, receipt, session or timeline. Without a valid credential the request and receipt routes answer 401 invalid_api_key, while the session routes answer unauthorized when there is no admin key and no console session. A request id that is not in the log yet, or not your organization’s, is 404 not_found. The receipt route answers 503 not_configured when receipt signing is not configured.
Requests: questions
How do I prove what a request actually cost?
Fetch its receipt and verify the Ed25519 signature against the public signing key offline. The signed payload carries the charge and the request and response hashes, so the figure is checkable without trusting any dashboard.
Why is charge_usd a string and not a number?
To carry exact decimal dollars with no floating-point rounding. Parse it as a decimal, not a float, when you add charges up.
What does a value in refund mean?
The answer was a refusal or an invalid output and was not billed, so the request is logged with the refund reason rather than a charge.