{"id":26218400,"url":"https://github.com/awsdataarchitect/bedrock-examples","last_synced_at":"2026-04-29T12:36:46.336Z","repository":{"id":265727890,"uuid":"896556904","full_name":"awsdataarchitect/bedrock-examples","owner":"awsdataarchitect","description":"Bedrock Awesome Examples","archived":false,"fork":false,"pushed_at":"2024-12-13T03:51:44.000Z","size":12994,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T23:23:50.004Z","etag":null,"topics":["aws","background-removal","bedrock","image-processing","python"],"latest_commit_sha":null,"homepage":"https://vivek-aws.medium.com/background-removal-made-easy-and-affordable-with-amazon-bedrock-titan-models-c4b01d4d84a3","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/awsdataarchitect.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-30T17:19:39.000Z","updated_at":"2025-10-18T16:32:20.000Z","dependencies_parsed_at":"2024-11-30T18:42:31.442Z","dependency_job_id":null,"html_url":"https://github.com/awsdataarchitect/bedrock-examples","commit_stats":null,"previous_names":["awsdataarchitect/bedrock-examples"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/awsdataarchitect/bedrock-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awsdataarchitect%2Fbedrock-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awsdataarchitect%2Fbedrock-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awsdataarchitect%2Fbedrock-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awsdataarchitect%2Fbedrock-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awsdataarchitect","download_url":"https://codeload.github.com/awsdataarchitect/bedrock-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awsdataarchitect%2Fbedrock-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32426586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T12:24:25.982Z","status":"ssl_error","status_checked_at":"2026-04-29T12:24:24.439Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","background-removal","bedrock","image-processing","python"],"created_at":"2025-03-12T13:16:51.339Z","updated_at":"2026-04-29T12:36:46.312Z","avatar_url":"https://github.com/awsdataarchitect.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Amazon Bedrock Examples Open Source Repo\n\nThis repository contains examples of using the Amazon Titan V2, Amazon Nova Canvas and Nova Reel SOTA (State-Of-The-Art) Frontier FM Models. By leveraging the Bedrock service, you can perform video generation and high-quality Image background removal / change at a fraction of the cost of typical image editing apps.\n\n## Features\n\n- **Low-Cost Processing:** Video generation, remove/replace image backgrounds for just a few cents using Amazon Bedrock.\n- **High Accuracy:** Utilizes the Titan Image V2, Nova Canvas, Nova Reel for professional-grade results.\n- **Python Automation:** Includes a Python script for easy integration into your workflows.\n\n## Requirements\n\n- AWS account with permissions to use Amazon Bedrock.\n- Python 3.8 or later.\n- Required Python libraries (see `requirements.txt`).\n\n## Setup\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/awsdataarchitect/bedrock-examples.git\n   cd bedrock-examples\n2. **Install dependencies:**\n   ```bash\n   pip install -r requirements.txt\n3. **Configure AWS credentials:** Ensure your AWS credentials are set up in ~/.aws/credentials or use environment variables.\n\n4. **Run the script:** \n\n## Amazon Titan and Nova Canvas Model Example for Background Removal\nReplace \"demo.jpeg\" in the script with your image file path and execute:\n\nAmazon Titan Model Example\n   ```bash\n   python bedrock_titan_image_bg_remove.py\n   ```\nAmazon Nova Canvas Model Example\n   ```bash\n   python bedrock_nova_image_bg_remove.py\n   ```\nOutput: The script generates an output_image.png with a transparent background.\n\nBefore: \n\n\u003cimg src=\"./demo2.jpeg\" alt=\"Input Image\" title=\"Input Image\" width=\"300\"\u003e\n\nAfter:\n\n\u003cimg src=\"./output_image.png\" alt=\"Output Image after BG Removal\" title=\"Output Image after BG Removal\" width=\"300\"\u003e\n\n## Amazon Nova Canvas Model Example for Background Change with Prompt\n   ```bash\n   python bedrock_nova_image_bg_change_prompt.py prompt_image_bg_demo.jpg \"scenic beach sunset palm trees\"\n   ```\nOutput: The script generates an output_background_changed.png with a background from the prompt.\n\nBefore: \n\n\u003cimg src=\"./prompt_image_bg_demo.jpg\" alt=\"Input Image\" title=\"Input Image\" width=\"300\"\u003e\n\nAfter:\n\n\u003cimg src=\"./output_background_changed.png\" alt=\"Output Image after BG change\" title=\"Output Image after BG change\" width=\"300\"\u003e\n\n## Amazon Nova Reel Model for Video Generation\n   ```bash\n   python bedrock_nova_reel_text2video.py\n   ```\nInput: \n\n\u003cimg src=\"./vasai_village.jpeg\" alt=\"Input Image\" title=\"Input Image\" width=\"300\"\u003e\n\nOutput: The script generates a 6 second video in the S3 bucket and the prefix specified in the python script.\n\n\u003cimg src=\"./output_nova_reel.gif\" alt=\"Input Image\" title=\"Input Image\" width=\"300\"\u003e\n\n## Cost Comparison\n\nCompared to apps charging $10-$20 per image, this solution costs just a few cents per operation using Amazon Bedrock's Titan/Nova models.\n\n## Contributing\n\nFeel free to submit issues, suggest features, or open pull requests.\n\n## License\n\nThis project is licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawsdataarchitect%2Fbedrock-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawsdataarchitect%2Fbedrock-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawsdataarchitect%2Fbedrock-examples/lists"}