You might want to move this topic into the
Mining section. You probably will get more qualified answers there.
Reflashing the firmware in order to gain access to the API sounds very strange.
Unfortunately i am not very familiar with the antminer config, but you might try setting
"api-allow" : "A:0/0,W:*".
Did you follow
this guide to set up the privileged API access ?