Arrays of interacting magnetic nanostructures were introduced recently as a powerful approach to investigate experimentally the exotic many-body physics of frustrated spin models. Following a similar strategy based on lithographically-patterned magnetic lattices, we provide a first attempt to fabricate a lab-on-chip platform to explore the physics of vertex models. The central idea of this work is to replace the spin degree of freedom of artificial frustrated spin systems by a local micromagnetic knob, which can be finely tuned by a proper design of the vertex geometry. This concept is demonstrated both numerically and experimentally on the celebrated six vertex model, and we show how all variants of this model can be apprehended through the engineering of magnetic square lattices. Our results open new avenues to design arrays of magnetic nanostructures not only to study a wide range of frustrated spin models, but to explore vertex models as well.