Skip to content

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.

Notifications You must be signed in to change notification settings

snxtyle/Intelligent-Donor-Query-System-using-AWS-RAG-and-AWS-Services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

AWS Bedrock Image & Text Generation

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.

Features

✅ Text Generation using Amazon Titan Text Lite

✅ Image Generation using Amazon Titan Image Generator

✅ AWS Bedrock API Integration

✅ Python-based Implementation with boto3

Requirements

AWS Account with Bedrock Access

Python 3.8+

boto3 (AWS SDK for Python)

Installation

Clone the repository:

git clone https://github.com/your-username/AWS-Bedrock-Image-Gen.git
cd AWS-Bedrock-Image-Gen

Install dependencies:

pip install -r requirements.txt

Usage

Text Generation (Titan Text Lite)

Run the script to generate text using Amazon Titan:

python titan.py

Image Generation (Titan Image Generator)

Run the script to generate images using Amazon Titan:

python stablediffusion.py

Generated images will be saved in the output/ folder.

Example API Response (Text Generation)

json

{
    "generatedText": "Generative AI is revolutionizing content creation..."
}
Exam

Example Output - Image Generated drawing

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages