An API that learns.