API for pricing