synonym is words that have same meaning, such as "peak" and "top", so you can say that the synonym of "peak" is "top" and vice-versa.
antonym is the word that has an opposite meaning of a word, such as "top" and "bottom", so you can say that the antonym of "top" is "bottom".