DeepSeek on AWS and Azure: Setup, Pricing, and Deployment

Last reviewed: November 18, 2026. Model availability, deployment options, and prices can change.

You can use DeepSeek AI on AWS and Azure through managed model APIs or by deploying model weights to cloud infrastructure. For an AWS application, Amazon Bedrock provides a straightforward starting point when its DeepSeek models meet your requirements. For an Azure application, Microsoft Foundry provides model deployment, Azure billing, and Microsoft Entra authentication.

The first decision is the exact model and hosting route. A V4 model deployed through SageMaker JumpStart is a different service from native Bedrock inference. Likewise, an Azure-sold model and a partner offer in the Foundry catalog can have different operating arrangements.

This guide explains those choices, walks through one text-generation request on each cloud, and shows how to assess cost and US processing location. The examples use Bedrock V3.2 and Azure-sold V4 Pro, so they demonstrate integration paths rather than an equivalent-model performance comparison.

DeepSeek on AWS vs. Azure: Choose the Right Route

Your requirementRoute to evaluateWhat you are taking on
Managed DeepSeek inference for an AWS applicationNative Amazon BedrockCall a supported model through AWS APIs and pay the applicable inference charges.
A V4-family model deployed in your AWS accountAmazon SageMaker JumpStartChoose a deployment configuration, obtain compute quota, and operate an inference endpoint.
An R1 or distilled-model offer in Bedrock MarketplaceBedrock MarketplaceReview the offer and deploy its backing endpoint; this differs from native on-demand access.
Managed DeepSeek access with Azure identity and billingAzure-sold models in Microsoft FoundryCreate a model deployment and choose its processing geography and billing type.
Custom weights or serving configurationAn eligible managed-compute deployment or self-hostingValidate hardware and runtime support, then plan capacity, monitoring, and maintenance.

AWS documents Bedrock Marketplace separately from its native model catalog. Microsoft likewise distinguishes serverless API and managed-compute deployments. The service name determines which setup instructions apply.

The two managed-cloud examples below use AWS or Azure credentials and cloud billing. You do not fund them by adding money to a direct DeepSeek API account, and a DeepSeek API key does not authenticate these requests.

For a small first integration, start with a managed API that meets your model and location requirements. Move to dedicated compute when control over the deployment or measured workload economics justifies the additional work. Existing application location also matters: keeping inference close to the rest of your stack can simplify identity, networking, and operations.

Which DeepSeek Models Are Available?

The following is a dated selection of documented options, not a promise that every account has quota or immediate capacity.

ServiceDocumented model selectionIdentifier or configuration to use
Native Amazon BedrockDeepSeek V3.2, V3.1, and R1The walkthrough uses deepseek.v3.2 on bedrock-runtime.
SageMaker JumpStartAWS announced V4-Pro, V4-Flash, and V4.1-Flash on November 11, 2026.Use the selected-region model card and its generated deployment configuration.
Foundry Models sold by AzureThe catalog includes V4-Pro, V4-Flash, V3.2, and V3.2-Speciale.The walkthrough selects DeepSeek-V4-Pro, version 2026-04-23; API calls use your deployment name.

Check the live Bedrock DeepSeek catalog, the AWS V4 JumpStart announcement, and the Azure-sold model catalog before choosing a deployment.

V4 availability in JumpStart does not establish native V4 availability in Bedrock. At this review date, the native Bedrock DeepSeek catalog lists V3.2, V3.1, and R1.

DeepSeek V3.2, V3.1 and R1 models available in the Amazon Bedrock model catalog

Lifecycle also matters. AWS currently labels R1 and V3.1 as Legacy, with March 30, 2027 listed as their end-of-life date. Microsoft lists the selected V4-Pro version as generally available in its retirement schedule. Check those schedules again before committing to production.

If you found an older Azure R1 tutorial, Microsoft now lists its Azure-sold DeepSeek-R1 and DeepSeek-R1-0528 offers as retired, with V4-Pro recommended as their replacement. Self-hosting the weights is a separate route.

Treat a model labeled Distill as a distinct model choice. Record its full name, version, and any quantization. A small distilled model can be useful, but its results do not establish the capabilities of a full R1 or V4 deployment.

How to Use DeepSeek on AWS with Amazon Bedrock

1. Confirm the Region and Permissions

This example uses DeepSeek V3.2 in US East (N. Virginia), us-east-1. Its Bedrock model card also lists in-region availability in Ohio, us-east-2, and Oregon, us-west-2.

Amazon Bedrock regional availability for DeepSeek V3.2 in Northern Virginia, Ohio and Oregon

You need an AWS account with billing configured and an identity authorized to invoke the model. The inference prerequisites identify bedrock:InvokeModel as the permission used by Converse. Streaming uses an additional invocation action; organizational policies and permission boundaries can also restrict access.

