{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Model Catalog & API Pricing Tracker",
    "description": "Compare 9,000+ AI models across 200+ providers by API price, context window and capabilities (reasoning, tool calling, vision), and get alerted to price changes between runs. Data from the open models.dev catalog.",
    "version": "0.1",
    "x-build-id": "WaIDwaeCzR3cmYUkI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ranthis~ai-model-catalog-pricing/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ranthis-ai-model-catalog-pricing",
        "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/ranthis~ai-model-catalog-pricing/runs": {
      "post": {
        "operationId": "runs-sync-ranthis-ai-model-catalog-pricing",
        "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/ranthis~ai-model-catalog-pricing/run-sync": {
      "post": {
        "operationId": "run-sync-ranthis-ai-model-catalog-pricing",
        "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": {
          "providers": {
            "title": "Providers",
            "type": "array",
            "description": "Provider IDs as used by models.dev, e.g. anthropic, openai, google, mistral, deepseek, xai, groq, amazon-bedrock, azure, openrouter-style resellers. Empty = all providers.",
            "items": {
              "type": "string"
            }
          },
          "search": {
            "title": "Model name contains",
            "type": "string",
            "description": "Optional text filter on model ID or name, e.g. \"gpt\", \"claude\", \"llama\"."
          },
          "capabilities": {
            "title": "Required capabilities",
            "type": "array",
            "description": "Only keep models that support all selected capabilities.",
            "items": {
              "type": "string",
              "enum": [
                "reasoning",
                "tool_call",
                "structured_output",
                "attachment",
                "open_weights"
              ],
              "enumTitles": [
                "Reasoning",
                "Tool calling",
                "Structured output",
                "File attachments",
                "Open weights"
              ]
            },
            "default": []
          },
          "inputModalities": {
            "title": "Required input types",
            "type": "array",
            "description": "Only keep models that accept all selected input types.",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "image",
                "audio",
                "video",
                "pdf"
              ],
              "enumTitles": [
                "Text",
                "Image",
                "Audio",
                "Video",
                "PDF"
              ]
            },
            "default": []
          },
          "minContext": {
            "title": "Minimum context window (tokens)",
            "minimum": 0,
            "type": "integer",
            "description": "e.g. 128000"
          },
          "maxInputPricePer1M": {
            "title": "Max input price (USD per 1M tokens)",
            "minimum": 0,
            "type": "number",
            "description": "Leave empty for no limit."
          },
          "pricedOnly": {
            "title": "Only models with a listed price",
            "type": "boolean",
            "description": "Skip models without a listed API price or priced at 0 (local runtimes, subscription plans).",
            "default": true
          },
          "releasedAfter": {
            "title": "Released on or after (YYYY-MM-DD)",
            "type": "string",
            "description": "Only models released on or after this date."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "inputPrice",
              "outputPrice",
              "context",
              "releaseDate"
            ],
            "type": "string",
            "description": "Order of the results.",
            "default": "inputPrice"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Upper limit of rows saved (and charged).",
            "default": 200
          },
          "diffWithPrevious": {
            "title": "Detect price changes since previous run",
            "type": "boolean",
            "description": "Saves a snapshot of the whole catalog's prices in a named key-value store in your account (ai-model-catalog-snapshots). Rows are marked \"changed\" when the price differs from the previous run and \"new\" when the model was not in the catalog before. Schedule the Actor daily to get a price-change feed.",
            "default": false
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}