Gems are a currency in the game that are purchased from the store and can be used for cosmetics. You can use them to rent out cards, backgrounds, emojis, phrases, name colors and message colors. You can also use them to rent our XP boosters. Finally, gems can be used for utility items such as name changing and statistics reset. Gems cannot be exchanged for chips. For more information check the this video