The word "for" indicates that you want to have the apartment for the period of time called "summer". After summer is finished, you will once again no longer need the apartment. The word "during" is a bit ambiguous in the sentence.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.