Some examples of an ability’s cost include spending resources, spending trade goods, spending command tokens, exhausting cards, purging cards, and activating specific systems.
This is the official Living Rules Reference wording under Abilities.
LRR v2.0 (base game / Prophecy of Kings); specific card abilities may override the general rule.