This repo provides a working example for calling a private API Gateway REST API from another AWS account, including CloudFormation templates, API test code and GitHub Actions workflows.
Why do you think that https://github.com/huggingface/transformers is a good alternative to access-private-apigw-in-another-account