# AI Model Pricing, Context & Changelog Radar (`striped_tailgate/ai-model-pricing-changelog-radar`) Actor

Compare live LLM API prices, context windows, and capabilities across providers, detect price changes across runs, and track AI SDK breaking releases.

- **URL**: https://apify.com/striped_tailgate/ai-model-pricing-changelog-radar.md
- **Developed by:** [hyoensu kim](https://apify.com/striped_tailgate) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 result items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## AI Model Pricing, Context & Changelog Radar

Structured B2B & AI Agent (MCP) intelligence Actor that cross-verifies live LLM API pricing, context windows, and capabilities across **OpenRouter** and the **LiteLLM Provider Pricing Registry**, detects price/spec changes across scheduled runs, and monitors official AI SDK & runtime release feeds for breaking changes and deprecations.

### Key Capabilities

- **Multi-Source Cross-Verification**: Merges live OpenRouter catalog pricing with direct & cloud provider rates (OpenAI, Anthropic, Google Gemini/Vertex, AWS Bedrock, Azure, DeepSeek, Mistral, xAI, Groq) from LiteLLM.
- **Arbitrage & Price Spread Detection**: Computes weighted blended cost per 1M tokens, prompt-cache discount %, cheapest provider route, and cross-provider price spread %.
- **Capability & Value Scoring**: Normalizes `tools`, `vision`, `reasoning`, `prompt_caching`, `structured_outputs`, and `web_search` flags into `capability_score` and cost-adjusted `value_score` (0–100).
- **Stateful Price & Spec Diffing**: Persists pricing snapshots in an Apify named Key-Value Store (`llm-pricing-radar-state`) to flag `new`, `price_drop`, `price_increase`, and `spec_changed` events (`only_changed: true` for alert webhooks).
- **AI SDK & Runtime Breaking-Change Tracking**: Parses official GitHub `releases.atom` feeds (`openai-python`, `anthropic-sdk-python`, `python-genai`, `litellm`, `vercel/ai`, `vllm`, `ollama`) and flags breaking changes, deprecations, and new model support.

### Input Example

```json
{
  "providers": ["openai", "anthropic", "google", "deepseek"],
  "modes": ["chat", "reasoning"],
  "min_context_tokens": 128000,
  "required_capabilities": ["tools", "structured_outputs"],
  "blended_input_weight": 0.75,
  "detect_changes": true,
  "only_changed": false,
  "include_release_changelogs": true,
  "output_dataset_mode": "models_enriched",
  "sort_by": "value_score",
  "max_models": 100
}
```

### Output Record Example (Dataset)

```json
{
  "record_type": "model_pricing",
  "model_id": "anthropic/claude-3.7-sonnet",
  "display_name": "Anthropic: Claude 3.7 Sonnet",
  "provider": "anthropic",
  "mode": "chat",
  "is_reasoning": true,
  "tier": "balanced",
  "sources": ["litellm", "openrouter"],
  "cross_verified": true,
  "context_length": 200000,
  "max_output_tokens": 64000,
  "best_input_per_1m": 3.0,
  "best_output_per_1m": 15.0,
  "best_blended_per_1m": 6.0,
  "cheapest_source": "litellm:anthropic",
  "openrouter_blended_per_1m": 6.0,
  "direct_best_blended_per_1m": 6.0,
  "price_spread_pct": 0.0,
  "best_cache_read_per_1m": 0.3,
  "cache_discount_pct": 90.0,
  "is_free": false,
  "capabilities": ["prompt_caching", "reasoning", "tools", "vision"],
  "is_deprecated": false,
  "deprecation_date": null,
  "capability_score": 90.0,
  "value_score": 58.11,
  "change_tracking": {
    "status": "price_drop",
    "changed": true,
    "previous_blended_per_1m": 7.5,
    "blended_delta_usd": -1.5,
    "blended_delta_pct": -20.0,
    "previous_context_length": 200000,
    "changes": ["blended_price_dropped_20.0pct"]
  },
  "release_context": {
    "recent_release_count": 4,
    "breaking_or_deprecation_count": 1,
    "latest_release": {
      "repo": "anthropics/anthropic-sdk-python",
      "tag": "v0.49.0",
      "published_at": "2026-11-10T18:22:00+00:00",
      "signals": ["new_model_support", "deprecation"],
      "url": "https://github.com/anthropics/anthropic-sdk-python/releases/tag/v0.49.0"
    }
  }
}
```

The full run summary and up to 50 recent SDK/runtime changelogs are also saved to the default Key-Value Store under the `OUTPUT` key.

### Automation: Schedules, Webhooks & MCP Integration

#### Daily Price-Change & Breaking-Release Alerts

1. Create an **Apify Schedule** (e.g., daily at `06:00 UTC`).
2. Set `detect_changes: true` and `only_changed: true`.
3. Attach an **Apify Webhook** on `ACTOR.RUN.SUCCEEDED` pointing to Slack, n8n, or your internal LLM router config service to automatically update model routing tables when prices drop or deprecations are scheduled.

#### AI Agent & MCP Tool Usage

Connect this Actor via the **Apify MCP Server** (`actors-mcp-server`) so coding or procurement agents can dynamically query:

- *"Find the highest value_score model with >=128k context, tools, and structured outputs under $2/1M blended tokens."*
- *"Check if any OpenAI or Anthropic SDK release in the past 14 days introduced breaking changes."*

### Pricing

Pay per event: **$0 per run** plus **$0.005 per record returned**. You are charged only for rows actually returned. Apify free-plan accounts can try it with their monthly free platform credits.

| Records returned | Cost per run |
| --- | --- |
| 10 | $0.050 |
| 100 (default run) | $0.500 |
| 1,000 | $5.000 |

# Actor input Schema

## `providers` (type: `array`):

Filter by provider slugs (e.g. openai, anthropic, google, deepseek, mistralai, meta-llama, x-ai). Leave empty for all providers.

## `modes` (type: `array`):

Model modes to include (e.g. chat, reasoning, embedding, image, audio, completion).

## `search_query` (type: `string`):

Case-insensitive substring filter matched against model ID or display name.

## `min_context_tokens` (type: `integer`):

Filter out models with a context window smaller than this token count (0 = no minimum).

## `max_blended_cost_per_1m` (type: `number`):

Maximum weighted input/output USD cost per 1M tokens (0 = no cap).

## `required_capabilities` (type: `array`):

Only return models supporting all listed capabilities: tools, vision, reasoning, prompt_caching, structured_outputs, web_search.

## `blended_input_weight` (type: `number`):

Weight of input token price in blended cost calculation (default 0.75 = 3:1 input-to-output ratio).

## `include_free_models` (type: `boolean`):

Include $0 / free-tier model endpoints in results.

## `exclude_deprecated` (type: `boolean`):

Omit models that carry a known deprecation date.

## `detect_changes` (type: `boolean`):

Compare live results against the previous snapshot in an Apify Key-Value Store to detect price drops, hikes, new models, and deprecations.

## `only_changed` (type: `boolean`):

When enabled with detect_changes, only push models whose price, context, or deprecation status changed since the last run (ideal for scheduled alerts).

## `state_store_name` (type: `string`):

Named Apify Key-Value Store used to persist historical pricing snapshots across runs.

## `include_release_changelogs` (type: `boolean`):

Fetch official GitHub release Atom feeds for major AI SDKs and runtimes and classify breaking changes, deprecations, and new model support.

## `release_repos` (type: `array`):

GitHub owner/repo pairs whose releases.atom feeds will be parsed for breaking changes and deprecations.

## `release_lookback_days` (type: `integer`):

Only include SDK/runtime releases published within the last N days.

## `output_dataset_mode` (type: `string`):

Choose whether dataset rows contain enriched model pricing records, both models and SDK release rows, or only SDK release rows.

## `sort_by` (type: `string`):

Ordering applied to model records before max_models limit.

## `max_models` (type: `integer`):

Maximum number of model records to push to the dataset (0 = unlimited).

## Actor input object example

```json
{
  "providers": [],
  "modes": [
    "chat"
  ],
  "search_query": "",
  "min_context_tokens": 0,
  "max_blended_cost_per_1m": 0,
  "required_capabilities": [],
  "blended_input_weight": 0.75,
  "include_free_models": true,
  "exclude_deprecated": false,
  "detect_changes": true,
  "only_changed": false,
  "state_store_name": "llm-pricing-radar-state",
  "include_release_changelogs": true,
  "release_repos": [
    "openai/openai-python",
    "anthropics/anthropic-sdk-python",
    "googleapis/python-genai",
    "BerriAI/litellm",
    "vercel/ai",
    "vllm-project/vllm",
    "ollama/ollama"
  ],
  "release_lookback_days": 30,
  "output_dataset_mode": "models_enriched",
  "sort_by": "value_score",
  "max_models": 250
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "providers": [],
    "modes": [
        "chat"
    ],
    "search_query": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("striped_tailgate/ai-model-pricing-changelog-radar").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "providers": [],
    "modes": ["chat"],
    "search_query": "",
}

# Run the Actor and wait for it to finish
run = client.actor("striped_tailgate/ai-model-pricing-changelog-radar").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "providers": [],
  "modes": [
    "chat"
  ],
  "search_query": ""
}' |
apify call striped_tailgate/ai-model-pricing-changelog-radar --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,striped_tailgate/ai-model-pricing-changelog-radar"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/pUcwUTEergP17deQI/builds/pIfyVYCCijVNezuGv/openapi.json
