Back to blog posts

11 min read

Modal platform pricing and alternatives in 2026 for GPU and CPU infrastructure

Compare Modal platform pricing for GPU and CPU workloads, including rates, credits, plans, and multipliers.

Nicolas LecomteNico is a founder of Blaxel, who usually writes about AI, agentics, and the future of AI runtimes.

Modal pricing questions usually split into two workloads:

That range makes the bill harder to predict. Region selection and non-preemptible execution each carry their own price multipliers. The best alternative also depends on your Modal plan.

This guide starts with Modal's GPU rates, CPU and memory rates, free credits, and plan tiers. It then compares GPU-focused and CPU-focused alternatives in a table normalized to 1 vCPU and 2 GB of memory. Use it to price your own workload against each option.

Key takeaways

  • Non-preemptible execution triples Modal's CPU and memory rates. Region pinning adds 1.15x to 1.75x, up to 5.25x combined if multipliers compound.
  • Modal bills Sandboxes at non-preemptible rates. One active hour at 1 vCPU and 2 GB costs $0.119, against $0.083 on E2B, Daytona, or Blaxel.
  • Baseten Sandboxes resume from standby in under 25ms and bill only storage while idle. Modal's Sandbox memory snapshots are in alpha and expire after 7 days.
  • Take an agent active 5 minutes a day. Keeping a 1-core, 4 GiB Modal Sandbox running to hold memory costs $171.36 a month. A 4 GB Blaxel sandbox with snapshot storage costs $1.21.

What is Modal?

Modal is a serverless platform for AI workloads, with GPU-accelerated ML as its core use case. Developers declare compute requirements in code, and Modal handles containers, GPU allocation, and scaling.

Modal’s key features include:

FeatureDetails
Code-first infrastructureDefine compute requirements in Python using decorators like @app.function(gpu="A100") without YAML configuration files. Modal also ships JavaScript and Go SDKs.
Fast container startsContainers spin up and down in 1 to 2 seconds, per Modal's pricing FAQ. Modal also advertises sub-second Sandbox starts.
Elastic GPU scalingFunctions scale to zero when traffic stops, and billing ends once containers shut down.
Extensive GPU accessModal offers 11 NVIDIA GPU types, from T4 to B300.
Multi-GPU containersMost GPU types support up to eight GPUs per container, and A10 supports up to four, per Modal's GPU documentation.
Per-second billingModal has no reservations and no minimum usage-time increments, per its billing docs.

How does Modal pricing work?

Modal bills resource usage per second, then layers multipliers, plan fees, storage, and egress charges on top.

Base compute rates

Modal pricing is usage-based, and each GPU type carries its own rate. Modal CPU pricing uses the physical core as its unit, and one core equals 2 vCPUs.

Modal's pricing page listed the following rates in October 2026. Modal publishes per-second rates, and the hourly column multiplies each one by 3,600.

Here’s pricing at a glance:

Resource typeBase rate (per second)Hourly equivalent
CPU$0.0000131/core$0.04716/core
Memory$0.00000222/GiB$0.007992/GiB
NVIDIA T4$0.000164$0.59
NVIDIA L4$0.000222$0.80
NVIDIA A10$0.000306$1.10
NVIDIA L40S$0.000542$1.95
NVIDIA A100 (40 GB)$0.000583$2.10
NVIDIA A100 (80 GB)$0.000694$2.50
NVIDIA RTX PRO 6000$0.000842$3.03
NVIDIA H100 SXM5$0.001097$3.95
NVIDIA H200 SXM$0.001261$4.54
NVIDIA B200$0.001736$6.25
NVIDIA B300$0.001972$7.10

A T4 costs 15% of an H100's hourly rate (calculated). Matching the GPU to the workload changes your Modal GPU bill more than any plan choice does.

GPU terms behind Modal GPU pricing

Modal GPU pricing depends more on memory capacity, memory bandwidth, and form factor than on raw core counts.

