The fastest way to download Android 18 on a Pixel is Settings > System > Software updates > System update, then tap Check for ...
Note: Android 18 Beta is not live in the Android Beta OTA Program yet.