Skip to content
    Serverless vs. dedicated endpoint calculator

    Should I use a serverless or a dedicated endpoint?

    At low volume, serverless is the obvious choice. At scale, dedicated beats per-token pricing. Find the exact crossover for your model and monthly token volume.

    Compare FlexAI dedicated endpoints against FlexAI's serverless options and other providers including OpenRouter, Together AI, and Fireworks.

    Your setup

    Token volume

    5B tokens
    1M1,000B
    100% of the month

    Dedicated bills per minute and scales to zero, so you pay for the time you serve. Leave this at 100% for an always-on endpoint.

    Serverless

    $1,500

    per month

    Dedicated

    $6,322

    per month

    Dedicated config:2× NVIDIA H100 SXM

    Sized on H100 (smallest safe fit). Ask about B200/B300 for the largest models or latency-sensitive workloads.

    Break-even21.07B tokens/mo
    1M1,000B tokens/mo
    at 5B tokens / month

    Serverless is cheaper here

    FlexAI serverless stays the cheaper option up to 21.07B tokens/month for this model.

    Serverless rates come from the FlexAI catalog's cited public market sources, blended at a 70/30 input/output mix. Dedicated costs assume 2× NVIDIA H100 SXM at the serving time you set above. Dedicated bills per minute and scales to zero, so lowering that percentage lowers the dedicated cost and moves the break-even earlier, down to the floor set by the serving time the volume itself needs. Endpoint count is sized on sustained throughput, so it rises with volume.

    Dedicated on FlexAI isn't just about cost

    Even below the crossover, dedicated endpoints give you things serverless APIs can't offer.

    Per-minute billing

    Scale to zero between requests. Pay only for active compute, not provisioned time.

    No shared rate limits

    Your endpoint, your throughput. No queueing behind other tenants at peak.

    Your fine-tuned models

    Serve LoRAs and full fine-tunes without serverless catalog restrictions.

    Your data, your VPC

    Deploy on FlexAI or bring your own. Inference never leaves your boundary.

    Two cost models, one crossover

    Serverless: variable cost

    You pay per token. Cost scales linearly with volume: predictable, but the per-token price bundles infrastructure, operations, and provider margin.

    monthly = tokens_M × rate_per_M

    Dedicated: cost follows serving time

    You pay per minute of serving on a GPU configuration. Below one endpoint's throughput the bill is flat, so the effective per-token rate keeps falling as volume grows. Past it you serve for longer, or on more endpoints in parallel, and the bill follows those minutes.

    monthly = gpu_count × rate × 730 hrs × max(duty, volume ÷ capacity)

    When does serverless inference get expensive?

    At low token volumes, serverless GPU inference is the obvious choice: no upfront commitment, no infrastructure to manage, and you pay only for what you use. But serverless pricing bundles infrastructure, operations, and provider margin into every token. At scale, that overhead adds up.

    Dedicated inference flips the model. You run a dedicated GPU configuration, pay per minute of serving, and the endpoint processes as many tokens as the hardware allows. The effective per-token cost falls as volume grows, and above the crossover dedicated costs less per token than paying per token.

    The break-even threshold varies widely by model. A smaller model with a low market rate has a higher crossover. You need more volume before dedicated makes sense. A large model with aggressive serverless pricing may cross over at a surprisingly modest volume. This calculator shows you the exact threshold for your workload in two fields.

    Serverless vs. dedicated: common questions

    The crossover point is the monthly token volume at which a dedicated GPU endpoint becomes cheaper than paying per token on a serverless API. Below the crossover, serverless is cost-efficient. Above it, a dedicated endpoint costs less per token than the per-token serverless markup. Dedicated bills per minute and autoscales, so your duty cycle moves the crossover: the less continuously you serve, the sooner dedicated pays off. The calculator assumes an always-on endpoint unless you tell it otherwise, which is the most conservative case.

    Serverless inference adds a margin on every token to cover shared infrastructure and provider overhead. A dedicated GPU charges for serving time instead, billed per minute, so the bill follows how long you serve rather than how many tokens you generate. Past enough volume that works out below the per-token rate.

    Configurations come from the FlexAI model catalog's sizing data: each model's memory footprint at the most efficient supported precision, expressed as the smallest safe NVIDIA H100 count. Small models (≤ 30B) fit on a single H100; large MoE models (480B–671B) scale out to multi-GPU H100 nodes. As B200 capacity comes online, fewer GPUs per deployment become possible for the largest models.

    Yes. FlexAI dedicated endpoints bill per minute and autoscale to zero between requests, so you pay for the minutes the endpoint is actually serving. On-demand needs no reservation and has no hourly minimum.

    Rates come from the FlexAI model catalog, which tracks the credible public market rate per model with a cited source, refreshed automatically. Input and output rates are blended at a 70/30 input/output mix. This calculator is most useful for directional guidance; exact break-even depends on your actual workload mix and any negotiated rates.

    The break-even depends on your model and token volume. For DeepSeek R1 Distill Qwen 32B at current market serverless rates, dedicated breaks even at 21.07B tokens/month. Above that, 2× NVIDIA H100 SXM on FlexAI at $6,322/month undercuts serverless pricing. Use the calculator above to find your exact crossover.

    At low volumes (<1B tokens/month), serverless options including OpenRouter are cheaper, with no upfront commitment. Past the model's break-even volume, a dedicated FlexAI endpoint consistently undercuts serverless pricing. At 50B tokens/month with DeepSeek R1 Distill Qwen 32B: dedicated at $6,322/month vs serverless at $15,000/month, 40% cheaper.

    Above the break-even volume (21.07B tokens/month for DeepSeek R1 Distill Qwen 32B; model-dependent), a dedicated endpoint costs less per token than paying per token. Below it, serverless wins. That figure assumes an always-on endpoint: dedicated bills per minute and autoscales, so a workload that serves less than continuously breaks even sooner. FlexAI offers both, and the crossover calculator shows your number for your duty cycle.

    Bursty agent traffic with unpredictable volume: use serverless until you exceed your model's break-even volume (typically several billion tokens/month). Steady-state, high-volume pipelines: dedicated. FlexAI dedicated endpoints also bill per minute and autoscale (no idle charges), with no shared rate limits and support for fine-tuned models, which matters for latency-sensitive agents.

    FlexAI Token Factory is priced against the credible published market rate per model, with the source cited on every row. No hidden markups, no bundled overhead. The serverless vs dedicated calculator uses these rates. Input your model and volume to see exact monthly costs.

    Still have a question? Talk to an expert