Book a free call

Generative AI on AWS: What It Offers and How to Start

Generative AI on AWS runs through Bedrock, SageMaker, Amazon Q and Titan models. Learn which service fits your use case, how a typical app works and how to start.

Hertiv engineering teamReviewed by a senior engineer
5 min read
Generative AI on AWS: What It Offers and How to Start
On this page

Short answer

Generative AI on AWS is the set of Amazon Web Services for building applications with large language models and image models, centred on Amazon Bedrock for managed foundation models, SageMaker for training and custom models, and Amazon Q for assistants inside AWS. You pick a managed model or train your own, connect your data, and ship the result as a normal cloud application.

What is generative AI on AWS?

Generative AI on AWS is the collection of Amazon Web Services used to build applications with generative models. The core is Amazon Bedrock, a managed service that offers foundation models from Amazon and other providers through one API, so you can switch models without rebuilding your application.

Around Bedrock sit the other pieces. SageMaker trains and fine-tunes custom models. Amazon Q is an assistant that answers questions about your AWS environment and your code. Titan is Amazon's own family of text and image models, available inside Bedrock.

The point of building on AWS is that the model sits next to the rest of your cloud: your data in S3, your users in Cognito, your logs in CloudWatch. The model is one part of an application, not a separate product to manage on its own.

Which AWS services handle generative AI?

AWS splits generative AI across several services, each with a different job. The table below shows the main ones and when each fits.

Service What it does Use it when
Amazon Bedrock Managed foundation models via API You want a model without hosting it
Amazon SageMaker Train and fine-tune models You need a custom model
Amazon Q Assistant for AWS and code Staff need answers fast
Amazon Titan Amazon's text and image models You want a first-party model
Knowledge Bases Grounding in your documents Answers must cite your content
Guardrails for Bedrock Content filters and policies You need safety controls

Most teams start with Bedrock and add the others only when they need them. Training a custom model in SageMaker is the expensive path, and it only pays off when a managed model cannot do the job.

How does a generative AI app on AWS work?

A generative AI app on AWS works as a pipeline: the user asks a question, the app retrieves relevant documents, the model drafts an answer grounded in those documents, and guardrails filter the result before it is shown.

Retrieval is the part that decides quality. Documents are split into chunks, stored as vectors in a database such as OpenSearch or Aurora, and the best matches are passed to the model with the question. Without retrieval, the model answers from training data alone and invents details.

Guardrails sit after the model. They block disallowed content, check for sensitive data and enforce topic limits. Logs go to CloudWatch, so every prompt, retrieval result and answer can be reviewed later. For the general pattern, see what generative AI is.

How to build your first generative AI app on AWS

You build your first generative AI app on AWS by picking one narrow use case, testing a managed model on your own documents, and adding retrieval and guardrails before anyone outside the team uses it.

  1. Pick one workflow. Support answers, document search or drafting are good first choices because the output is reviewed.
  2. Try Bedrock in the console. Test two or three models on real questions from your team and compare the answers.
  3. Add your documents. Load a small set of cleaned documents into a Knowledge Base and test whether answers cite them.
  4. Build the app. Put a simple API and interface in front of the model, using Lambda or a container, and keep prompts and settings in version control.
  5. Add guardrails and logging. Turn on content filters, log every request, and define who reviews failures.
  6. Run a pilot. Let a small group use it for a few weeks with a clear success measure, such as time saved or answer accuracy.

Keep the first version small. A support assistant that answers from 200 help articles teaches you more than a broad assistant built on a whole document store.

What does generative AI on AWS cost?

Generative AI on AWS costs are mostly pay-as-you-go: Bedrock charges per token in and out, SageMaker charges for the machines you run, and storage and retrieval add smaller charges on top. There is no single price, because the total depends on the model, the volume and how much data you store.

Token costs dominate for most teams. A support assistant answering a few thousand questions a day costs far less than a model fine-tuned and hosted around the clock, which is why starting with a managed model is the cheaper experiment.

Check the current prices on the vendor site before budgeting, and set a billing alarm on the AWS account from day one. A runaway loop that calls the model thousands of times can produce a large bill before anyone notices.

Example (hypothetical): a support team answers faster

Example (hypothetical): a 20-person support team handles 200 tickets a day. Each ticket takes an agent about 6 minutes to read and draft, which is 200 tickets times 6 minutes, or 20 hours of drafting a day across the team.

The team builds a Bedrock assistant grounded in 200 help articles. It drafts answers that agents review and send. Drafting falls to about 30 seconds per ticket, which is 200 tickets times 30 seconds, or about 100 minutes a day. The team saves roughly 18 hours of drafting a day and spends it on the tickets the assistant cannot handle.

The team also adds a rule: the assistant never answers billing disputes or account closures, and every draft is logged. The arithmetic is simple; the real work is keeping the help articles current so the drafts stay accurate.

What are the common mistakes?

The most common generative AI mistakes on AWS are skipping retrieval, picking the most expensive model by default, and launching without guardrails or logging.

  • Skipping retrieval. A model without your documents invents answers. Ground it in a Knowledge Base before launch.
  • Defaulting to the biggest model. A smaller, cheaper model often answers well enough. Test two models on real questions first.
  • No guardrails. Without content filters, a user can steer the model into answers you would not want to ship.
  • No billing alarm. Set a budget alarm before the first pilot, not after the first surprise bill.
  • Stale documents. Retrieval is only as good as the source. If the help centre is out of date, the answers will be too.
  • Training before testing. Fine-tuning in SageMaker is slow and costly. Prove the use case with a managed model first.

Serverless patterns fit these apps well. See AWS serverless architecture for the shape of the surrounding application.

For another retrieval example, see RAG use cases in supply chain.

Key takeaways

  • Bedrock offers managed models; SageMaker trains custom ones
  • Ground answers in your documents with retrieval, not memory alone
  • Guardrails and logging belong in the first version, not later
  • Start with a managed model; fine-tune only when it falls short
  • Set a billing alarm before the first pilot runs

Frequently asked questions

What is Amazon Bedrock?

Amazon Bedrock is a managed AWS service that offers foundation models from Amazon and other providers through one API. You call a model without hosting it, and you can switch models without rebuilding your application. It also includes Knowledge Bases for grounding and Guardrails for safety controls.

Do I need SageMaker for generative AI on AWS?

Usually not at first. SageMaker is for training and fine-tuning custom models, which most teams do not need. Start with a managed model in Bedrock, and move to SageMaker only when a managed model cannot meet the accuracy, format or privacy need.

What is Amazon Q?

Amazon Q is an AWS assistant that answers questions about your cloud environment, your code and your company data. It is a ready-made application of generative AI inside AWS, rather than a toolkit for building your own, and it suits teams that want answers without building a pipeline.

How do I stop a generative AI app inventing answers?

Ground it in your own documents with retrieval, so the model answers from sources you control. Add citations where possible, set guardrails, and keep a human review step for answers that affect customers, money or legal commitments.

Is my data used to train models on AWS?

AWS states that customer data sent to Bedrock is not used to train foundation models. That is a vendor commitment, so read the current service terms before sending sensitive data, and keep private data in your own account rather than in a shared service.

Which model should I pick in Bedrock?

Test two or three models on real questions from your own work and compare the answers, the latency and the cost. The best model is the cheapest one that answers well enough for the task, not the largest one on the list.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: AI and agent systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Planning a generative AI app on AWS? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Generative AI Development service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call