It also depends on the software. I've been working mainly with a FEM-based software. The procedure is to discretize piles in finite-length cylinders. The reaction of each cylinder is modeled by 3 Winkler springs, horizontal, torsional and vertical (all applied to the lateral surface). The Base cylinder has its own vertical spring applied to the base circular surface.
Other softwares model the pile equating it to a single vertical spring, plus a horizontal one. Other ones employ a value called the 'Distributed rigidity' (Fleming, 1992, Salgado, 2008). There may be more which I don't know.
The OP doesn't specify which is the case.
A simplified formula for the basal spring, from Castelli & Motta,2010, is the following:
Kbi about= G0/R0(1.25), where G0 = shear stress at small strain, R0 = pile diameter/2, all in compatible units. G0 should be reduced to G if the strain is not negligible. Lateral reaction may govern though, depending on soil.
Units are particularly critical when dealing with spring reactions, once I mistook the final value by two orders of magnitude, due to a missing conversion in my spreadsheets.
On the other side, the shear values are not very sensitive to the spring constant so mistakes or uncertainties do not appear to influence significantly the results, usually.