Saturday, June 28, 2025
News PouroverAI
Visit PourOver.AI
No Result
View All Result
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing
News PouroverAI
No Result
View All Result

Build an internal SaaS service with cost and usage tracking for foundation models on Amazon Bedrock

February 9, 2024
in Data Science & ML
Reading Time: 2 mins read
0 0
A A
0
Share on FacebookShare on Twitter



Enterprises are looking to leverage generative AI by providing access to foundation models (FMs) to different lines of business (LOBs). The IT teams play a crucial role in facilitating innovation within the LOBs while ensuring centralized governance and observability. This includes tracking the usage of FMs across teams, managing costs, and providing visibility to the relevant cost centers in the LOB. The IT teams are also responsible for regulating access to different models per team, ensuring that only approved FMs are used.

Amazon Bedrock is a fully managed service that offers a range of high-performing foundation models from leading AI companies like AI21 Labs, Anthropic, Cohere, Meta, Stability AI, and Amazon. It provides a single API interface and a set of capabilities to build generative AI applications with security, privacy, and responsible AI. The serverless nature of Amazon Bedrock eliminates the need to manage infrastructure and allows seamless integration and deployment of generative AI capabilities using familiar AWS services.

To provide a simple and consistent interface for end-users while maintaining centralized governance, a software-as-a-service (SaaS) layer for foundation models can be implemented. API gateways can be used to loosely couple model consumers with the model endpoint service, offering flexibility to adapt to changing model architectures and invocation methods.

In this post, we present a solution that demonstrates how to build an internal SaaS layer using Amazon Bedrock in a multi-tenant architecture. The focus is on usage and cost tracking per tenant, as well as controls such as usage throttling per tenant. The solution aligns with the general SaaS journey framework and provides code and an AWS Cloud Development Kit (AWS CDK) template in the GitHub repository.

The challenges in providing governed access to foundation models include cost and usage tracking, budget and usage controls, access control and model governance, multi-tenant standardized API, centralized management of API keys, and handling model versions and updates.

The solution architecture involves a multi-tenant approach, where each team is assigned an API key for accessing the FMs. The team’s application sends a POST request to Amazon API Gateway, which routes the request to an AWS Lambda function responsible for logging usage information and invoking the appropriate model. Amazon Bedrock provides a VPC endpoint for secure communication between the Lambda function and the service. CloudTrail generates a CloudTrail event, and the Lambda function logs relevant information and returns the generated response to the application.

Cost tracking is handled separately by a daily process triggered by an Amazon EventBridge rule. A Lambda function retrieves usage information from CloudWatch, calculates costs per team, and stores the aggregated data in Amazon S3. Data visualization can be achieved using S3 Select, Amazon Athena, or Amazon QuickSight.

Usage control per team is achieved through API Gateway usage plans, which allow throttling requests and setting quota limits per API key. This complements the account-level quotas assigned by Amazon Bedrock.

Before deploying the solution, prerequisites include deploying the AWS CDK stack and configuring the necessary resources. For onboarding new teams, API keys can be shared or dedicated, depending on the desired level of tracking and control.

Overall, the solution provides a robust framework for implementing governed access to foundation models, enabling enterprises to leverage generative AI effectively.



Source link

Tags: AmazonBedrockBuildcostFoundationInternalmodelsSaaSservicetrackingUsage
Previous Post

Why Python Skills in Dictionaries, APIs, and Functions Matter in 2024 – Dataquest

Next Post

El Impacto del Aprendizaje Automático en el Mercado Laboral LATAM

Related Posts

AI Compared: Which Assistant Is the Best?
Data Science & ML

AI Compared: Which Assistant Is the Best?

June 10, 2024
5 Machine Learning Models Explained in 5 Minutes
Data Science & ML

5 Machine Learning Models Explained in 5 Minutes

June 7, 2024
Cohere Picks Enterprise AI Needs Over ‘Abstract Concepts Like AGI’
Data Science & ML

Cohere Picks Enterprise AI Needs Over ‘Abstract Concepts Like AGI’

June 7, 2024
How to Learn Data Analytics – Dataquest
Data Science & ML

How to Learn Data Analytics – Dataquest

June 6, 2024
Adobe Terms Of Service Update Privacy Concerns
Data Science & ML

Adobe Terms Of Service Update Privacy Concerns

June 6, 2024
Build RAG applications using Jina Embeddings v2 on Amazon SageMaker JumpStart
Data Science & ML

Build RAG applications using Jina Embeddings v2 on Amazon SageMaker JumpStart

June 6, 2024
Next Post
El Impacto del Aprendizaje Automático en el Mercado Laboral LATAM

El Impacto del Aprendizaje Automático en el Mercado Laboral LATAM

Building a Data Platform in 2024. How to build a modern, scalable data… | by Dave Melillo | Feb, 2024

Building a Data Platform in 2024. How to build a modern, scalable data… | by Dave Melillo | Feb, 2024

Why Palantir Technologies Stock Skyrocketed as Much as 47% This Week

Why Palantir Technologies Stock Skyrocketed as Much as 47% This Week

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Trending
  • Comments
  • Latest
23 Plagiarism Facts and Statistics to Analyze Latest Trends

23 Plagiarism Facts and Statistics to Analyze Latest Trends

June 4, 2024
How ‘Chain of Thought’ Makes Transformers Smarter

How ‘Chain of Thought’ Makes Transformers Smarter

May 13, 2024
Amazon’s Bedrock and Titan Generative AI Services Enter General Availability

Amazon’s Bedrock and Titan Generative AI Services Enter General Availability

October 2, 2023
Is C.AI Down? Here Is What To Do Now

Is C.AI Down? Here Is What To Do Now

January 10, 2024
The Importance of Choosing a Reliable Affiliate Network and Why Olavivo is Your Ideal Partner

The Importance of Choosing a Reliable Affiliate Network and Why Olavivo is Your Ideal Partner

October 30, 2023
Managing PDFs in Node.js with pdf-lib

Managing PDFs in Node.js with pdf-lib

November 16, 2023
Can You Guess What Percentage Of Their Wealth The Rich Keep In Cash?

Can You Guess What Percentage Of Their Wealth The Rich Keep In Cash?

June 10, 2024
AI Compared: Which Assistant Is the Best?

AI Compared: Which Assistant Is the Best?

June 10, 2024
How insurance companies can use synthetic data to fight bias

How insurance companies can use synthetic data to fight bias

June 10, 2024
5 SLA metrics you should be monitoring

5 SLA metrics you should be monitoring

June 10, 2024
From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

June 10, 2024
UGRO Capital: Targeting to hit milestone of Rs 20,000 cr loan book in 8-10 quarters: Shachindra Nath

UGRO Capital: Targeting to hit milestone of Rs 20,000 cr loan book in 8-10 quarters: Shachindra Nath

June 10, 2024
Facebook Twitter LinkedIn Pinterest RSS
News PouroverAI

The latest news and updates about the AI Technology and Latest Tech Updates around the world... PouroverAI keeps you in the loop.

CATEGORIES

  • AI Technology
  • Automation
  • Blockchain
  • Business
  • Cloud & Programming
  • Data Science & ML
  • Digital Marketing
  • Front-Tech
  • Uncategorized

SITEMAP

  • Disclaimer
  • Privacy Policy
  • DMCA
  • Cookie Privacy Policy
  • Terms and Conditions
  • Contact us

Copyright © 2023 PouroverAI News.
PouroverAI News

No Result
View All Result
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing

Copyright © 2023 PouroverAI News.
PouroverAI News

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In