{
  "openapi": "3.0.1",
  "info": {
    "title": "LLM Model Comparison (340+ models)",
    "description": "Compare LLMs (Claude, GPT, Gemini, Grok, Llama, DeepSeek, Mistral, Qwen) on price, context, modality, capabilities and live benchmarks. OpenRouter-powered. No key.",
    "version": "0.1",
    "x-build-id": "t8EwWdN6H56tTIwAM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/straightforward_hydra~llm-model-comparison-340-models/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-straightforward_hydra-llm-model-comparison-340-models",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/straightforward_hydra~llm-model-comparison-340-models/runs": {
      "post": {
        "operationId": "runs-sync-straightforward_hydra-llm-model-comparison-340-models",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/straightforward_hydra~llm-model-comparison-340-models/run-sync": {
      "post": {
        "operationId": "run-sync-straightforward_hydra-llm-model-comparison-340-models",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "compare",
              "models",
              "digest"
            ],
            "type": "string",
            "description": "compare = line up the models you name and rank them. models = search/filter the whole catalog. digest = one market-summary row.",
            "default": "compare"
          },
          "models": {
            "title": "Models to compare",
            "type": "array",
            "description": "compare mode: one entry per model or family to line up, matched by name/id. Broad terms match every variant. Examples: \"claude\", \"gpt-5\", \"gemini\", \"grok\", or exact ids like \"anthropic/claude-sonnet-5\".",
            "items": {
              "type": "string"
            }
          },
          "search": {
            "title": "Search (models mode)",
            "type": "string",
            "description": "Only keep models whose id or name contains this text, e.g. \"deepseek\", \"mini\", \"vision\"."
          },
          "provider": {
            "title": "Provider",
            "type": "string",
            "description": "Only this provider (the id prefix): anthropic, openai, google, x-ai, meta-llama, deepseek, mistralai, qwen, cohere…"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "intelligence",
              "arena_elo",
              "context",
              "price_input",
              "price_output",
              "newest"
            ],
            "type": "string",
            "description": "How to rank the results.",
            "default": "intelligence"
          },
          "modalityOnly": {
            "title": "Modality filter",
            "enum": [
              "",
              "multimodal",
              "vision"
            ],
            "type": "string",
            "description": "Restrict by input modality.",
            "default": ""
          },
          "minContext": {
            "title": "Min context window",
            "minimum": 0,
            "type": "integer",
            "description": "Only models with at least this many tokens of context, e.g. 200000."
          },
          "maxOutputPricePerM": {
            "title": "Max output price ($/M tokens)",
            "minimum": 0,
            "type": "integer",
            "description": "Only models whose output price is at or below this many USD per 1M tokens, e.g. 10."
          },
          "reasoningOnly": {
            "title": "Reasoning models only",
            "type": "boolean",
            "description": "Only models that support reasoning / thinking.",
            "default": false
          },
          "toolsOnly": {
            "title": "Tool-calling models only",
            "type": "boolean",
            "description": "Only models that support tool / function calling.",
            "default": false
          },
          "includeDescription": {
            "title": "Include description",
            "type": "boolean",
            "description": "Include each model's full description text (larger output).",
            "default": false
          },
          "includeBenchmarkDetail": {
            "title": "Include full benchmark detail",
            "type": "boolean",
            "description": "Include the raw per-arena Design Arena benchmark list for each model.",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap on model rows returned.",
            "default": 200
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}