Ethical considerations when building AI include issues such as data privacy, algorithmic bias, and the impact on society at large. Developers must ensure that the data used to train AI is collected in a legal and ethical manner and that AI does not perpetuate existing biases or create new ones. Developers must also consider the potential impact of AI on individuals and society and take steps to mitigate any negative impacts.