A method for creating a three dimensional cross-linked polyimide structure includes dissolving a diamine, a dianhydride, and a triamine in a solvent, imidizing a polyamic acid gel by heating the gel, extracting the gel in a second solvent, supercritically drying the gel, and removing the solvent to create a polyimide aerogel.