{
  "openapi": "3.0.1",
  "info": {
    "title": "OpenRouter AI Model Pricing Scraper",
    "description": "Scrape AI model catalog and pricing from OpenRouter public API. Get prompt/completion price per token, context length, modality, top providers, and supported features for 300+ AI models. No API key required.",
    "version": "0.0",
    "x-build-id": "EnZEuYXdBZZnKge1n"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parseforge~openrouter-models-pricing-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parseforge-openrouter-models-pricing-scraper",
        "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/parseforge~openrouter-models-pricing-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parseforge-openrouter-models-pricing-scraper",
        "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/parseforge~openrouter-models-pricing-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parseforge-openrouter-models-pricing-scraper",
        "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": {
          "query": {
            "title": "Search query (optional)",
            "type": "string",
            "description": "Free-text search across model id, name and description. Leave empty for no text filter."
          },
          "provider": {
            "title": "Provider filter (optional)",
            "enum": [
              "",
              "ai21",
              "aion-labs",
              "alfredpros",
              "alibaba",
              "allenai",
              "amazon",
              "anthracite-org",
              "anthropic",
              "arcee-ai",
              "baidu",
              "bytedance",
              "bytedance-seed",
              "cognitivecomputations",
              "cohere",
              "deepcogito",
              "deepseek",
              "essentialai",
              "google",
              "gryphe",
              "ibm-granite",
              "inception",
              "inclusionai",
              "inflection",
              "kwaipilot",
              "liquid",
              "mancer",
              "meta-llama",
              "microsoft",
              "minimax",
              "mistralai",
              "moonshotai",
              "morph",
              "nex-agi",
              "nousresearch",
              "nvidia",
              "openai",
              "openrouter",
              "perceptron",
              "perplexity",
              "poolside",
              "prime-intellect",
              "qwen",
              "rekaai",
              "relace",
              "sao10k",
              "stepfun",
              "switchpoint",
              "tencent",
              "thedrummer",
              "undi95",
              "upstage",
              "writer",
              "x-ai",
              "xiaomi",
              "z-ai"
            ],
            "type": "string",
            "description": "Filter by model provider (vendor prefix in the model id, e.g. anthropic, openai, google).",
            "default": ""
          },
          "modality": {
            "title": "Modality (optional)",
            "enum": [
              "",
              "text->text",
              "text+image->text",
              "text->image",
              "text+audio->text"
            ],
            "type": "string",
            "description": "Filter by input/output modality",
            "default": ""
          },
          "minContextLength": {
            "title": "Minimum context length (optional)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Only include models with at least this many tokens of context (e.g. 100000 for 100k+)."
          },
          "maxPromptPricePerMillion": {
            "title": "Max prompt price (USD per 1M tokens, optional)",
            "minimum": 0,
            "type": "number",
            "description": "Only include models whose prompt price is at or below this value. E.g. 1.0 = under $1 per million input tokens."
          },
          "maxCompletionPricePerMillion": {
            "title": "Max completion price (USD per 1M tokens, optional)",
            "minimum": 0,
            "type": "number",
            "description": "Only include models whose completion price is at or below this value."
          },
          "freeOnly": {
            "title": "Free models only",
            "type": "boolean",
            "description": "If enabled, returns only models with prompt and completion price both = 0 (free tier).",
            "default": false
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000"
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "created",
              "promptPrice",
              "completionPrice",
              "contextLength",
              "name"
            ],
            "type": "string",
            "description": "Sort results by",
            "default": "created"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}