Production costs

When a new well begins to produce are the mineral owners responsible for the cost of the well? How is that determined? DeeAnn