If you are a US person for tax (citizen, green card, or you pass the substantial presence test), you use a W-9.
If you are a nonresident alien (for example many F-1 students in their first 5 years), you use a W-8BEN. It also lets you claim a lower dividend tax under your country treaty.
Astral figures out which form applies from your visa status and years in the US, and shows your dividend withholding rate plainly.