When included in the query I'm getting this warning: "Unrecognized parameter: prop."
Topic on API talk:Compare
You've probably got a lower version of MediaWiki. That was only added very recently. I've updated the version numbers on the page to make it easier to tell.