Baseten vs Modal: Which Inference Platform Should You Use?

Baseten vs Modal comes down to one question: are you shipping a model, or shipping Python code that happens to need a GPU? Both run serverless GPU inference, both scale to zero, and both now sell model APIs, training and agent sandboxes. They start from opposite ends.
The short version, as of November 2026:
- Pick Baseten if a model is the product. You package it with Truss, get tuned inference engines and per-step scaling, and you may later need single-tenant or self-hosted deployment in your own cloud.
- Pick Modal if your workload is Python first. Inference, batch jobs, scheduled tasks and agent sandboxes all live in the same decorated code, billed by the second.
- Read the autoscaling defaults before you compare GPU rates. Baseten keeps an idle replica for 15 minutes by default. Modal keeps an idle container for 60 seconds. That difference can matter more than the hourly price.
Both companies raised large rounds this year, and neither changed hands. Baseten also bought Blaxel, an agent sandbox company. Everything below comes from each vendor's own docs, pricing pages and blog, checked on November 21, 2026.
Quick Comparison
| Baseten | Modal | |
|---|---|---|
| Built around | Deploying and serving models | Running Python functions in the cloud |
| How you deploy | Truss config.yaml, a Python Model class, or a custom Docker server | Python decorators; the image is defined in code |
| Deploy command | baseten model push | modal deploy (modal run for one-off runs) |
| Multi-step pipelines | Chains, with hardware and autoscaling per step | Separate Functions calling each other |
| Default idle window | 900-second scale-down delay | 60-second scaledown_window |
| Default replica cap | Max replicas 1, min 0 | Scales automatically with traffic |
| Hosted model APIs | Model APIs, per token | Shared Endpoints, per token |
| Training | Loops and Training Jobs | Training API (beta) and multi-node Clusters |
| Agent sandboxes | Sandboxes, plus the Blaxel acquisition | Sandboxes on gVisor or a VM runtime, up to 24 hours |
| Run in your own cloud | Self-hosted and hybrid options through sales | No self-hosted option in Modal's docs |
| GPU billing | Per minute | Per second |
What Each Platform Is Built For
Baseten describes itself in its docs as inference plus training. You can call hosted models, deploy your own models on dedicated GPUs, or train models and serve the checkpoints. The center of gravity is the deployed model: engines, replicas, environments and endpoints.
Modal describes itself as "a platform for running AI workloads in the cloud with minimal configuration." Its key use cases are training, inference, batch jobs and sandboxed code execution. The center of gravity is the function: a piece of Python that runs remotely with the hardware you asked for.
That difference explains most of the trade-offs below. Baseten gives you more help once you know exactly which model you're serving. Modal gives you more freedom when "the model" is one part of a bigger Python program.
Developer Workflow: Truss vs Python Decorators
Baseten: package the model, then push it
Baseten's "how it works" page says you describe a model in a config.yaml for supported architectures, or in a small Python Model class for custom code, then run baseten model push. The config follows Truss, Baseten's open-source packaging format, which is MIT licensed on GitHub.
Three things happen on push:
- Upload. The CLI validates the config, archives the project and uploads it.
- Build. For engine-based models, Baseten downloads the weights and compiles them with TensorRT-LLM. Baseten notes that custom builds don't get its engine optimizations automatically.
- Deploy. The container goes onto GPUs behind an API endpoint.
You iterate on a development deployment, limited to one replica with live reload, then promote it to an environment such as staging or production. Each environment keeps a stable URL, and rolling back re-promotes an earlier deployment.
For pipelines, Chains split work into Chainlets. Each step sets its own hardware, dependencies and autoscaling. Baseten's examples are RAG, chunked audio transcription and phone-call agents that chain transcription, an LLM and speech synthesis.
Modal: the infrastructure is the code
On Modal there is no YAML. Modal's guide says "everything, including container environments and GPU specification, is code." You write @app.function(gpu="h100", image=image) above a function, build the image in Python, and run it. You can pass a list of GPU types as fallbacks, and most GPU types allow up to eight per container.
Python is the only language for defining Functions. Modal's JavaScript/TypeScript and Go SDKs can call Functions, run Sandboxes and manage resources, but not define them.
| Baseten | Modal | |
|---|---|---|
| Unit you ship | A model project | A Python app with functions |
| Config lives in | config.yaml plus optional Python | Python only |
| Bring your own server | Custom Docker server, vLLM or SGLang | Any server inside a Python-defined image |
| Iteration loop | Development deployment with live reload | modal run from your laptop |
| Environments and promotion | Built in, stable URL per environment | Handled in your own deploy process |
| What moves with you if you leave | Truss config and model code | Your Python, rewritten off Modal's API |
If your team already thinks in models and endpoints, Truss feels natural. If it thinks in scripts and notebooks, Modal feels natural. For the wider field beyond these two, see our Baseten alternatives and Modal alternatives guides.
Cold Starts and Autoscaling, as Each Vendor Documents It
Both platforms scale to zero. Both bill you while a cold replica is still loading. The defaults are very different.
Baseten: slow to scale down, on purpose
Baseten's autoscaling docs list these defaults:
| Setting | Default |
|---|---|
| Min replicas | 0 (scale to zero) |
| Max replicas | 1 |
| Autoscaling window | 60 seconds |
| Scale-down delay | 900 seconds |
| Max scale-down rate | 50% per step |
| Concurrency target | 1 request per replica |
| Target utilization | 70% |
Two defaults surprise people. Max replicas is 1, so a new deployment won't scale out until you raise it. The scale-down delay is 15 minutes, and scale-down halves replicas per step, so eight replicas go to four, then two, then one, with a full delay between each step. That avoids cold starts on bursty traffic, and you pay for the warm time.
Billing is per minute during startup, before the replica serves a request. To cut cold starts, Baseten mirrors weights into its own storage on first deploy, caches them at cluster and node level, dedupes files shared with a base model, and streams the image so weights load before the download finishes. Its docs say weight loading "can dominate cold-start time" but give no cold-start duration.
Modal: fast to scale down, with warm-pool knobs
Modal's cold start guide says "Containers boot in about one second," by Modal's own figure. Your imports and model loading come on top.
By default, an idle container stays up for 60 seconds. You can set scaledown_window anywhere from two seconds to twenty minutes. To hold latency down, Modal gives you min_containers to keep a floor that never scales to zero, buffer_containers for spare warm containers while traffic is active, and memory snapshots that save a container's state after warm-up. Modal's pricing page says load time and input processing time are both billable.
What this means in practice: with defaults left alone, Baseten favors warm replicas and Modal favors a small idle bill. Spiky traffic will hit more cold starts on Modal's defaults and more idle minutes on Baseten's. Both are tunable, so set them for your traffic before you compare prices. Our Modal vs Runpod comparison goes deeper on Modal's idle rules.
Model APIs: Both Now Sell Tokens
If you just want to call an open model, both vendors will now sell you tokens.
Baseten Model APIs serve hosted language models through OpenAI-compatible and Anthropic-compatible APIs, billed per token. The catalog lists families such as DeepSeek V4, GLM 5.3, Kimi K3 and Nemotron. Baseten's security docs say Model API requests run under zero data retention.
Modal Endpoints come in two kinds, per Modal's Endpoints guide:
- Shared Endpoints: managed models billed per token, with capacity managed by Modal.
- Dedicated Endpoints: supported models or your own weights on isolated capacity, billed for compute, with autoscaling down to zero.
Both expose OpenAI-compatible Chat Completions and Responses plus the Anthropic-compatible Messages API. Modal's pricing page says Model APIs aren't covered by a plan's included compute credits.
The difference is what sits behind them. Baseten lists its own engines for dense LLMs, mixture-of-experts models and embeddings. Modal's Endpoints sit on the same platform as its Functions, which suits teams that want an API now and their own code later. If you're weighing a serving engine for your own deployment, our vLLM vs Ollama guide covers the most common one.
Training and Agent Sandboxes
Training
Baseten offers two paths. Loops is an SDK for supervised fine-tuning and reinforcement learning on supported base models, billed per token on the pricing page. Training Jobs run your own code in a container on managed GPUs, can span several nodes with InfiniBand, and bill per minute at the same GPU rates as inference. A synced checkpoint deploys straight to an endpoint.
Modal announced its Training API on October 22, 2026. The post names the product Spindle, an open-source, Tinker-compatible training server that runs in your Modal workspace. It supports full-parameter training and multi-LoRA, you pay for GPU time rather than tokens, and Modal says it's still in beta. Multi-node training runs on Modal Clusters.
Sandboxes
Modal Sandboxes are "secure containers for executing untrusted code." They run on gVisor or on a VM runtime with its own Linux kernel; if you leave the runtime unset, Modal picks. The default lifetime is 5 minutes, and you can raise it to 24 hours. Sandboxes always bill at non-preemptible rates, three times the base price.
Baseten Sandboxes give each user or project an isolated environment for running commands and working with files. Idle sandboxes go on standby and resume on the next request. Each organization can run up to 10 at once unless support raises the limit. Baseten's sandbox docs don't name the isolation technology.
On September 10, 2026, Baseten announced it had acquired Blaxel, which builds microVM sandboxes, a shared agent filesystem and agent networking. Baseten says it will add new products built on Blaxel's technology, "starting with Sandboxes," and that Blaxel's existing product doesn't change.
| Job | Better fit |
|---|---|
| Serve a fine-tuned LLM with tuned engines | Baseten |
| Fan a Python batch job out over many GPUs | Modal |
| Multi-model pipeline with per-step hardware | Baseten Chains |
| Cron jobs, web endpoints and inference in one app | Modal |
| Run LLM-written code at large scale today | Modal Sandboxes |
| RL fine-tuning billed per token | Baseten Loops |
Hosting, Regions, Compliance and Data Retention
This is the biggest gap for teams with strict data-control rules.
Baseten lists four hosting options:
- Baseten Cloud, the default: multi-tenant, with dedicated GPUs pooled across clouds and regions.
- Single-tenant: an isolated VPC that Baseten runs for you, with optional private connectivity.
- Self-hosted: the workload plane runs in your own cloud account, and inference payloads stay inside your VPC.
- Hybrid: self-hosted workload planes combined with Baseten Cloud.
Baseten's security page says single-tenant and self-hosted come with custom pricing on the Enterprise plan. Regional deployments pin every replica to us or eu, for verified organizations.
Modal is a managed service. Its docs describe no self-hosted or bring-your-own-cloud option. What you get is region selection: pick a broad region such as us or eu at a 1.15x price multiplier, or a narrow one such as us-west at 1.75x. For storage, Modal's data residency guide says you can mount your own buckets.
| Baseten | Modal | |
|---|---|---|
| SOC 2 Type II | Yes, report through its Trust Center | Yes, report through its Trust Center |
| HIPAA | Compliance program on Baseten Cloud and single-tenant | Enterprise plan |
| Data retention | Zero retention on Model APIs and synchronous inference by default | Zero retention on Endpoints and Servers; Function inputs and outputs kept up to 7 days |
| Region control | us or eu per deployment | Many broad and narrow regions, with price multipliers |
| SSO | Enterprise plan | Enterprise plan |
Check both security pages, Baseten's and Modal's, against your own requirements. These lines go stale with every compliance audit.
Billing Model: Per Minute vs Per Second
Both bills scale with usage. The units and the extras differ, so price a real workload on each pricing page.
Baseten (pricing page):
- Dedicated GPUs and training compute bill per minute, including startup time.
- Model APIs bill per token for input, cached input and output.
- Loops training bills per token for prefill, sampling and training.
- Sandboxes bill for CPU, memory, snapshots and storage.
- Two ways to buy: pay as you go with no contract, or a production-scale deal with reserved and priority compute.
Modal (pricing page):
- GPU, CPU and memory bill per second, on the higher of what you requested or used.
- Container load time and the idle window are billable.
- Multipliers stack on top: region selection at 1.15x to 1.75x, and non-preemptible execution at 3x.
- Plans run from Starter to Team to Enterprise. The Team plan adds a monthly platform fee, and both Starter and Team include monthly compute credits.
- Shared Endpoints bill per token, outside those credits.
Per-second billing sounds cheaper, and on short jobs it is. On long-running replicas the unit barely matters. What matters is how long each platform keeps something warm, and that's the autoscaling section above.
Baseten vs Modal: Which One Should You Pick
Choose Baseten if:
- You're serving a known model in production and want tuned engines for it.
- You're building multi-model pipelines where each step needs different hardware.
- Your security review may require single-tenant or self-hosted deployment later.
- You want environments, promotion and rollback built into the platform.
Choose Modal if:
- Your workload is Python first: batch jobs, scheduled tasks, web endpoints and inference in one codebase.
- Your traffic is spiky and you want small idle windows and per-second billing.
- You need sandboxes for agent-written code at scale today.
- You'd rather pick from many regions than run in your own cloud.
Either works if you only need a hosted open model behind an OpenAI-compatible API. Both sell per-token access now, so test the model you want on both.
Where Taku Fits
Baseten and Modal decide where a model runs. Plenty of people just want to use what someone already built on top of one. That's where Taku comes in. Taku Apps and Sites, built by the best AI minds. Find one, run it, and keep it in your Mac Dock. Taku is in Beta, and the Mac app is available now.
Key Points
- Baseten is model-first: Truss packaging, tuned engines, Chains, environments and promotion.
- Modal is code-first: decorated Python functions, with the image and GPU defined in code.
- Default autoscaling differs sharply: Baseten waits 900 seconds before scaling down and caps new deployments at one replica, while Modal's idle window is 60 seconds.
- Both now sell per-token model APIs, training and agent sandboxes. Modal's Training API is in beta, and Baseten bought Blaxel to build out sandboxes.
- Baseten offers single-tenant, self-hosted and hybrid hosting through sales. Modal's docs describe no self-hosted option.
- Baseten bills GPUs per minute. Modal bills per second, with region and non-preemptible multipliers.
FAQ
Is Baseten or Modal better for inference?
Baseten is the better fit for serving a specific model in production with tuned engines and per-step scaling. Modal is the better fit when inference is one part of a larger Python workload. Test your own model on both.
What is the main difference between Baseten and Modal?
The unit you deploy. On Baseten you push a model project packaged with Truss. On Modal you deploy Python functions, with the container and GPU defined in code.
Modal vs Baseten pricing: which is cheaper?
It depends on your traffic. Modal bills per second and scales down after 60 seconds idle by default. Baseten bills per minute and waits 900 seconds by default. Compare a real workload on both pricing pages after tuning the idle settings.
Can I run Baseten or Modal in my own cloud?
Baseten offers self-hosted and hybrid deployment, with custom pricing on its Enterprise plan. Modal's docs don't describe a self-hosted option. It offers region selection instead.
Do Baseten and Modal both offer serverless GPU inference?
Yes. Both scale deployments to zero and back up on demand, and both bill for startup time. Baseten calls them dedicated deployments with autoscaling. Modal calls them Functions or Dedicated Endpoints.
Who owns Baseten and Modal?
Both are independent. Baseten announced a Series F in June 2026, and Modal announced a Series D on October 14, 2026, in posts on their own blogs. Neither post describes a change of ownership.