Skip to main content
POST
LLM Inference with Receipt
Records an individual LLM inference call that occurred within a running orchestration. Each inference record captures the model, provider, token counts, latency, cost, and content hashes — enabling fine-grained cost attribution and provenance auditing of every AI decision. This endpoint is called by agent runtimes after each LLM API call completes. The inference record is linked to the parent orchestration and included in the final transparency-log receipt.

Response

string
Unique identifier for this inference record.
string
Parent orchestration identifier.
string
LLM model used.
string
LLM provider.
integer
Input token count.
integer
Output token count.
number
Inference cost in US cents.
string
ISO 8601 timestamp when the inference was recorded.

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Body

application/json
agent_id
string<uuid>
required

Invoking agent

model_id
string
required
prompt_hash
string
required
provider
string
required
cost_usd
number
execution_id
string | null
input_tokens
integer
latency_ms
integer
metadata
any
output_tokens
integer
purpose
string | null
response_hash
string | null

Response

Inference result with receipt

response
string
receipt_id
string<uuid>
tokens_used
integer
cost
number<float>