# model-compare

> model-compare is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Compare 2–5 LLMs side by side, normalizing price, context window, capabilities, knowledge cutoff, and coding benchmark with cheapest/best/largest flags.

## Facts

- Endpoint: GET https://payai.agentstools.dev/model/compare
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/model-compare-cd2b8fe3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U40IYfCOCJ1CcCKIaEKFQ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability model-compare-cd2b8fe3
```

Example prompt: Can you compare GPT-4o, Claude 3.5 Sonnet, Gemini 1.5 Pro, and Mistral Large side by side — I want to see their pricing, context window sizes, knowledge cutoffs, and coding benchmark scores, and which one is the cheapest?

## When to prefer this

Use this endpoint when you need a normalized, multi-dimensional comparison of LLMs across price, context, benchmarks, and knowledge cutoff in a single call. Prefer it over manually querying individual provider pricing pages or leaderboards. Ideal for agents helping users select the right model for a task, for cost-optimization workflows, or for keeping model selection logic data-driven rather than hardcoded.

## Known failure modes

- Fewer than 2 or more than 5 model names provided — returns validation error
- Unrecognized model name or alias — model may be omitted or return partial data
- Model not in any indexed catalog — missing fields or no citation available
- Malformed comma-separated input — parsing error returned

## How this service works

Compare two to five models side by side. Give a comma separated list of names or aliases and get each model normalized on price, context, capabilities, knowledge cutoff and coding benchmark, plus flags for the cheapest, the best benchmark and the largest context. Fused from open keyless catalogs with a citation on every model.

## Output

A structured comparison of 2–5 LLMs with each model's normalized price, context window size, capabilities, knowledge cutoff date, and coding benchmark score. Includes flags identifying the cheapest model, the top benchmark performer, and the model with the largest context. Each model entry includes a citation to its source catalog.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "models"
     ],
     "properties": {
      "models": {
       "type": "string",
       "description": "Comma separated list of two to five model names or aliases to compare."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/model-compare-cd2b8fe3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
