Programatically generate R2 API keys?

Is there a way to programatically generate R2 API keys?