← Back to directory

All AI Data API - Apply a unified diff to text: fuzzy hunk matching, reverse, whitespace-tolerant, per-hunk report

https://allai-api.allaihq.workers.dev/v1/tools/patch_apply

Overview

Takes original text and a unified diff (the output of diff -u or git diff for one file) and returns the patched text. Each hunk is located by its context, searching up to a configurable number of lines away when line numbers have drifted, and the result reports where every hunk landed, with its offset and status (applied, applied with offset, or failed with the reason). Options $0.005 per successful call (USDC on Base). 3 free trial calls a day. Operated by All AI LLC.

Protocol x402 (POST)
Price $0.0050
Payment Asset USDC
Payment Network base
Category data
Provider All AI LLC (All AI Data API)
Source self-registered
Indexed 2026-12-03 10:25:23

Health

Status healthy
Latency (p50) 378ms
Uptime (30d) 100.0%
Reliability Score 90/100
Last Checked 2026-12-05 14:41:05
Last Healthy 2026-12-05 14:41:05
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Recent Health Checks

Time Status HTTP Latency Error
2026-12-05 14:41:05 healthy 402 354ms
2026-12-05 13:40:45 healthy 402 1570ms
2026-12-05 12:40:35 healthy 402 378ms
2026-12-05 11:45:26 healthy 402 367ms
2026-12-05 10:41:05 healthy 402 352ms
2026-12-05 09:39:56 healthy 402 1366ms
2026-12-05 08:43:18 healthy 402 399ms
2026-12-05 07:39:52 healthy 402 366ms
2026-12-05 06:37:12 healthy 402 360ms
2026-12-05 05:37:50 healthy 402 1419ms
2026-12-05 03:49:20 healthy 402 1324ms
2026-12-05 02:39:48 healthy 402 350ms
2026-12-05 01:39:12 healthy 402 360ms
2026-12-05 00:53:57 healthy 402 380ms
2026-12-03 17:55:32 healthy 402 2344ms