The buyer of the option pays a price called option premium to the writer for the right to buy/sell the underlying asset. This relatively small amount per option is market-determined and depends upon a number of factors, including demand and supply for the option.