An article comprising a lens having a width of 0.1 millimeters to 100 millimeters, a length of 0.5 millimeters to 500 millimeters, and a thickness of 0.2 millimeters to 5 millimeters; and the lens transmits light having a wavelength ranging from 600 nanometers to 1600 nanometers, wherein the lens comprises a polymer and the polymer comprises: a polyimide comprising structural units derived from a dianhydride/diamine pair wherein the pair comprises (i) oxydiphthalic anhydride and diaminodiphenylsulfone, or (ii) a dianhydride selected from the group consisting of oxydiphthalic anhydride, 3,3, bisphenol A dianhydride, 4,4, bisphenol A dianhydride, and combinations of the foregoing dianhydrides and a diamine selected from the group consisting of meta-phenylenediamine, para-phenylenediamine, diaminodiphenyl sulfone, oxydianiline, and combinations of the foregoing diamine, a chloro-substituted phthalic anhydride, a diamine selected from the group of meta-phenylenediamine, para- phenylenediamine, diaminodiphenyl sulfone, oxydianiline and combinations thereof, and a dihydroxy phenol salt, or a combination selected from the group of and; and wherein the lens is transparent and dimensionally stable at a wall thickness of at least 0.2 millimeters to 5.0 millimeters and remains transparent and dimensionally stable after being (a) exposed to a precondition of 60°C/60% relative humidity for 120 hours and (b) then subjected to a lead free solder test having a peak temperature of 260°C for up to 30 seconds. a polyimide comprising structural units derived from a dianhydride/diamine pair wherein the pair comprises (i) oxydiphthalic anhydride and diaminodiphenylsulfone, or (ii) a dianhydride selected from the group consisting of oxydiphthalic anhydride, 3,3, bisphenol A dianhydride, 4,4, bisphenol A dianhydride, and combinations of the foregoing dianhydrides and a diamine selected from the group consisting of meta-phenylenediamine, para-phenylenediamine, diaminodiphenyl sulfone, oxydianiline, and combinations of the foregoing diamine, a chloro-substituted phthalic anhydride, a diamine selected from the group of meta-phenylenediamine, para- phenylenediamine, diaminodiphenyl sulfone, oxydianiline and combinations thereof, and a dihydroxy phenol salt, or a combination selected from the group of and; and a dianhydride/diamine pair wherein the pair comprises (i) oxydiphthalic anhydride and diaminodiphenylsulfone, or (ii) a dianhydride selected from the group consisting of oxydiphthalic anhydride, 3,3, bisphenol A dianhydride, 4,4, bisphenol A dianhydride, and combinations of the foregoing dianhydrides and a diamine selected from the group consisting of meta-phenylenediamine, para-phenylenediamine, diaminodiphenyl sulfone, oxydianiline, and combinations of the foregoing diamine, (i) oxydiphthalic anhydride and diaminodiphenylsulfone, or (ii) a dianhydride selected from the group consisting of oxydiphthalic anhydride, 3,3, bisphenol A dianhydride, 4,4, bisphenol A dianhydride, and combinations of the foregoing dianhydrides and a diamine selected from the group consisting of meta-phenylenediamine, para-phenylenediamine, diaminodiphenyl sulfone, oxydianiline, and combinations of the foregoing diamine, a chloro-substituted phthalic anhydride, a diamine selected from the group of meta-phenylenediamine, para- phenylenediamine, diaminodiphenyl sulfone, oxydianiline and combinations thereof, and a dihydroxy phenol salt, or a combination selected from the group of and; and wherein the lens is transparent and dimensionally stable at a wall thickness of at least 0.2 millimeters to 5.0 millimeters and remains transparent and dimensionally stable after being (a) exposed to a precondition of 60°C/60% relative humidity for 120 hours and (b) then subjected to a lead free solder test having a peak temperature of 260°C for up to 30 seconds.