This is still a relevant question. You can follow this official guide to be able to use Document AI API via credentials. Note that this only works for client libraries.
Basically you'll need to create a service account and a service account key as a JSON file, which you can then use to authenticate your requests. Hope this helps!
https://cloud.google.com/document-ai/docs/process-documents-client-libraries