In the Bedrock console, select your region, open the model catalog, and find V3.2. You can try a short prompt in its playground. Follow the current model-access guidance for your account rather than assuming an older activation screen is still required.

2. Configure AWS Authentication

The code examples require Python 3. For local AWS development, use an authenticated profile. The example below expects one named deepseek-demo; replace that name with your existing profile if appropriate.

If your organization uses IAM Identity Center, install AWS CLI v2 and follow its SSO setup instructions. With your organization’s SSO details available, configure and sign in to the example profile:

aws configure sso --profile deepseek-demo
aws sso login --profile deepseek-demo

Boto3 supports profiles and workload roles through its credential providers. When running under an attached AWS role, use boto3.Session() without a named-profile argument. No DeepSeek API key is needed for this route.

python -m pip install --upgrade boto3

3. Send a Converse Request

import boto3

session = boto3.Session(profile_name="deepseek-demo")
client = session.client("bedrock-runtime", region_name="us-east-1")

response = client.converse(
    modelId="deepseek.v3.2",
    messages=[
        {
            "role": "user",
            "content": [
                {"text": "Explain what an API endpoint is in two short sentences."}
            ],
        }
    ],
    inferenceConfig={"maxTokens": 1024},
)

for block in response["output"]["message"]["content"]:
    if "text" in block:
        print(block["text"])

print("Stop reason:", response["stopReason"])
print("Usage:", response["usage"])

Save this as bedrock-example.py and run python bedrock-example.py. The loop reads text blocks from the Converse response. Check the stop reason and usage as well as the answer. If generation reaches the output limit, the text may be incomplete even though the request succeeded.

This is a native Bedrock request. It does not create a SageMaker endpoint. Marketplace deployments have their own model-specific API compatibility; replacing this model ID with a Marketplace endpoint identifier is not a general migration recipe.

How to Deploy DeepSeek on Azure with Microsoft Foundry

Microsoft Foundry, also encountered in older guides as Azure AI Foundry, supports Azure-sold DeepSeek models. This walkthrough uses the Azure-sold V4-Pro offer and the resource-level v1 API demonstrated in Microsoft’s current DeepSeek tutorial.

1. Prepare the Foundry Resource and Access

Use an Azure subscription with billing enabled and a Foundry resource with a project. Resource creation and model inference are separate permission checks: you need permission to create the resources, Cognitive Services Contributor or equivalent to manage deployments, and the tutorial’s Cognitive Services User role on the Foundry resource for keyless inference.

Microsoft’s deployment guide explains the management permissions. An Azure OpenAI-only resource exposes a narrower catalog; use the appropriate Foundry resource when selecting non-OpenAI models.

2. Choose the Model and Deployment Type

  1. Open Microsoft Foundry and select your project. These steps use Foundry (new); turn on the New Foundry toggle if needed.
  2. Go to Build → Catalog → Model Catalog and select the Azure-sold DeepSeek-V4-Pro offer.
  3. Choose Deploy → Custom settings. Confirm the model version and give the deployment a recognizable name, such as deepseek-v4-pro-demo.
  4. Review the available deployment type, region, quota, and price before creating it.
  5. After deployment succeeds, record its actual deployment name and inference endpoint. Try a short playground request.
DeepSeek V4 Pro model details and version in Microsoft Foundry with Direct from Azure designation

For US-only inference processing, evaluate US Data Zone Standard, whose SKU is DataZoneStandard. The current availability matrix lists V4-Pro version 2026-04-23 for that deployment type in US regions including eastus2 and westus3. Availability still depends on your subscription and capacity.

DeepSeek V4 Pro and V4 Flash regional availability for Azure US Data Zone Standard deployments

Global Standard is a different processing choice. Review the deployment-type definitions before accepting defaults; creating a resource in a US region does not make a Global deployment US-only.

3. Authenticate and Make a v1 API Request

Install the Azure CLI before running az login; installing the Python packages does not install the CLI. In a Bash-compatible terminal, replace the two placeholders below with your resource and deployment names:

python -m pip install --upgrade openai azure-identity
az login

export AZURE_OPENAI_BASE_URL="https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/"
export AZURE_DEEPSEEK_DEPLOYMENT="YOUR-DEPLOYMENT-NAME"

The environment-variable names are chosen for this example and read explicitly by the code. The model argument must match your deployment name.

import os

from azure.identity import DefaultAzureCredential, get_bearer_token_provider
from openai import OpenAI

token_provider = get_bearer_token_provider(
    DefaultAzureCredential(),
    "https://ai.azure.com/.default",
)

client = OpenAI(
    base_url=os.environ["AZURE_OPENAI_BASE_URL"],
    api_key=token_provider,
)

