Amazon SageMaker JumpStart: Deploy an Open-Weight Model, Call It and Shut It Down
Learn how to deploy an open-weight model with Amazon SageMaker JumpStart. Choose a model, deploy it from Studio or Python, call the endpoint, compare the cost with Bedrock and build the habits that make sure you delete it.
Launch an open-weight language model on your own AWS endpoint, send it a request from Python, and, most important, delete it before it quietly runs up a bill.
Most of this series has used models through Amazon Bedrock, where you pay per token and AWS runs the hardware. That's the easiest route, and for most projects it's the right one. But sometimes you want something different: a specific open-weight model that Bedrock doesn't offer, a model running entirely inside your own account, or a base to experiment with and customise.
Amazon SageMaker JumpStart is a catalogue of ready-to-deploy models that lets you do that. You pick a model, click deploy, and SageMaker creates a hosted endpoint on a GPU instance in your account. The catch is the pricing model: you pay for the instance for every hour it runs, whether anyone is calling it or not.
In this article we'll deploy a model, call it from Python, and set up the habits that stop a forgotten endpoint from becoming an expensive surprise.
Is JumpStart still current?
As far as I can tell, yes. AWS's documentation lists the JumpStart foundation models as of late July 2026, including several hundred open-weight models from providers such as Meta, Google and Mistral AI, and AWS's machine learning blog announced new models on JumpStart in June 2026. Several other SageMaker AI features were reported as moved to maintenance mode in June 2026, but I haven't seen JumpStart named among them. Check AWS's Service Availability Updates page before you build anything on it.
When to use it, and when not to
JumpStart is a good fit when | Stay with Bedrock when |
|---|---|
You need a specific open-weight model that Bedrock doesn't offer | A Bedrock model does the job |
You want the model running in your own account, under your own network controls | You'd rather not manage endpoints |
You plan to fine-tune or customise it | You pay by the token and your usage is light or uneven |
You have steady, high volume where a dedicated instance can be cheaper | You want AWS to handle scaling |
You want to learn how model hosting works | You need to be live this week |
The cost comparison deserves a careful look. A Bedrock model charges for what you use, so a quiet week costs almost nothing. A JumpStart endpoint on a GPU instance charges for the hours it runs. At low or unpredictable volume that usually makes JumpStart more expensive. At steady high volume it can work out cheaper. Do the sums with real numbers before you choose.
What you need
- An AWS account with permission to use SageMaker AI, and a SageMaker execution role, which is the IAM role the endpoint runs as
- Quota for a GPU instance. New accounts often have a default quota of zero for large GPU instances, so request an increase early. Quota requests can take time.
- The SageMaker Python SDK:
pip install sagemaker
- A budget alert set up before you start, as in the earlier cost articles
- About an hour, including waiting for the endpoint to start
A running endpoint bills by the hour. Read the clean-up section before you deploy, and have it open when you do.
Step 1: Choose a model
Browse the JumpStart model catalogue in SageMaker Studio, or read AWS's list of available foundation models. For each candidate, check the model card, as we covered in the article on reading model cards:
- The licence. Open-weight doesn't mean unrestricted. Many models require you to accept an end-user licence agreement before you can deploy, and some restrict commercial use or put conditions on large deployments.
- The model ID. You'll need the exact string, and it's easy to get wrong.
- The supported instance types and the minimum hardware it needs. Bigger models need bigger, more expensive instances.
- The context length and languages.
For a first test, pick a small model. A model with a few billion parameters runs on a modest GPU instance and costs far less per hour than one with hundreds of billions. The small language models article explains why a small model may be all you need.
Step 2: Deploy from Studio
The quickest way to see it work:
- Open SageMaker Studio and choose JumpStart in the navigation.
- Open the model's card.
- Choose Deploy.
- Review the instance type, accept the licence if it asks, and confirm.
SageMaker creates the endpoint, which takes several minutes, depending on the size of the model. Watch the status until it reads InService.
The deploy page for some models offers deployment configurations, such as options tuned for lowest cost or highest speed, with the instance types that suit each. These are worth a look, since the instance choice drives your hourly cost.
Step 3: Deploy from Python
For repeatable work, use the SDK:
import sagemakerfrom sagemaker.jumpstart.model import JumpStartModel
model = JumpStartModel( model_id="YOUR_MODEL_ID", # copy from the model card role=sagemaker.get_execution_role(), # or your execution role ARN)
predictor = model.deploy(accept_eula=True) # only after you've read the licenceprint(predictor.endpoint_name)A few notes:
-
accept_eula=Truemeans you've agreed to the licence. Read it first. Don't paste this in on autopilot.
- The model ID must match the card exactly. AWS's own examples add a comment telling readers to verify it, for good reason.
- If you run this outside SageMaker Studio, you may need to pass an execution role ARN, since
get_execution_role()works inside SageMaker environments.
- You can choose the instance type by setting it in the deployment configuration, or by passing options to
deploy. Check the SDK documentation for your version, because the SageMaker Python SDK has been changing.
- JumpStart's default settings can enable network isolation for some models. That's a security benefit, and it also means the endpoint can't reach the internet. Check what applies to your model.
The call waits while the endpoint starts, and this can take a few minutes.
Step 4: Call the endpoint
The request format depends on the model. The model card or the SDK can show you an example. Many JumpStart language models accept a chat-style payload, and the SDK has a way to retrieve example payloads for a model so you don't have to guess:
examples = model.retrieve_all_examples()for example in examples or []: print(example.body)Then send a request using the predictor:
payload = { "messages": [ {"role": "user", "content": "In two sentences, what is a purchase order?"} ], "max_tokens": 200,}
response = predictor.predict(payload)print(response)That payload is a common chat format, and the exact shape and field names vary between models. If you get an error, compare your request with the example from the previous step.
To call the endpoint from an application, you don't need the SDK. Use the SageMaker runtime client with the endpoint name:
import jsonimport boto3
runtime = boto3.client("sagemaker-runtime", region_name="us-east-1")
response = runtime.invoke_endpoint( EndpointName="YOUR_ENDPOINT_NAME", ContentType="application/json", Body=json.dumps(payload),)print(json.loads(response["Body"].read()))The application's role needs permission to invoke that one endpoint, and nothing else, as in the IAM article earlier in this series.
Step 5: Shut it down
This is the step that matters most. When you've finished testing, delete the endpoint:
predictor.delete_endpoint()Or in the console, open the endpoint in SageMaker and choose Delete. AWS's own deployment guides remind readers to do this to avoid ongoing charges, and they're right to. A GPU endpoint left running over a weekend, or a month, is the classic way to get a bill you didn't expect.
Also check for the model and endpoint configuration objects that deployment created, and for any storage you added.
Build a safety net
People forget endpoints. Plan for it.
An audit script. Run this regularly, or whenever you finish a session, to see what's running:
import boto3
sm = boto3.client("sagemaker", region_name="us-east-1")
response = sm.list_endpoints(StatusEquals="InService", MaxResults=50)for endpoint in response["Endpoints"]: print(endpoint["EndpointName"], endpoint["CreationTime"].date())It only lists. Deciding what to delete should stay a human choice.
Tag everything. Add tags, such as an owner and a project, to your endpoints, so the cost reports from the earlier articles show who's spending what.
Budgets and anomaly alerts. Set a SageMaker-specific budget with alerts at low thresholds, and make sure Cost Anomaly Detection covers it.
A reminder in your calendar. It sounds silly, and it works.
Check idle time. If an endpoint receives no requests for hours, it's waste. CloudWatch publishes invocation metrics for endpoints. An alarm that notices zero invocations over a long period can prompt you to delete it.
Use a separate account for experiments, with a budget and tight limits, so mistakes stay small.
Using the model with the rest of your stack
Once it works, you have options. You can call the endpoint from a Lambda function behind API Gateway, as in the earlier articles. You can also register a JumpStart endpoint with Amazon Bedrock, so you can call it through Bedrock's APIs, according to the Hugging Face and AWS guides, in which case you pay for the SageMaker compute plus regular Bedrock API charges. Check the current Bedrock documentation for how this works and what it costs.
Every new component adds to what you have to secure and monitor, so add them one at a time.
What it costs
- The instance, per hour, for as long as the endpoint exists. This dominates, and it varies enormously between instance types.
- Storage and data transfer, which are usually small.
- Anything extra, such as logs, monitoring or any fine-tuning jobs you run.
- Your time, for patching, scaling and monitoring, which Bedrock handles for you.
Check the SageMaker AI pricing page for the instance you choose, multiply by the hours you expect it to run and compare the result with the cost of the equivalent Bedrock usage.
Common problems
The deployment fails with a quota or capacity error. You may not have quota for that instance type, or the Region may be short of capacity. Request a quota increase or try another instance or Region.
An error about the licence. The model needs you to accept its terms. Read them, then set the acceptance flag.
An access error. Check the execution role's permissions and its trust relationship with SageMaker.
A bad request to the endpoint. Compare your payload with the model's example payload.
The endpoint is slow to respond at first. Large models take time to start, and the first requests can be slower.
Out-of-memory errors. The model may be too large for the instance. Pick a bigger instance, or a smaller model.
Old SDK examples that don't work. The SageMaker Python SDK has changed over time, so match the examples to your installed version.
A checklist
- Have you confirmed JumpStart's current status on AWS's pages?
- Have you read the model's licence and checked it allows your use?
- Do you have quota for the instance type, and a budget alert?
- Did you start with a small model?
- Does the application's role allow only the one endpoint?
- Have you tagged the endpoint with an owner and a project?
- Do you have a plan to delete it, and a way to notice if you forget?
- Have you compared its cost with the equivalent Bedrock usage?
Where we go next
Next, we'll look at Amazon SageMaker Unified Studio: what it brings together, who it suits and a first walk-through.
JumpStart's catalogue, model IDs, instance types, SDK interfaces, quotas and pricing change often. Check the current Amazon SageMaker AI documentation before you follow any step here, and delete anything you create when you've finished.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article