Get started
Quickstart
Make your first API request in a few minutes.
Available models
Browse the catalog of serverless models and their rates.
Recommended models
See our picks by use case if you’re not sure where to start.
Inference APIs
Call chat, image, audio, embedding, and more through one API.
Batch inference
Run asynchronous workloads at up to 50% lower cost.
Rate limits
Serverless models are rate-limited, so they work best when you’re prototyping or evaluating a model, or when your production traffic is variable, bursty, or low enough that per-token pricing is cost-effective. If your traffic is steady, you need higher rate limits, or you want reserved hardware, use a dedicated endpoint.Pricing
Serverless models bill based on usage, with no minimums and no provisioning cost. You pay per unit of work, with units determined by model type:- Chat, language, embedding, and rerank: Per input and output token.
- Image generation: Per megapixel of output.
- Video generation: Per second of output.
- Speech-to-text and text-to-speech: Per second of audio.
Cached input discounts
Select serverless chat models bill cached input tokens at a steep discount. Caching is:- Automatic: There is no header, parameter, or account toggle to enable it. Send the same prompt prefix again and any portion that’s still warm in the shared cache is billed at the cached rate.
- Prefix-based: Only the longest matching prefix of your input counts as cached. Tokens after the first difference are billed at the standard input rate.
- Best-effort and short-lived: The serverless cache is shared across the fleet and entries are evicted as traffic shifts, so cache hits aren’t guaranteed and there’s no configurable retention window. For predictable cache behavior, use a dedicated endpoint, where prompt caching is enabled by default and scoped to your own replicas.
- Limited to supported models: Only models with a value in the Cached input pricing column on Chat models support cached input billing. Models without a cached price bill all input tokens at the standard rate.