

# SageMaker AI optimizer

SageMaker AI optimizer is an agent-guided experience in SageMaker AI. It helps you find or build a model that meets your criteria for quality, latency, and cost, and then keeps checking that model in production. The agent connects the data preparation, evaluation, model customization, deployment, and monitoring capabilities of SageMaker AI into one workflow. All work runs in your own AWS account.

## What you can do
<a name="sagemaker-ai-optimizer-capabilities"></a>
+ **Define success** – Describe your use case and share example data, such as knowledge bases or production traces. The agent drafts evaluation criteria for quality, latency, and cost, and builds an evaluation dataset. You set the threshold for each criterion.
+ **Compare models** – The agent evaluates candidate models, including the model that you use today, and ranks them against your thresholds on a leaderboard.
+ **Improve a model** – When no model meets your criteria, the agent recommends the lowest-cost fix first: a better prompt, then Retrieval Augmented Generation (RAG), then fine-tuning. With your approval, it prepares training data, runs training jobs, and ranks each result.
+ **Deploy and shadow test** – Deploy the model that wins on the leaderboard to a SageMaker AI endpoint. Before you switch models, you can test a candidate on a copy of live traffic. Shadow testing is available only for models on SageMaker AI endpoints, not for models on Amazon Bedrock.
+ **Monitor in production** – SageMaker AI scores a sample of live traffic to your SageMaker AI endpoints against your criteria. To be notified when quality drops, ask the agent to create Amazon CloudWatch alarms, or create them yourself. You can save failing requests as a new dataset. The agent doesn't enable monitoring for models on Amazon Bedrock. For more information, see [Generative AI model monitoring](genai-model-monitoring.md).

## Ways to work
<a name="sagemaker-ai-optimizer-ways-to-work"></a>
+ **Your coding agent** – Load SageMaker Agent Skills into a coding agent such as Kiro, Claude, or Codex. The skills call the SageMaker Python SDK, so you get the same capabilities as in Studio.
+ **Amazon SageMaker Studio** – Open SageMaker AI optimizer from **Applications** in the top left of the page. Each project has views for the leaderboard, datasets, experiments, and monitoring, with the agent chat beside them.

Everything the agent does is saved as code in your project's Git repository. You can open it in JupyterLab, edit it, and run it yourself. Training jobs, models, and endpoints that the agent creates also appear in Studio.

## You stay in control
<a name="sagemaker-ai-optimizer-control"></a>

The agent proposes each step. It asks before it creates resources or starts jobs that cost money, such as training or deployment. You can change course at any point. Datasets, models, traces, and evaluation results stay in your AWS account and Region, and jobs run under IAM roles that you control.

## Availability and pricing
<a name="sagemaker-ai-optimizer-availability"></a>
+ **Regions** – US East (N. Virginia) and US West (Oregon).
+ **Pricing** – See [Amazon SageMaker AI pricing](https://aws.amazon.com/sagemaker/pricing/).