What are the most important factors to consider when creating a public API?

Creating a public API means thinking about more than just functionality. How do you ensure that your public API is easy to use, secure, and scalable? What factors do you prioritize when making an API available to external developers? Share your approach and best practices.