Four hardware terms explain most of the price spread between GPU rows:

  • VRAM: The GPU's attached memory sets the largest model or batch a single GPU can hold. Modal prices the A100 in 40 GB and 80 GB versions at different rates for this reason.
  • HBM and memory bandwidth: High-bandwidth memory feeds data to the GPU cores. NVIDIA lists the H100 SXM5 at 80 GB of HBM3 with over 3 TB/s. The PCIe H100 uses HBM2e at over 2 TB/s. Memory-bound inference speeds up with bandwidth more than with core count.
  • SXM vs. PCIe: SXM modules connect GPUs over NVLink, while PCIe cards use the standard slot. On the A100, NVIDIA lists NVLink at 600 GB/s against 64 GB/s for PCIe Gen4. Modal's H100 and H200 rows are SXM parts.
  • Tensor cores: These units handle the matrix math in model training and inference. Newer generations add lower-precision formats that raise throughput per dollar.

Per-hour comparisons across providers only hold when VRAM and form factor match. An H100 PCIe at a lower hourly rate isn't the same product as Modal's H100 SXM5.

Multipliers that raise the base rate

Region selection costs 1.15x to 1.75x base prices. Non-preemptible execution, which Modal won't interrupt, costs 3x base prices for CPU and memory on every plan. Functions are preemptible by default, and GPU Functions can't run non-preemptible.

Modal doesn't say how the two multipliers combine. At base rates, 10,000 core-hours a month cost $471.60, and non-preemptible execution raises that to $1,414.80. If the multipliers compound, pinning a region brings the bill to $1,627.02 at 1.15x or $2,475.90 at 1.75x (calculated).

The top case is 5.25x the base figure, so budget from the configuration you'll run in production.

Subscription plans and credits

PlanPriceCredits, limits, and features
Starter$0 plus compute$30 in monthly credits, up to 3 seats, 100 containers, 10 concurrent GPUs, 1-day log retention, 1 TiB/month of free egress
Team$250/month plus compute$100 in monthly credits, unlimited seats, 5,000 containers, 50 concurrent GPUs, 30-day log retention, custom domains, 10 TiB/month of free egress
EnterpriseCustomVolume discounts, higher GPU concurrency, HIPAA, audit logs, Okta SSO, committed spend through the AWS and GCP marketplaces, and 100 TiB/month of free egress

Modal free credits come with the plan each month, and Modal requires a payment method on file. Modal doesn't say whether unused credits roll over, so budget as if they expire monthly. At list rates, $30 covers 7.6 H100-hours or 50.8 T4-hours (calculated), enough for light GPU experimentation during a prototype.

Included credits cover Functions and Sandboxes but not Shared Endpoints, which Modal bills per token from the first request.

Modal also runs credit programs. Graduate students, labs, and researchers can apply for up to $10k in academic credits. Early-stage startups can apply for credit grants, and AWS Activate members can get additional Modal credits. Teams can't apply credits held in AWS, GCP, or Azure accounts to Modal usage.

Sandbox pricing

Modal bills Sandboxes at non-preemptible rates: $0.00003942 per CPU core per second and $0.00000667 per GiB per second. Both are 3x the Function rates, or $0.1419 per core-hour and $0.0240 per GiB-hour.

GPUs inside Sandboxes use standard GPU rates. Billing follows max(request, actual), according to Modal's sandbox resources docs. A Sandbox can burst above its request, and you pay for what it used.

For agent workloads, holding state between sessions costs more than active compute. Modal's Sandbox memory snapshot feature is currently in alpha. Each memory snapshot expires 7 days after creation. Filesystem snapshots default to a 30-day expiry in current SDKs.

An agent that returns to a session hours later has two options on Modal. The agent can keep the Sandbox running to retain memory, or restore from a snapshot into a new Sandbox. A 4-core, 16 GiB Sandbox running continuously costs $22.84 per day, or $685.32 per 30-day month (calculated).

On Baseten Sandboxes, standby mode keeps memory and filesystem state without a compute charge.

Storage, egress, and billing rules

