Here are some examples:
1. 不客气 = You're welcome
Xiaohong says: 谢谢。
Xiaoming says: 不客气
2. 客气 = polite
eg.1
Xiaohong brings a present for Xiaoming each time when she visit his, Xiaoming may say to Xiaohong," 你太客气了!” (You are too polite.)
eg.2
Xiaoming then invited Xiaohong to have dinner with their family. At the table, he said to Xiaohong "别客气,自己来。”(don't be shy, help yoursef, ok)
eg.3
During the meal someone knocked at the door abruptly, Xiaoming opened the door and found his drunk friend Yongger coming to ask for money from him to buy drink again. Xiaoming gave him some money and shouted angrily at him, "滚,下次再这样子,我就不客气了!“ (Go away. I won't be this kind again next time!)