# AI Cost Impact — your bill after announced price changes (`samurai_hart/ai-cost-impact`) Actor

Tell it which AI services you use. It returns your monthly cost now, what it becomes once vendors' already-announced price changes take effect, and the difference. Backed by a daily first-party pricing ledger, so every figure carries the verbatim string from the vendor's own page.

- **URL**: https://apify.com/samurai\_hart/ai-cost-impact.md
- **Developed by:** [Samurai Hart](https://apify.com/samurai_hart) (community)
- **Categories:** AI, Developer tools, Agents
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## AI Cost Impact — find out what your AI bill becomes, before the invoice does

Tell it what you use. It tells you what your monthly cost is now, what vendors have **already announced** it will become, and the difference.

Example: an Anthropic API user on Sonnet 5 today.

```json
{ "mode": "impact", "usage": [
  { "item_id": "anthropic.api.sonnet-5.input",  "quantity": 50 },
  { "item_id": "anthropic.api.sonnet-5.output", "quantity": 10 }
]}
```

```
monthly_cost_by_currency                  { "USD": 200 }
monthly_cost_after_announced_by_currency  { "USD": 300 }
announced_delta_by_currency               { "USD": 100 }
increase_pct_by_currency                  { "USD": 50 }

2026-09-01  Sonnet 5 input   $2 → $3    "introductory through August 31, 2026; $3 standard thereafter"
2026-09-01  Sonnet 5 output  $10 → $15  "introductory; $15 standard thereafter"
```

That is a **50% cost increase already written on the vendor's own pricing page**, effective in weeks. It is the kind of thing you want to find before it lands on an invoice.

`quantity` means seats for per-seat plans, and millions of tokens per month for API metrics.

### Why this can tell you that

Because it also keeps the history. Today's price is something anyone can look up. When a price changed, and what it changed *from*, only exists if somebody was watching before it moved.

This Actor ships a daily first-party observation ledger of AI service pricing and limits, started **2026-08-08**, and every mode is served from it.

| Mode | Returns |
|---|---|
| `impact` (default) | Your monthly cost now, after announced changes, and the delta |
| `changes` | Every price / limit / wording change between observation days, before → after |
| `pending` | Changes vendors have announced but that are **not yet in effect** |
| `current` | Latest observed values — use this to find the `item_id`s you need |

### Covered

Anthropic (Claude plans + API), OpenAI API, Google Gemini API, Google AI plans, xAI Grok API, GitHub Copilot, Cursor, Replit, Microsoft 365 Copilot (JPY), Notion (JPY), ElevenLabs — **188 tracked items across 12 sources**.

### What it refuses to do

An estimate that quietly rounds off inconvenient facts is worse than no estimate. So:

1. **It never adds currencies together.** USD and JPY come back as separate totals. No invented exchange rate.
2. **It never counts included credits as a charge.** "$15 of monthly credits included" is a benefit, not a bill. Feed it one and it returns `NOT_A_COST` instead of inflating your total.
3. **It never treats an unpublished price as zero.** If the vendor doesn't show a number, you get `PRICE_NOT_SHOWN` and it stays out of the total.
4. **It never presents an announcement as a fact.** Upcoming changes are `ANNOUNCED_NOT_YET_OBSERVED` until an observation on or after the effective date confirms them.
5. **It tells you what it left out**: tax, overage and minimums, negotiated discounts, FX, free-tier consumption.

Every line carries the `verbatim` string from the vendor's page and the source URL, so you can check it yourself.

### What it is not

- Not a recommendation engine. It won't tell you which service is cheaper for you.
- Not an explanation. It reports that a value moved, not why, what it means, or where it goes next.
- Not a back-fill. There is no data before the ledger started, and no change in an unobserved window is not evidence that nothing changed.
- Not an invoice. It is list price × declared quantity.

Sources are public, official vendor pages, read-only.

# Actor input Schema

## `mode` (type: `string`):

impact = tell me what I use, get what my bill becomes. changes = price/limit diffs between observation days. pending = announced but not yet in effect. current = latest observed values.

## `usage` (type: `array`):

One entry per line item: {"item\_id": "anthropic.api.sonnet-5.input", "quantity": 50}. Quantity means seats for per-seat plans and millions of tokens per month for API metrics. Run mode=current first to see available item\_ids.

## `vendors` (type: `array`):

Case-insensitive substring match on vendor name, e.g. \["Anthropic", "OpenAI"]. Empty means all vendors.

## `since` (type: `string`):

Only use observation days on or after this date. The ledger starts 2026-08-08; earlier dates do not exist and are not back-filled.

## Actor input object example

```json
{
  "mode": "impact",
  "usage": [
    {
      "item_id": "anthropic.api.sonnet-5.input",
      "quantity": 50
    },
    {
      "item_id": "anthropic.api.sonnet-5.output",
      "quantity": 10
    }
  ],
  "vendors": [],
  "since": ""
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("samurai_hart/ai-cost-impact").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("samurai_hart/ai-cost-impact").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 '{}' |
apify call samurai_hart/ai-cost-impact --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,samurai_hart/ai-cost-impact"
        }
    }
}

```

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/4542Hq1lw9PgRnyDz/builds/Bi4Kcsf3jCpxIG2dr/openapi.json