Several line items sit outside the compute rates but land on the same invoice:

  • Volumes: Storage costs $0.09 per GiB per month, with 1 TiB per month included.
  • Network egress: Outbound data costs $0.04 per GiB above the plan allowance. Modal started charging egress on October 1, 2026, per its egress billing docs. Reads and writes to Volumes don't count. Teams that stream model outputs or artifacts out of Modal should compare their first egress invoice with the allowance.
  • Keep-alive time: Containers stay alive 60 seconds after the last input by default, and Modal bills that window. The timeout is configurable.
  • Minimum requests: Each container requests at least 0.125 CPU cores and 128 MiB of memory. Modal bills that floor even when a container uses less.
  • Spend controls: Workspace budgets cap monthly spend, and Team adds environment-level budgets.

Pricing one active hour at 1 vCPU and 2 GB puts Modal and its alternatives on the same basis. On Modal, 1 vCPU equals half a physical core.

PlatformBilling basis1 vCPU + 2 GB, one active hourFree credits or minimumIdle behavior
Modal SandboxesPer physical core and GiB, per second$0.119$30/month on StarterBills while running, always at non-preemptible rates
Modal FunctionsBase preemptible rates, per second$0.040$30/month on Starter60-second keep-alive window by default, then scale to zero
Blaxel Sandboxes (XS)Per GB of RAM, per second. CPU allocated from memory$0.083Up to $200 in free creditsStandby after approximately 15 seconds of network inactivity. Bills only snapshot and volume storage
E2BPer vCPU and GiB, per second$0.083$100 one-time on Hobby. Pro is $150/monthPaused sandboxes aren't billed
DaytonaPer vCPU and GiB, billed per second$0.083$200 in free computeAuto-stops after 15 minutes idle by default. Stopped sandboxes bill reserved disk
Cloudflare SandboxesPer vCPU and GiB, per second$0.126 (6 GiB minimum, full CPU use, disk excluded)$5/month Workers Paid planCharges stop when the instance sleeps, and sleep deletes its files
Vercel SandboxActive CPU plus provisioned memory$0.170Hobby includes 5 Active CPU hours/monthCPU billed only while code runs

Hourly figures use each vendor's published rates as of October 2026. Blaxel allocates CPU from the memory size, so its figure prices 2 GB. Modal figures exclude region multipliers. The Vercel figure assumes CPU stays busy the full hour, and Cloudflare bills CPU on actual utilization.

At list price, Modal Sandboxes cost 44% more per active hour than E2B, Daytona, or Blaxel at this size. For agent workloads, idle behavior drives monthly costs more than the active rate. Agents sit idle for most of a session while they wait on LLM responses and user input.

Who is Modal best for?

Modal fits Python-centric ML teams with variable-demand workloads, where scale-to-zero cuts spend on idle capacity. Batch inference, model training, bursty real-time AI serving, and data pipelines benefit from elastic GPU scaling and per-second billing.

Modal is a weaker fit for 24/7 inference and for full-stack applications that need integrated frontends. The same holds for enterprises that require strict VPC controls or BYOC (bring your own cloud) deployment. Teams running stateful agent sandboxes should check how long Modal keeps snapshots before choosing it.

GPU-focused Modal alternatives

RunPod and Replicate compete directly with Modal for GPU inference, model training, and batch ML processing. Teams that need a different GPU provider should compare these two. Agent code execution calls for a CPU sandbox comparison instead.

RunPod

RunPod describes itself as "The AI Developer Cloud," with training, fine-tuning, and deployment on one platform. Unlike Modal's pure serverless approach, RunPod also rents persistent instances, which it calls pods.

Key features

  • Persistent pods and auto-scaling serverless compute run on one platform
  • Serverless GPU tiers span 16 GB to 280 GB of VRAM and bill per second, rounded up
  • Pricing is on-demand and pay-as-you-go
  • Storage tiers cover container disks and network volumes

