If you are visa exempt and entering via a land border you can get an i94 at the border or if flying you need an ESTA else if not visa exempt you need a US visa.
A study permit is not a travel document so you still need any travel document you would normally need to enter Canada or the US.