Generating is fairly simple:

age-keygen -o key.txt

This will generate a key.txt file with the private key and dump the public key in stdout.