Skip to content
GLM 5.4 is now on Model APIs: GPT-6 Sol class intelligence at up to 200 tok/s.
Learn more

Model APIs

Frontier intelligence, ready for production

Securely access the most intelligent models at frontier speed and quality for any workload.

Access the latest open weight models the day they launch.

Get started
  • Access frontier models

    Pay only for the tokens you use, with intelligent routing to maximize KV cache hits and minimize cost.

  • Production-grade quality

    Evals verified by leading model labs for production serving performance.

  • Multi-cloud reliability

    Served from Modal's multi-cloud, autoscaling compute pool for consistent reliability.

Frontier performance

  • State-of-the-art engine

    Our battle-tested inference engine combines bleeding-edge speculators and custom kernels for zero compromise on correctness, while maximizing tokens per second.

  • Faster, cheaper multi-turn inference

    KV cache-aware routing sends follow-up requests to replicas that can reuse cached conversation tokens, reducing time to first token and serving costs.

How we serve trillions of tokens
Throughput and interactivity comparisonAnimated recreation of the supplied chart. Vertical axis: throughput in tokens per minute per GPU. Horizontal axis: interactivity in tokens per second per user. Both curves show points labeled 6, 4, 2, and 1. The supplied comparisons read 5.6x more efficient and 2.8x faster per user. Point coordinates are approximate visual transcriptions, not underlying measurement data.

Designed for security and data privacy

  • Zero Data Retention (ZDR) by default

    Zero data retention means we never store prompts or responses from Model APIs.

  • No data use

    Your data is never used to train models. Inference runs entirely on Modal, so nothing is shared with model labs.

  • Encrypted in transit

    All traffic to and from Model APIs is encrypted in transit with TLS.

Read about our policies

Built on the core of inference research

Diagram of a query attending over a sequence of tokens split across four streaming multiprocessors in parallel.

Optimizing the FlashAttention-4 kernel

Key/value parallelism and irregular memory access make the kernel faster for decode-heavy inference.

Read more
Total throughput comparison: baseline 203 tokens per second, MTP 558 tokens per second (2.75 times baseline), and DFlash 875 tokens per second (4.31 times baseline).

Speculation is all you need

How we train custom speculators for state-of-the-art inference performance.

Read more

Ship your first app in minutes

$30 / month free compute