How to player can request mint an NFT programmatically?

hello friends
I want to know how to player can request mint an NFT programmatically?