Stanford requires international students who attend Stanford Summer Session to have a visa appropriate for academic study. For most students, this will be an F-1 Student Visa, although there are additional visa classifications that cover credit-based study.
J-1, B-1/B-2, or any tourist visa are NOT allowed. Students must apply for an F-1 visa.