This repository contains Python scripts to interact with AWS Bedrock using Amazon Titan models for text generation and image generation. The implementation uses the boto3 SDK to invoke AI models via the AWS Bedrock API.
✅ Text Generation using Amazon Titan Text Lite
✅ Image Generation using Amazon Titan Image Generator
✅ AWS Bedrock API Integration
✅ Python-based Implementation with boto3
AWS Account with Bedrock Access
Python 3.8+
boto3 (AWS SDK for Python)
git clone https://github.com/your-username/AWS-Bedrock-Image-Gen.git
cd AWS-Bedrock-Image-Genpip install -r requirements.txtRun the script to generate text using Amazon Titan:
python titan.pyRun the script to generate images using Amazon Titan:
python stablediffusion.pyGenerated images will be saved in the output/ folder.
json
{
"generatedText": "Generative AI is revolutionizing content creation..."
}
Exam