Each state determines their own recount rules. Usually a 0.5% margin triggers an automatic recount at no cost to the candidate.
In most states, any voter/entity can call for a recount- regardless of the margin of victory.
The catch is that whoever asks for the recount has to pay for the process if the winner does not change as a result of the recount.