Translations:Manual:$wgAPIMaxUncachedDiffs/5/en

Set this to 0 to disable API diffs altogether.