How do I power Esp8266MOD Ai-Thinker for Flashing and then for using it for the air quality sensor?

How do I power Esp8266 for Flashing and then for using it for the air quality sensor?
As per spec, ESP8266 works on 3.3V. Are you connecting to a laptop USB port?
After flashing what power supply are you using to run it every day?
Thanks

I’m using a D1 Mini clone which is also based on 3.3 v but the USB plug supplies 5v that it works with fine. For flashing I just use the USB port fur for regular running I have it in a spare USB wall outlet plug.

Thank you. I will try and let you know.

Thank you. I flashed the esp8266 for the first time.