  I consider the optimal hourly (or per-unit-time in general) pricing problem
faced by a freelance worker (or a service provider) on an on-demand service
platform. Service requests arriving while the worker is busy are lost forever.
Thus, the optimal hourly prices need to capture the average hourly opportunity
costs incurred by accepting jobs. Due to potential asymmetries in these costs,
price discrimination across jobs based on duration, characteristics of the
arrival process, etc., may be necessary for optimality, even if the customers'
hourly willingness to pay is identically distributed. I first establish that
such price discrimination is not necessary if the customer arrival process is
Poisson: in this case, the optimal policy charges an identical hourly rate for
all jobs. This result holds even if the earnings are discounted over time. I
then consider the case where the customers belong to different classes that are
differentiated in their willingness to pay. I present a simple and practical
iterative procedure to compute the optimal prices in this case under standard
regularity assumptions on the distributions of customer valuations. I finally
show that these insights continue to hold in the presence of competition
between multiple quality-differentiated workers, assuming a natural customer
choice model in which a customer always chooses the best available worker that
she can afford.
