Using Power Automate API will give you more options and control, but the files created with Power Automate cannot be downloaded instantly, they can be sent via email or uploaded to a file storage.
If you use Power Automate, the only option to download file would be to download it from this storage, for example:
Start Power Automate flow and create PDF
Save it to a SharePoint Document library
Have a link on the form to download file from this SharePoint Document Library