Authorizations
Bearer token authentication. Format: 'Bearer YOUR_API_KEY'
Body
application/json · object[]
The body is of type object[]
.
Response
200 - application/json
Ok
The response is of type object
.
curl --request POST \
--url https://api.helicone.ai/v1/public/compare/models \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '[
{
"provider": "<string>",
"names": [
"<string>"
],
"parent": "<string>"
}
]'
{
"data": [
{
"timeSeriesData": {
"errorRate": [
{
"value": 123,
"timestamp": "<string>"
}
],
"successRate": [
{
"value": 123,
"timestamp": "<string>"
}
],
"ttft": [
{
"value": 123,
"timestamp": "<string>"
}
],
"latency": [
{
"value": 123,
"timestamp": "<string>"
}
]
},
"requestStatus": {
"errorRate": 123,
"successRate": 123
},
"geographicTtft": [
{
"median": 123,
"countryCode": "<string>"
}
],
"geographicLatency": [
{
"median": 123,
"countryCode": "<string>"
}
],
"feedback": {
"negativePercentage": 123,
"positivePercentage": 123
},
"costs": {
"completion_token": 123,
"prompt_token": 123
},
"ttft": {
"p99": 123,
"p95": 123,
"p90": 123,
"max": 123,
"min": 123,
"median": 123,
"average": 123
},
"latency": {
"p99": 123,
"p95": 123,
"p90": 123,
"max": 123,
"min": 123,
"median": 123,
"average": 123,
"medianPer1000Tokens": 123
},
"provider": "<string>",
"model": "<string>"
}
]
}
Compare performance metrics between different models
curl --request POST \
--url https://api.helicone.ai/v1/public/compare/models \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '[
{
"provider": "<string>",
"names": [
"<string>"
],
"parent": "<string>"
}
]'
{
"data": [
{
"timeSeriesData": {
"errorRate": [
{
"value": 123,
"timestamp": "<string>"
}
],
"successRate": [
{
"value": 123,
"timestamp": "<string>"
}
],
"ttft": [
{
"value": 123,
"timestamp": "<string>"
}
],
"latency": [
{
"value": 123,
"timestamp": "<string>"
}
]
},
"requestStatus": {
"errorRate": 123,
"successRate": 123
},
"geographicTtft": [
{
"median": 123,
"countryCode": "<string>"
}
],
"geographicLatency": [
{
"median": 123,
"countryCode": "<string>"
}
],
"feedback": {
"negativePercentage": 123,
"positivePercentage": 123
},
"costs": {
"completion_token": 123,
"prompt_token": 123
},
"ttft": {
"p99": 123,
"p95": 123,
"p90": 123,
"max": 123,
"min": 123,
"median": 123,
"average": 123
},
"latency": {
"p99": 123,
"p95": 123,
"p90": 123,
"max": 123,
"min": 123,
"median": 123,
"average": 123,
"medianPer1000Tokens": 123
},
"provider": "<string>",
"model": "<string>"
}
]
}
Bearer token authentication. Format: 'Bearer YOUR_API_KEY'
The body is of type object[]
.
Ok
The response is of type object
.
Was this page helpful?