compare_models

Pack: openrouter · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/compare_models for the schema, then POST the same URL with its arguments for the data.

Side-by-side comparison of pricing ($/1M tokens), context window, and modality for 2-5 OpenRouter models. Answers “is claude-sonnet-4.5 cheaper than gpt-4o”. Keyless.

Parameters

NameTypeRequiredDescription
idsarrayyesArray of 2-5 exact model ids, e.g. [“anthropic/claude-sonnet-4.5”, “openai/gpt-4o”].
itemsstringno

Example call

Arguments

{
  "ids": [
    "anthropic/claude-sonnet-4.5",
    "openai/gpt-4o"
  ]
}

curl

curl -X POST https://gateway.pipeworx.io/openrouter/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"compare_models","arguments":{"ids":["anthropic/claude-sonnet-4.5","openai/gpt-4o"]}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('compare_models', {
  "ids": [
    "anthropic/claude-sonnet-4.5",
    "openai/gpt-4o"
  ]
});

More examples

{
  "ids": [
    "google/gemini-2.5-pro",
    "meta-llama/llama-3.3-70b-instruct",
    "deepseek/deepseek-chat"
  ]
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the openrouter pack
{
  "mcpServers": {
    "openrouter": {
      "url": "https://gateway.pipeworx.io/openrouter/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 25, 2026