Amazon API Gateway quotas
API Gateway sets the maximum integration timeout at 30 seconds for all integration types, including Lambda. Processing large image files can result in a timeout error due to the maximum integration timeout being exceeded. For information about API Gateway quotas, refer to Amazon API Gateway quotas and important notes in the Amazon API Gateway Developer Guide.