Helicone Comparison API

The Comparison API from Helicone — 1 operation(s) for comparison.

Documentation

📖
Documentation
https://raw.githubusercontent.com/api-evangelist/helicone/refs/heads/main/ https://www.helicone.ai/
📖
Documentation
https://docs.helicone.ai/
📖
GettingStarted
https://docs.helicone.ai/getting-started/quick-start
📖
APIReference
https://docs.helicone.ai/rest/request/post-v1requestquery
📖
Documentation
https://docs.helicone.ai/gateway/overview
📖
APIReference
https://docs.helicone.ai/rest/ai-gateway/post-v1-chat-completions
📖
Documentation
https://docs.helicone.ai/rest/request/post-v1requestquery
📖
Documentation
https://docs.helicone.ai/rest/prompts/post-v1prompt-2025
📖
Documentation
https://docs.helicone.ai/features/experiments
📖
APIReference
https://docs.helicone.ai/rest/experiment/post-v1experiment-evaluatorsrun
📖
Documentation
https://docs.helicone.ai/rest/evals/post-v1evals
📖
Documentation
https://docs.helicone.ai/features/sessions
📖
APIReference
https://docs.helicone.ai/rest/session/post-v1sessionquery
📖
Documentation
https://docs.helicone.ai/features/advanced-usage/user-metrics
📖
APIReference
https://docs.helicone.ai/rest/user/post-v1userquery
📖
Documentation
https://docs.helicone.ai/features/webhooks
📖
APIReference
https://docs.helicone.ai/rest/webhooks/get-v1webhooks
📖
Documentation
https://docs.helicone.ai/rest/models/get-v1public-model-registry-models
📖
Documentation
https://docs.helicone.ai/rest/trace/post-v1tracelog
📖
Documentation
https://docs.helicone.ai/rest/dashboard/post-v1dashboardscoresquery
📖
Documentation
https://docs.helicone.ai/features/advanced-usage/custom-properties
📖
APIReference
https://docs.helicone.ai/rest/property/post-v1propertyquery

Specifications

Other Resources

OpenAPI Specification

helicone-comparison-api-openapi.yml Raw ↑
openapi: 3.0.0
info:
  title: helicone-api Agent Comparison API
  version: 1.0.0
  license:
    name: MIT
  contact: {}
servers:
- url: https://api.helicone.ai/
- url: http://localhost:8585/
tags:
- name: Comparison
paths:
  /v1/public/compare/models:
    post:
      operationId: GetModelComparison
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Result_Model-Array.string_'
      tags:
      - Comparison
      security:
      - api_key: []
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              items:
                $ref: '#/components/schemas/ModelsToCompare'
              type: array
components:
  schemas:
    ModelsToCompare:
      properties:
        provider:
          type: string
        names:
          items:
            type: string
          type: array
        parent:
          type: string
      required:
      - provider
      - names
      - parent
      type: object
    Result_Model-Array.string_:
      anyOf:
      - $ref: '#/components/schemas/ResultSuccess_Model-Array_'
      - $ref: '#/components/schemas/ResultError_string_'
    TokenMetricStats:
      allOf:
      - $ref: '#/components/schemas/MetricStats'
      - properties:
          medianPer1000Tokens:
            type: number
            format: double
        required:
        - medianPer1000Tokens
        type: object
    MetricStats:
      properties:
        p99:
          type: number
          format: double
        p95:
          type: number
          format: double
        p90:
          type: number
          format: double
        max:
          type: number
          format: double
        min:
          type: number
          format: double
        median:
          type: number
          format: double
        average:
          type: number
          format: double
      required:
      - p99
      - p95
      - p90
      - max
      - min
      - median
      - average
      type: object
    Model:
      properties:
        timeSeriesData:
          properties:
            errorRate:
              items:
                $ref: '#/components/schemas/TimeSeriesMetric'
              type: array
            successRate:
              items:
                $ref: '#/components/schemas/TimeSeriesMetric'
              type: array
            ttft:
              items:
                $ref: '#/components/schemas/TimeSeriesMetric'
              type: array
            latency:
              items:
                $ref: '#/components/schemas/TimeSeriesMetric'
              type: array
          required:
          - errorRate
          - successRate
          - ttft
          - latency
          type: object
        requestStatus:
          properties:
            errorRate:
              type: number
              format: double
            successRate:
              type: number
              format: double
          required:
          - errorRate
          - successRate
          type: object
        geographicTtft:
          items:
            properties:
              median:
                type: number
                format: double
              countryCode:
                type: string
            required:
            - median
            - countryCode
            type: object
          type: array
        geographicLatency:
          items:
            properties:
              median:
                type: number
                format: double
              countryCode:
                type: string
            required:
            - median
            - countryCode
            type: object
          type: array
        feedback:
          properties:
            negativePercentage:
              type: number
              format: double
            positivePercentage:
              type: number
              format: double
          required:
          - negativePercentage
          - positivePercentage
          type: object
        costs:
          properties:
            completion_token:
              type: number
              format: double
            prompt_token:
              type: number
              format: double
          required:
          - completion_token
          - prompt_token
          type: object
        ttft:
          $ref: '#/components/schemas/MetricStats'
        latency:
          $ref: '#/components/schemas/TokenMetricStats'
        provider:
          type: string
        model:
          type: string
      required:
      - timeSeriesData
      - requestStatus
      - geographicTtft
      - geographicLatency
      - feedback
      - costs
      - ttft
      - latency
      - provider
      - model
      type: object
    ResultSuccess_Model-Array_:
      properties:
        data:
          items:
            $ref: '#/components/schemas/Model'
          type: array
        error:
          type: number
          enum:
          - null
          nullable: true
      required:
      - data
      - error
      type: object
      additionalProperties: false
    TimeSeriesMetric:
      properties:
        value:
          type: number
          format: double
        timestamp:
          type: string
      required:
      - value
      - timestamp
      type: object
    ResultError_string_:
      properties:
        data:
          type: number
          enum:
          - null
          nullable: true
        error:
          type: string
      required:
      - data
      - error
      type: object
      additionalProperties: false
  securitySchemes:
    api_key:
      type: apiKey
      name: Authorization
      in: header
      description: 'Bearer token authentication. Format: ''Bearer YOUR_API_KEY'''