There are two options to apply for the Spanish digital nomad visa. You can apply at the Spanish Embassy/Consulate in your country or directly in Spain if you are in a regular situation.