Trial mode is free for as long as you want it. You only pay once you turn on enforcement, and only for the hosts actually enforcing.
api/app/) is designed to be self-hostable; point install.sh --api-base at your own instance. Enterprise agreements can include support for a self-hosted deployment.