Ingest AI calls
Ingest a batch of AI records (limited to max 2000 per request) — model calls and non-LLM cost items, told apart by record_kind (omitted means llm_call). Records are processed asynchronously; a record with the same id is deduplicated on storage.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
AI calls payload.
1 - 2000 elementsCaller-generated record id. A record with the same id is deduplicated on storage.
1 - 128"aic_01JT4E2Q4N8N0F0X4S2M3R7YQK"
The run this record belongs to. Every record captured inside one hyperline.run() shares it.
1 - 128"run_01JT4E2Q4N8N0F0X4S2M3R7YQL"
The enclosing run, when this one was opened inside another. Null at the top of a run tree.
1 - 128null
The customer this usage is attributed to — the external id your application knows them by, or a Hyperline cus_… id.
1 - 255"cus_xyz789"
Stable agent identity, e.g. the agent's name or type.
1 - 128"invoice-copilot"
What the run does, e.g. deep_research. Null when unnamed.
1 - 128"monitoring_analysis"
The model's provider, or the vendor on a cost record.
1 - 64"anthropic"
The model invoked, or the item purchased on a cost record.
1 - 128"claude-sonnet-5"
Uncached input tokens.
0 <= x <= 100000000012400
Output tokens.
0 <= x <= 10000000001300
Input tokens served from the provider's prompt cache.
0 <= x <= 10000000009000
Input tokens written into the provider's prompt cache.
0 <= x <= 10000000000
Reasoning tokens, on models that bill them separately.
0 <= x <= 10000000000
Whether the call succeeded.
ok, error "ok"
Wall-clock duration of the call.
x >= 01840
When the call started, as an ISO instant.
"2026-08-18T10:22:31.201Z"
Free-form bag carried alongside the record. At most 50 keys, string values at most 1024 characters, 4096 bytes once serialized.
What the record is. llm_call is a model invocation and the token counters mean something; cost is a non-LLM cost item whose quantity rides in usage_extra. Absent means llm_call, so an older SDK keeps ingesting unchanged.
llm_call, cost "llm_call"
Cost dimensions beyond the token classes — provider extras (web searches, image generations) or the caller's own units (vector queries, gpu_seconds). Keys must match [a-z0-9_.]{1,64}, values must be finite and at most 1e12, at most 20 keys.
Response
Calls accepted.
Number of calls accepted for asynchronous processing.
42

