Can I install an Ovh VPS ssh or password when ordering through the API?

Can I install an Ovh VPS when ordering through the API? Do I need a custom password or an SSH key?

I've searched through a lot of documentation but haven't found a simple way to set a password in a VPS.

The only thing I found was https://eu.api.ovh.com/console/?section=%2Fvps&branch=v1#post-/vps/-serviceName-/rebuild
But that's a long way to automate VPS creation.
I also discovered that the official module actually inserts an SSH key by reinstalling the OS: https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/vps
I think this is terrible. Is there a workaround?