Endpoint Metrics
Log Endpoint Metric
POST
/
v0
/
endpoint-metrics
Append speed or cost data to the standardized time-series benchmarks for a custom endpoint (only custom endpoints are publishable by end users).
Authorizations
Authorization
string
requiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
endpoint_name
string
requiredName of the custom endpoint to append benchmark data for.
metric_name
string
requiredName of the metric to submit. Allowed metrics are: “input_cost”, “output_cost”, “time_to_first_token”, “inter_token_latency”.
value
number
requiredValue of the metric to submit.
measured_at
string
The timestamp to associate with the submission. Defaults to current time if unspecified.