Pros

  • H100 SXM pods list at $2.69/hour on Community Cloud, below Modal's $3.95 H100 SXM5 rate. Secure Cloud costs $3.99/hour.
  • Secure Cloud pods run in Tier 3 and Tier 4 data centers that RunPod rates as high redundancy
  • Spot pods lower GPU prices for work that can tolerate interruption

Cons

  • Community Cloud pods run on peer-to-peer hosts, and RunPod's own docs rate their reliability as "variable"
  • Long training runs on Spot pods can stop before they finish

Pricing

Who is RunPod best for?

RunPod serves early-stage startups and research teams in the experimentation phase, where low GPU cost matters more than production reliability. Teams with dedicated ML infrastructure engineers can build monitoring and failover themselves, so they capture the price advantage.

Replicate

Replicate is an API-first ML deployment platform with a model marketplace and custom deployments. It hides hardware behind a REST API, which shortens the path from idea to inference for existing models.

Modal, in contrast, optimizes for deploying custom code. Replicate prioritizes API access to thousands of ready-to-run models with no infrastructure to configure.

Key features

  • A model marketplace offers pre-trained models ready to deploy
  • The API works from any programming language
  • Deployments run from GitHub with CI/CD support
  • The platform includes built-in fine-tuning

Pros

  • A single API makes integration fast
  • Community members share their own models in a large model library
  • Custom models scale automatically with demand

Cons

  • Replicate's docs say cold boots can take several minutes, so latency-sensitive apps need warm instances
  • Keeping deployment instances warm avoids cold boots, but warm instances bill while idle
  • Per-hour comparisons against Modal take extra work because pricing varies by model and hardware

Pricing

  • NVIDIA A100 (80 GB), NVIDIA H100, and model-specific pricing: Replicate's pricing page lists per-second hardware rates.

Who is Replicate best for?

Replicate works well for prototyping when teams need to evaluate several pre-trained models quickly. Product teams can test AI features without managing GPUs. Plan a migration path before production, given Replicate's boot delays.

CPU-focused Modal alternatives

AI agents executing code in production need different infrastructure than GPU ML workloads. Sandbox platforms differ most on standby behavior and isolation. E2B, Daytona, Cloudflare, and Vercel also sell CPU sandboxes. The 1 vCPU and 2 GB comparison prices each one.

Baseten Sandboxes

Baseten Sandboxes are the infrastructure foundation for autonomous agents. It's the execution layer for agents that run code in production inside isolated sandbox environments. Sandboxes are where Blaxel and Modal overlap. Each sandbox runs in its own Firecracker microVM.

Blaxel is CPU-focused and doesn't replace Modal for GPU inference or training. An agent writes code, runs it in an isolated sandbox, and picks up the same session later. Blaxel is a first-class sandbox provider in the OpenAI Agents SDK. Blaxel Sandboxes handle code execution beneath OpenAI's Codex harness.

Key features

  • Standby carries no compute charge, and higher quota tiers set no time limit on it
  • Sandboxes resume with complete filesystem and memory state, including running processes
  • MicroVM isolation, inspired by the same technology as AWS Lambda, removes the shared-kernel path that container escape exploits use
  • Auto-shutdown returns sandboxes to standby after approximately 15 seconds of network inactivity
  • Agent Drive is in private preview. It shares context and files across sandboxes and sessions. Volumes add long-term storage

Pros

  • On higher quota tiers, users can return to a session weeks later. Modal's Sandbox memory snapshots expire after 7 days
  • Resuming in under 25ms keeps coding agents responsive when a user comes back
  • While an agent waits hours for a user, teams pay only for snapshot and volume storage

Cons

  • SDKs cover Python, TypeScript, and Go only, with no Ruby, Java, or Rust SDK

Pricing

Pricing itemDetails
Pay as-you-go$0 plus usage, with up to $200 in free credits
Pre-configured sandbox tiers and usage-based pricingBilled per GB of RAM per second, with CPU allocated from memory size
Available add-onsEmail support, dedicated support, and HIPAA

Who are Baseten Sandboxes best for?

