Achieving room-temperature blackbody-sensitive photodetectors with an ultrabroadband response is challenging. Here, the authors report a bioinspired detector using the 2D flat-band quantum material Nb3I8 that enables sensitive detection from the shortwave to the very long-wave infrared.