Create Metric
Create a new metric.
Authorizations
Cartesia API key (sk_car_...). Get one at play.cartesia.ai/keys.
Headers
API version header.
2026-03-01 "2026-03-01"
Body
The name of the metric. This must be a unique name that only allows lower case letters, numbers, and the characters _, -, and .
The prompt associated with the metric, detailing the task and evaluation criteria.
The display name of the metric.
Response
The unique identifier for the metric.
The name of the metric. This is a unique name that you can use to identify the metric in the CLI.
The prompt associated with the metric, detailing the task and evaluation criteria.
The timestamp when the metric was created.
The display name of the metric, if available. This is the name that is displayed in the Playground.