W-8BEN for a foreign individual, W-8BEN-E for a foreign entity. Other versions cover intermediaries, governments, and foreign businesses with US effectively connected income.
Getting the version wrong usually means the form is invalid, which puts you back in a withholding position.
We handle this for founders running US companies.