S3 pricing is based on data storage, data transfer, requests, and storage class usage, with options for cost optimization.