response = client.chat.completions.create(
    model=os.environ["AZURE_DEEPSEEK_DEPLOYMENT"],
    messages=[
        {
            "role": "user",
            "content": "Explain what an API endpoint is in two short sentences.",
        }
    ],
    max_tokens=1024,
)

print(response.model_dump_json(indent=2))

Save this as azure-example.py and run python azure-example.py. Inspect the returned content, finish reason, and usage. A short output limit can truncate a reasoning model’s response; increase it deliberately if your test needs more room.

Use the full resource-level v1 API base URL shown above for this example. Microsoft also documents a project-level API route; a bare project URL is not interchangeable with this base URL. For an application hosted in Azure, configure its managed identity and required roles instead of depending on a developer’s CLI session.

When to Use SageMaker JumpStart or Self-Hosting

Choose JumpStart when you need a supported DeepSeek model deployed on compute in your AWS account, including the V4-family options AWS announced. Open its model card in your chosen region and follow the current Studio deployment workflow.

Official AWS announcement of DeepSeek V4 Pro, V4 Flash and V4.1 Flash availability on SageMaker JumpStart
  1. Confirm the exact model version, license, supported instances, and serving configuration.
  2. Check quota for the required endpoint instance type and verify capacity before planning a launch.
  3. Configure the execution role, endpoint, and networking, then deploy.
  4. Use the generated invocation example for that endpoint and inspect a small test response.
  5. Delete temporary inference resources when the experiment is complete.

The announcement alone does not specify every V4 model ID, supported instance configuration, or region. Use the live catalog’s deployment settings rather than adapting an old R1 hardware example by changing its name.

Self-hosting on EC2, Kubernetes, or Azure infrastructure offers more control over the runtime and weights. That also makes GPU memory, model loading, scaling, patching, and recovery part of your deployment work. Base sizing on the exact weights, precision, context length, and concurrency you intend to serve.

Azure managed compute is another option for eligible catalog models. It is a distinct deployment route; confirm that the specific model has a supported template instead of assuming an Azure-sold API deployment can be switched directly to dedicated GPUs.

DeepSeek AWS and Azure Pricing: Estimate Your Workload

The relevant price belongs to the cloud service and selected deployment. DeepSeek’s direct API rates do not establish what Bedrock, SageMaker, or Foundry will charge. Compare the exact model version, input and output volume, deployment type, and region before drawing a cost conclusion.

A Worked Amazon Bedrock Cost Example

As of November 18, 2026, AWS lists Standard DeepSeek V3.2 pricing in Northern Virginia, Ohio, and Oregon at $0.62 per million input tokens and $1.85 per million output tokens.

Amazon Bedrock DeepSeek V3.2 standard input and output token pricing in US regions

Suppose an application makes 10,000 requests in a month, averaging 2,000 input tokens and 500 output tokens per request. Using those rates:

ComponentMonthly tokensEstimated inference charge
Input10,000 × 2,000 = 20 million20 × $0.62 = $12.40
Output10,000 × 500 = 5 million5 × $1.85 = $9.25
Total25 million$21.65

This is a calculation for the stated workload, not a measured bill or a complete application budget. It excludes taxes and separately billed services. Replace the assumed token averages with observed usage, including any additional calls your application makes to finish a task.

Build an Azure Quote for the Exact Deployment

Use the Azure DeepSeek pricing page and the deployment’s current quote. Select the model, billing type, region, and USD currency. Separate input, cached input where applicable, and output rates. Azure notes that agreement and purchase details can affect actual pricing.

Microsoft Azure DeepSeek V4 Pro Global pricing for input, cached input and output tokens in USD
Estimated token charge =
  (billable input tokens × input rate
   + billable output tokens × output rate)
  ÷ 1,000,000

This formula assumes rates per million tokens and one input category. If the offer has separate cached-input pricing, split input into the mutually exclusive billing categories shown by that offer. Do not count cached tokens once at the regular rate and then add them again.

The V3.2 AWS example and the V4-Pro Azure example use different models. A lower estimated bill for one does not prove that its cloud is cheaper for the same task quality. Start with comparable model versions where available, or compare the cost of producing an acceptable result.

Include Idle Compute and Supporting Resources

SageMaker pricing bills JumpStart’s underlying training and inference resources. For an endpoint with continuously allocated instances, estimate instance count × hourly price × running hours, then add supporting services. A two-hour experiment and a month-long deployment have very different budgets even if both receive the same number of prompts.

For illustration, a single allocation priced at $5 per hour would cost $10 for two hours or $3,650 for 730 hours. The $5 figure is hypothetical, not a quote for any DeepSeek-compatible instance. Real sizing and utilization determine whether dedicated compute makes economic sense.

Review provisioned-capacity commitments, storage, networking, and monitoring separately. Use Foundry cost management to track Azure spending, and distinguish an alerting budget from a control that actually blocks requests.

