List inference calls
Changed onPaginated, filterable list of inference calls (detect, locate, element_locate, and agent_chat for an agent run's model steps) the caller's user was billed for over a required time window (created_after/created_before). Filters: endpoint, model, session, free-text search. Order with order_by ('<field> <asc|desc>').
Request
- Base URL/api/v1 (relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header X-Axilio-Api-Key
Query parameters
Only inferences created at or after this time (RFC 3339).
Only inferences created before this time (RFC 3339).
Number of inferences per page (1-100).
Pagination offset.
Only inferences of one of these operations; repeatable. agent_chat is an agent run's model step.
Restrict results to a single model name.
Filter by inference (event) id substring.
Restrict results to inferences that ran under one phone session.
Sort expression '<field> [asc|desc]', direction defaulting to desc; field is created_at, cost_microdollars, latency_ms, endpoint, model or inference_id. Defaults to created_at desc.
Response
OK
Example response
{
"$schema": "/api/v1/UsageInferencesResponse.json"
}Changes
- warning
added the new
agent_chatenum value to the//response property for the response status - info
added the enum value
agent_chatto the propertyitems/of thequeryrequest parameterendpoint
- warning
- breaking
added the new required
queryrequest parametercreated_after - breaking
added the new required
queryrequest parametercreated_before - breaking
added the pattern
^(created_at|cost_microdollars|latency_ms|endpoint|model|inference_id)( (asc|desc))?$to thequeryrequest parameterorder_by - warning
deleted the
queryrequest parameterend_date - warning
deleted the
queryrequest parameterendpoint_filter - warning
deleted the
queryrequest parameterstart_date - info
added the new optional
queryrequest parameterendpoint - info
added the non-success response with the status
- info
added the non-success response with the status
- breaking