Hi Priya,
This is the tutorial you can use to connect bedrock with Mendix. In this he used StabilityAI following same Process you can achieve your goal. Prior to that you need a AWS account to use it in Mendix.
Follow this video:https://www.youtube.com/watch?v=5jNZ1md4tOU&t=94s
you can also go through this docs:https://docs.mendix.com/appstore/modules/aws/amazon-bedrock/