Optical three-dimensional (3D) printing techniques have attracted tremendous attention owing to their applicability to mask-less additive manufacturing, which enables the cost-effective and straightforward creation of patterned architectures. However, despite their potential use as alternatives to traditional lithography, the printable materials obtained from these methods are strictly limited to photocurable resins, thereby restricting the functionality of the printed objects and their application areas. Herein, we report a generalised direct optical printing technique to obtain functional metal chalcogenides via digital light processing. We developed universally applicable photocurable chalcogenidometallate inks that could be directly used to create 2D patterns or micrometre-thick 2.5D architectures of various sizes and shapes. Our process is applicable to a diverse range of functional metal chalcogenides for compound semiconductors and 2D transition-metal dichalcogenides. We then demonstrated the feasibility of our technique by fabricating and evaluating a micro-scale thermoelectric generator bearing tens of patterned semiconductors. Our approach shows potential for simple and cost-effective architecturing of functional inorganic materials.