The commitment of a cell to a type B pancreatic cell fate and its capacity to differentiate into a type B pancreatic cell. A type B pancreatic cell is a cell located towards center of the islets of Langerhans that secretes insulin.