Cloudflare API breaking change: path-removed on /accounts/{account_id}/ai/run/@cf/facebook/omni-bart-large-cnn
What changed
According to the OpenAPI spec diff (cloudflare/cloudflare-oas-b61f904f10c9-to-7abe88500e55-removals), the following surface changed:
path-removed: /accounts/{account_id}/ai/run/@cf/facebook/omni-bart-large-cnn
cloudflare OAS corridor pair b61f904f10c9 -> 7abe88500e55 (removals subset ingested 2026-08-01)
Who is affected
Mechanical slug rewrite at every call site that runs this Workers AI model: replace the removed model slug '@cf/facebook/omni-bart-large-cnn' with the canonical slug '@cf/facebook/bart-large-cnn' in the ai/run URL (raw fetch callers) or in the model-name argument passed to env.AI.run / the SDK ai.run helper.
To find out whether your repo is hit — file and line number, no code leaving your machine:
npx mendapi sync # the one network call: fetch the change feed npx mendapi scan --repo . # local scan, nothing leaves your machine
How to fix it
mendapi ships a deterministic migration pack for this change (cloudflare-workers-ai-model-slug-renames). Preview the patch locally (dry-run is the default; nothing is modified without --apply):
npx mendapi fix --repo . --migration cloudflare-workers-ai-model-slug-renames
The pack is idempotent, gold-regression tested, and safe on partially migrated code.
What the migration does:
Mechanical slug rewrite at every call site that runs this Workers AI model: replace the removed model slug '@cf/facebook/omni-bart-large-cnn' with the canonical slug '@cf/facebook/bart-large-cnn' in the ai/run URL (raw fetch callers) or in the model-name argument passed to env.AI.run / the SDK ai.run helper. Request and response schemas for the canonical route are unchanged between the two specs, so no payload edits are needed; this is a one-token rename per call site.
Before:
await env.AI.run('@cf/facebook/omni-bart-large-cnn', { text: input });
After:
await env.AI.run('@cf/facebook/bart-large-cnn', { text: input });
Replacement data source: the same model remains served at /accounts/{account_id}/ai/run/@cf/facebook/bart-large-cnn
Detected and tracked by mendapi — Dependabot for every API you depend on. Scans run locally; your code never leaves your machine.
Related
- cloudflare breaking-change guide — every tracked cloudflare entry on one page, with fixability verdicts.
- cloudflare-typescript v6 to v7 migration — the full migration guide with pack-backed fixes.
- 136 raw removals, 17 real ones: what a spec diff over-reports — the long-form methodology report behind this provider's tracked changes.
- All monitored providers — live change counts for cloudflare and 19 others.
- Migration pack catalog — every deterministic fix mendapi ships.
- Getting started — scan your repo in 30 seconds, no code leaves your machine.