Agreed with Ettore.
REMEMBER: When you need something really special in OpenRefine, its best to just drop to Python as your expression language.
TextRazor needs the API in the header as shown in their CURL example with -H
curl -X POST \
-H "x-textrazor-key: YOUR_API_KEY" \
-d "extractors=entities,entailments" \
-d "text=Spain's stricken Bankia expects to sell off its vast portfolio of industrial holdings that includes a stake in the parent company of British Airways and Iberia." \
https://api.textrazor.com/
Here's a guy that had a similar need for putting the API in the HTTP Header and my reply to him.