AI can be trained to generate fantasy characters such as Japanese princesses or knights, leveraging algorithms that can learn from historical and cultural references to create unique and imaginative personas.