Skip to main content
Serverless models are the fastest way to run inference on Together AI. Call any supported model through a shared, per-token API, with no provisioning, no GPUs to size, and no minimum cost. You pay only for the tokens, megapixels, or seconds of audio/video/speech you process. Serverless uses the same inference APIs as dedicated model inference, so you can prototype on serverless and move to reserved hardware later without changing your application code.

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.
Per-model rates are in the catalog tables, and on together.ai/pricing. If you don’t need real-time responses, some models are discounted up to 50% when run with batch workloads.

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.