The DC (Difficulty Class - the number your target has to roll above) for your spells is largely determined by your stats and your class. High stats increase the DC, and your class determines which stat in particular needs to be high. Clerics and Rangers benefit from Wisdom, Wizards from Intellect, and Warlocks from Charisma.