Modal's pitch is simple: write Python, attach a GPU, and pay only for the seconds the code runs. Its pricing page quotes $0.001097 per second for an H100 and $0.001736 per second for a B200, with CPU, memory, volumes and egress billed separately.
That is a strong deal for the right workload. It is a poor deal for a product team that wanted a chat endpoint and now owns container images, cold starts and GPU quotas. This guide explains when to stay on Modal, when to move to a model API, and which alternative fits each case.
| Option | Best for | Pricing model | Deployment | Notable limit |
|---|---|---|---|---|
| Plugsky | A managed API with a private boundary | $20 / $60 / $120 monthly plans; enterprise quote | Public API, private VPC, on-premises, air-gapped | 39 models; no arbitrary Python execution |
| Modal | Serverless Python, GPUs and sandboxes | Per-second compute plus $0 or $250 plan fee | Hosted; region selection at 1.15 to 1.75x | You build and operate the workload |
| Baseten | Packaged model serving | Per-token and per-GPU-minute | Hosted with dedicated capacity | Narrower than general compute |
| DeepInfra | Cheap per-token open models | Per-token; dedicated GPUs hourly | Hosted | Shared public-model concurrency cap |
| Nebius Token Factory | Open-weight inference and GPU cloud | Per-token; GPU cloud priced separately | Hosted with dedicated endpoints | No closed frontier models |
What Modal is for
Modal is a compute platform with a developer experience built around Python decorators, container images and fast cold starts. It is well suited to batch inference, image and video jobs, reinforcement learning rollouts, data processing and sandboxed code execution for agents.
Its model APIs are a smaller part of the product. If the job is to call a chat model with a prompt and a key, Modal adds a layer you do not need. If the job is to run a custom pipeline that happens to include a model, Modal removes a lot of infrastructure work.
- Per-second billing with no charge for idle capacity.
- GPU types from T4 through B300.
- Sandboxes billed at three times the non-preemptible rate.
- Region selection priced at 1.15 to 1.75 times the base rate.
The plan fee is not the bill
Modal's Starter plan has no monthly fee and includes $30 of compute credit. The Team plan costs $250 per month and includes $100 of credit. In both cases the real bill is compute, so a team that benchmarks the plan fee rather than the workload will misjudge the cost.
Model the workload in seconds: container start time, execution time, GPU type, concurrency and idle tail. A pipeline that spins up an H100 for a 40-second job can spend more on cold starts than on inference. Modal's value depends on how quickly it starts and how well it packs work.
The cold-start bill
Per-second billing sounds precise until you measure the seconds before useful work starts. A container has to pull an image, load a model and warm a runtime. On a large GPU, a few minutes of startup can cost more than the inference that follows.
The problem compounds with scale-to-zero. A service that sleeps between requests saves idle cost but pays a start penalty on the first request after a quiet period. A product with bursty traffic can spend a surprising share of its bill on restarts rather than answers.
Modal's value depends on how well it hides that penalty. Its platform is built for fast starts, but the buyer should still measure the p95 time from request to first token under realistic traffic. A benchmark that runs warm containers in a loop will flatter any serverless platform, so test the cold path as well.
The alternative is a minimum warm capacity, which turns per-second billing into a small reserved bill. That may still be cheaper than a dedicated GPU, but it is no longer purely pay-as-you-go. Model it explicitly rather than assuming scale-to-zero is free, and compare the warm pool against the cost of a slower first response.
- Measure cold start separately from inference time.
- Test the first request after ten quiet minutes.
- Include image size and model load time.
- Compare scale-to-zero with a small warm pool.
Security features are plan-gated
Modal's pricing page lists SOC 2 compliance on every plan, with HIPAA compatibility, audit logs, RBAC and SSO appearing on higher tiers. That matters for buyers who assume a serverless platform is automatically enterprise-ready. It is not; the controls arrive with the contract.
For regulated data, ask where the containers run, whether logs are retained, who can access a workspace and how secrets are scoped. A per-second compute bill says nothing about those answers.
When a managed API is the better buy
A managed model API wins when the model is a commodity and the application is the product. The buyer avoids GPU quota, container images, cold-start tuning and capacity planning. The trade-off is less control over the runtime and a narrower choice of model versions.
Plugsky fits that case: 39 public model IDs behind an OpenAI-compatible API, flat plans at $20, $60 and $120, per-key access, RBAC, SSO, audit export, spend controls and BYOK. Private VPC, on-premises and air-gapped deployment are available by contract, with a 99.9% uptime target that excludes Hobby and is governed by a signed order form. A team that does not want to think about container images can treat the model as a utility and spend its engineering time on the product.
When a competitor wins
Modal wins when the workload is genuinely computational. A team running custom image models, agent sandboxes, simulation or training jobs needs a compute platform, not a chat API. It also wins when usage is spiky enough that reserved GPUs would sit idle, and when the team has the platform engineer to own the deployment.
Baseten wins when the unit is a packaged model rather than arbitrary code. DeepInfra or Nebius win when the workload is standard open-weight inference and price per token is the main variable. The decision rule is to buy compute only when you have compute-shaped work.
Verdict
Stay on Modal if you need serverless GPUs, sandboxes or custom Python pipelines and have the engineering time to own them. Move to Baseten if the unit is a packaged model with dedicated capacity. Move to DeepInfra or Nebius if you want open-weight inference without infrastructure work.
Choose Plugsky when the requirement is a managed, OpenAI-compatible endpoint with a flat monthly price and a deployment boundary that can move to private VPC, on-premises or air-gapped. The test is simple: if nobody on the team wants to debug a container at 2am, do not buy compute.
Frequently asked questions
Is Modal a model API provider?
It offers model APIs, but its core product is serverless compute for Python and GPU workloads. Most buyers use it to run their own code.
How much does Modal cost?
Starter has no monthly fee and includes $30 of compute credit; Team costs $250 per month and includes $100 of credit. Compute is billed per second on top.
Does Modal support private deployment?
Its public pricing page describes hosted compute with region selection. Ask the vendor about customer VPC or on-premises options if that is a requirement.
When should I use a managed API instead?
When the workload is a standard chat, embedding or image call and the team does not want to own containers, GPUs or cold starts.
What is the main risk of per-second billing?
Idle tails and cold starts. A short job on an expensive GPU can cost more in startup time than in useful compute, so measure the whole run.
Related
Sources
- Modal pricing · 23 Nov 2026
- Baseten pricing · 23 Nov 2026
- DeepInfra pricing · 23 Nov 2026
- Nebius Token Factory · 23 Nov 2026