This paper presents a method for the fabrication of silicon-based optical elements in an SiNx membrane. This device will transmit visible and infrared light, and can be used for various types of optical elements, such as gratings, lenses, diffractive opti