Skip to main content
GET
Compare models

Paramètres de requête

string
requis
Liste d’identifiants de modèles séparés par des virgules à comparer (par exemple, openai/gpt-4o,anthropic/claude-3.5-sonnet).

Réponse

Exemple

Autorisations

Authorization
string
header
requis

API key authentication. Pass your OpenModex API key as a Bearer token in the Authorization header: Authorization: Bearer omx_sk_...

Paramètres de requête

models
string
requis

Comma-separated list of model IDs to compare (2-4 models).

Réponse

Model comparison response.

Response from comparing models.

object
enum<string>

The object type, always 'model_comparison'.

Options disponibles:
model_comparison
models
string[]

The list of model IDs being compared.

comparison
object

An object mapping each model ID to its comparison data including pricing, performance, and quality scores.

highlights
object

Highlights identifying the best model in each category.