For SageMaker experiments, delete the endpoint and review associated model, configuration, and retained storage resources. Closing a notebook does not delete an endpoint. For Azure tests, remove the unneeded deployment and separately review its supporting resources and any capacity commitments.

Data Privacy and US Data Residency

Ask three separate questions: who operates the inference service, where the request can be processed, and what data your application or provider retains. A US resource address answers only part of that review.

ConfigurationInference-location implication
Bedrock V3.2 using its documented in-region endpointThe selected supported AWS region handles inference.
Bedrock R1 using its US cross-region inference profileRouting can span the US regions in that profile; it is not a single-region setup.
Azure-sold model with Global StandardProcessing can occur outside the resource’s region, including outside the US.
Azure-sold model with US Data Zone StandardProcessing stays within the US data zone and can span US regions.

AWS publishes routing information in its model-region matrix. Microsoft defines Global and Data Zone processing in its Azure-sold model privacy documentation. Check the actual deployment type rather than inferring processing location from the endpoint hostname.

For native Bedrock, AWS says model providers cannot access its model-deployment accounts or customer prompts and completions. See Bedrock data protection. Review retention settings and any application or invocation logging separately.

For models designated as sold by Azure, Microsoft says prompts and outputs are unavailable to the model provider and are not used to train foundation models without permission or instruction. This does not mean every feature has zero storage: stateful features and abuse-monitoring processes can involve retained data.

Foundry catalog entries can have different arrangements. Microsoft’s Fireworks privacy FAQ states that Fireworks on Foundry uses Fireworks GPUs outside Microsoft facilities and is not designated as the Azure-sold-model offering. Check the offer’s operator and terms even when charges appear on Azure.

For sensitive workloads, map the complete request path, including retrieval sources, application logs, monitoring, and fallback providers. A private network connection and a geographic processing restriction address different questions; verify both where your requirements call for them.

Common DeepSeek Deployment Errors and Fixes

SymptomWhat to check firstPractical next step
Bedrock access deniedActive AWS identity, invocation permission, and organization restrictionsConfirm the profile or role making the call, then review access for that model and region.
Bedrock model or request validation errorExact model ID, region, API, and supported parametersStart with the native V3.2 example and compare it with the current model card.
Azure 401 or 403Signed-in identity, token scope, resource roles, and endpointConfirm the intended Azure account has inference access on the resource used by the request.
Azure 404 or deployment not foundDeployment name, resource URL, and deployment readinessCopy the name from the successful deployment; check that the URL belongs to the same resource.
429 or repeated throttlingToken/request quota, concurrency, and capacityReduce load and use bounded retries with backoff; request an appropriate quota increase when needed.
GPU deployment cannot startRequired instance quota, available capacity, and supported configurationResolve the compute requirement shown by the exact model card before retrying deployment.
Successful request but incomplete answerStop or finish reason and output budgetIncrease the limit when justified, or simplify the task; do not treat HTTP success alone as task completion.

Use the provider’s response details to narrow the cause. Microsoft’s DeepSeek troubleshooting section covers authentication, deployment-name mismatches, and throttling. For AWS, start with the inference permission requirements and the selected model’s documentation.

A retry cannot fix a wrong endpoint, a missing role, or an unsupported parameter. Fix configuration errors first; reserve retries for failures that can plausibly clear without changing the request.

How to Compare AWS and Azure Before Production

Use a small evaluation set taken from the work your application will actually perform. Define what counts as an acceptable result before looking at which provider produced it. The following is a proposed evaluation method, not a claim that either cloud has been benchmarked here.

  • Record the deployment: cloud, service, operator, model version, region, deployment type, and API.
  • Keep the task consistent: use the same representative inputs and acceptance criteria; record output limits and any other setting differences.
  • Check required features: test the exact streaming, structured-output, tool-calling, or context behavior your application needs.
  • Measure completion: track accepted results, truncation, errors, and retries rather than counting successful HTTP responses alone.
  • Measure latency under realistic load: record response time and concurrency; for streaming, record time to first token separately.
  • Calculate cost per accepted task: include unsuccessful attempts and, for dedicated endpoints, idle time during the evaluation period.
  • Confirm operating requirements: processing location, logging, quota, lifecycle, and cleanup responsibility.

For example, if an evaluation costs $12 and produces 800 accepted results, its measured inference cost is $0.015 per accepted result. If each task requires multiple model calls, include all of them. This gives you a more useful comparison than the price of one nominal request.

An AWS team can begin with Bedrock V3.2 and move to JumpStart when a particular model or deployment requirement warrants it. An Azure team can begin with the Azure-sold Foundry route and select the processing zone its workload needs. Make the final choice using the application’s measured results, exact model requirements, and operating cost.