{
  "openapi": "3.0.1",
  "info": {
    "title": "AI API Pricing & Model Lifecycle Report",
    "description": "Compare and watch official public pricing, model, deprecation, and release-note pages for OpenAI, Anthropic, and Gemini without API keys or model calls.",
    "version": "0.1",
    "x-build-id": "9apTEB4qodc2joM7M"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/taroyamada~ai-api-pricing-model-lifecycle-report/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-taroyamada-ai-api-pricing-model-lifecycle-report",
        "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/taroyamada~ai-api-pricing-model-lifecycle-report/runs": {
      "post": {
        "operationId": "runs-sync-taroyamada-ai-api-pricing-model-lifecycle-report",
        "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/taroyamada~ai-api-pricing-model-lifecycle-report/run-sync": {
      "post": {
        "operationId": "run-sync-taroyamada-ai-api-pricing-model-lifecycle-report",
        "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": "v1 provider adapters. Only OpenAI, Anthropic, and Gemini are supported.",
            "items": {
              "type": "string"
            },
            "default": [
              "openai",
              "anthropic",
              "gemini"
            ]
          },
          "models": {
            "title": "Models",
            "type": "array",
            "description": "Optional exact model IDs, provider:model selectors, or glob selectors. Empty means all models found in the selected providers.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "filters": {
            "title": "Model filters",
            "type": "object",
            "description": "Optional status, modality, and context-window filters.",
            "properties": {
              "statuses": {
                "type": "array",
                "title": "Lifecycle statuses",
                "description": "Optional lifecycle status filters validated by the actor.",
                "items": {
                  "type": "string"
                }
              },
              "modalities": {
                "type": "array",
                "title": "Modalities",
                "description": "Optional modality filters such as text or image.",
                "items": {
                  "type": "string"
                }
              },
              "minContextWindowTokens": {
                "type": "integer",
                "title": "Minimum context tokens",
                "description": "Optional minimum official context-window size.",
                "minimum": 0
              },
              "maxContextWindowTokens": {
                "type": "integer",
                "title": "Maximum context tokens",
                "description": "Optional maximum official context-window size.",
                "minimum": 0
              },
              "includeDeprecated": {
                "type": "boolean",
                "title": "Include deprecated models",
                "description": "Include models listed by providers as deprecated or shut down.",
                "default": true
              },
              "modelIds": {
                "type": "array",
                "title": "Exact model IDs",
                "description": "Optional exact model ID allowlist.",
                "items": {
                  "type": "string"
                }
              }
            },
            "default": {},
            "additionalProperties": false
          },
          "usageProfiles": {
            "title": "Monthly usage profiles",
            "type": "array",
            "description": "Monthly input, output, and cache token units used for source-linked cost comparisons. Values are token counts, not API calls.",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "title": "Profile name",
                  "description": "Stable label for this monthly usage scenario."
                },
                "inputUnits": {
                  "type": "number",
                  "title": "Input tokens",
                  "description": "Monthly input token count.",
                  "minimum": 0
                },
                "outputUnits": {
                  "type": "number",
                  "title": "Output tokens",
                  "description": "Monthly output token count.",
                  "minimum": 0
                },
                "cacheUnits": {
                  "type": "number",
                  "title": "Cache tokens",
                  "description": "Legacy monthly cache token count; omitted means zero.",
                  "minimum": 0
                },
                "monthlyInputUnits": {
                  "type": "number",
                  "title": "Monthly input tokens",
                  "description": "Alias for monthly input token count.",
                  "minimum": 0
                },
                "monthlyOutputUnits": {
                  "type": "number",
                  "title": "Monthly output tokens",
                  "description": "Alias for monthly output token count.",
                  "minimum": 0
                },
                "monthlyCacheUnits": {
                  "type": "number",
                  "title": "Monthly cache tokens",
                  "description": "Alias for monthly cache token count.",
                  "minimum": 0
                },
                "cacheReadUnits": {
                  "type": "number",
                  "title": "Cache read tokens",
                  "description": "Monthly cache-read token count.",
                  "minimum": 0
                },
                "cacheWriteUnits": {
                  "type": "number",
                  "title": "Cache write tokens",
                  "description": "Monthly cache-write token count.",
                  "minimum": 0
                }
              },
              "required": [
                "name"
              ],
              "additionalProperties": false
            },
            "default": [
              {
                "name": "standard-month",
                "inputUnits": 1000000,
                "outputUnits": 250000,
                "cacheUnits": 0
              }
            ]
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "compare",
              "watch"
            ],
            "type": "string",
            "description": "Compare current official prices or watch for source-backed changes.",
            "default": "compare"
          },
          "initialRunMode": {
            "title": "Initial run mode",
            "enum": [
              "baseline_only",
              "emit_current"
            ],
            "type": "string",
            "description": "baseline_only stores a complete source baseline with zero rows; emit_current emits current rows/reports on an empty baseline.",
            "default": "baseline_only"
          },
          "generateReport": {
            "title": "Generate comparison report",
            "type": "boolean",
            "description": "Emit an aggregate cost-comparison report when eligible current or changed source data exists.",
            "default": true
          },
          "emitUnchanged": {
            "title": "Emit unchanged",
            "type": "boolean",
            "description": "When false, identical watch snapshots emit zero rows and zero charges.",
            "default": false
          },
          "emitRawRows": {
            "title": "Emit raw model rows",
            "type": "boolean",
            "description": "Emit one normalized ai_model_price_row per eligible model and an ai_pricing_export handoff row.",
            "default": false
          },
          "maxChargeUsd": {
            "title": "Maximum charge USD",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Optional all-or-nothing PPE budget. Zero means no actor-side budget cap.",
            "default": 0
          },
          "dryRun": {
            "title": "Dry run",
            "type": "boolean",
            "description": "Emit local fixture-derived sample rows without live fetches, model calls, or PPE charges.",
            "default": false
          },
          "snapshotKey": {
            "title": "State namespace",
            "type": "string",
            "description": "Optional stable state namespace for separate watch baselines.",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}