This repository contains Node.js examples to get started with the Amazon Bedrock service.
yarn
or
npm install
Ensure you have properly configured your AWS credentials and region to use the AWS SDK for JavaScript. You can do this using various methods, such as:
Use the aws configure
command to set up your AWS credentials.
https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/setting-credentials-node.html
If your application is running on an AWS resource with an associated IAM role, it will inherit permissions and credentials from that role.
node text/claude.mjs
node image/stable-diffusion-simple.mjs
https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock/ https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-runtime/