Baseten Sandboxes suit AI-first startups and scale-ups from seed through Series C building agents that execute code as their core product. Coding agents fit best. PR review agents and data analysis agents also fit when users expect instant responses. Teams running thousands of concurrent sessions save the most from standby pricing.

Choose the right infrastructure for your AI agents

Modal, RunPod, and Replicate all price GPU compute, though Modal also sells CPU Sandboxes. Teams choosing where agent code runs should test four criteria:

  • State persistence duration: How long can sandboxes remain available without activity?
  • Resume latency: What's the delay when resuming from standby versus starting a new sandbox?
  • Security isolation model: Does the platform use containers, gVisor, or microVMs?
  • Idle cost structure: Does the platform charge for standby time or only for active compute?

Agents that run AI-generated code need strong isolation. Modal GPU Sandboxes run on the gVisor runtime, and Modal also offers an optional VM runtime. gVisor improves isolation over standard containers, but microVMs provide hardware-enforced boundaries with a separate kernel per workload.

DimensionModal Sandboxes (1 core, 4 GiB RAM)Blaxel Sandboxes (S size, 4 GB RAM)
Unit price$0.0000661/sec ($0.2380/hour)$0.000046/sec ($0.1656/hour) active, with no compute charge in standby
StorageVolumes at $0.09/GiB-monthSnapshot storage at $0.20/GB-month in standby. Volumes hold long-term data
Base subscriptionStarter: $0 ($30 monthly credits). Team: $250/month ($100 credits)Pay as-you-go: $0 plus usage, up to $200 in free credits, no subscription

Note: The two columns match on memory size, and both use October 2026 list prices.

For example, take an agent that's active 5 minutes a day and idle the rest. A 1-core, 4-GiB Modal Sandbox that runs continuously to hold memory costs $171.36 for a 30-day month. Letting it shut down and restoring from snapshots cuts compute to $0.60.

However, any session idle for more than 7 days loses its memory snapshot. On a 4 GB Blaxel S sandbox, the same agent uses $0.41 of active compute. Assuming a 4 GB snapshot, standby storage adds $0.80, for $1.21 a month (all figures calculated).

Use Modal for GPU inference, training, and batch ML. For agents that execute code and return to the same session, Baseten Sandboxes fit better. Blaxel Sandboxes resume from standby in under 25ms and, on higher quota tiers, hold state with no time limit. Blaxel offers up to $200 in credits for workload testing. Use the credits to check resume times and total costs before choosing.

FAQs about Modal pricing

How much does Modal cost compared to advertised pricing?

Modal's base CPU rate is $0.0000131 per core per second, or $0.04716 per core-hour. Non-preemptible execution triples CPU and memory rates, and region pinning adds 1.15x to 1.75x. If the multipliers compound, a non-preemptible CPU workload pinned to a region costs 3.45x to 5.25x the base rate. For 10,000 core-hours, the bill runs $1,627.02 to $2,475.90 instead of $471.60.

Does Modal offer free credits?

Yes. The Starter plan includes $30 of compute each month, and Team includes $100. Functions and Sandboxes draw on the credits. Shared Endpoints bill per token from the first request. Researchers can apply for up to $10k in academic credits, and early-stage startups can apply for grants. Modal doesn't accept cloud credits from AWS, GCP, or Azure.

What costs sit outside Modal's headline compute rates?

Modal Volumes cost $0.09 per GiB per month, with 1 TiB included. Network egress costs $0.04 per GiB above each plan's allowance and became billable on October 1, 2026. Containers also bill for a 60-second keep-alive window after the last input by default.

Does Modal work for AI agents that execute code in production?

Modal Sandboxes work for short-lived agent tasks, but long-lived sessions are expensive to hold. Memory snapshots are in alpha and expire after 7 days. Teams either pay for continuous runtime or restore a returning session into a new Sandbox.

Baseten Sandboxes target coding agents that need fast resume and long-lived standby. Their Firecracker microVMs resume from standby in under 25ms. For GPU workloads, Modal remains the better choice.

Related articles