creditCost: how many credits one successful use spends. Plans and packs grant credits, not uses, so one balance covers every feature, and you can price an expensive action higher without a new plan.
id to check and track.
Choosing costs
- Start from your own cost. If an HD image costs you four times a standard one, make it 4 credits. Set plan credits so the plan’s price covers a heavy month.
- Keep costs whole numbers.
creditCostis a whole number above 0. For cheap actions, make a credit worth less: 10 credits per message rather than 0.1. - Changing a cost applies from then on. Usage already tracked keeps the cost it was charged at, and a feature change doesn’t create a plan version.
check and track return 404 feature_not_found for it, and its recorded usage stays.
Other ways. Features can also be managed in the dashboard under Features, or with the feature endpoints.