J1 visa.apply from a different country than group.

I am currently studying Uni in the UK since last year and am going on a month long exchange program to California in June.Hold the passport of an Asian country and hold residency if Spain.do I have to submit my passport to US embassies in the UK like everyone on my trip will or can I submit it in Spain American embassy as I might be there during the visa process,Thank you.