Skip to main content
This feature is in Private Preview. For access or more information, contact us or reach out to your account representative.
Prioritize requests on the Cerebras Inference API to balance latency sensitivity and resource allocation across your workloads.
Service tiers are not available with Shared Inference. The examples on this page assume a dedicated endpoint with service-tier support enabled.

Service Tiers

Service tiers determine the processing priority of your requests. You can specify a tier using the service_tier parameter in your API requests. When no service_tier is specified, requests default to the default tier.

Usage

Add the service_tier parameter to your chat completions request to specify the priority level.
When service-tier handling is applied, the response includes service_tier with the effective tier used to process the request. An auto request returns auto when it is served at its standard priority and flex when it falls back. A priority request returns priority when it is served at the higher priority and auto when it is retried at its standard priority. Requests using the default behavior may omit this field or return null.

Queue Threshold Control

Only applies to requests using the flex or auto service tiers.
The queue_threshold header allows you to set a maximum acceptable queue time for flex tier requests. If the expected queue time exceeds your threshold, the request is preemptively rejected rather than waiting in the queue. Valid range: 50-20000 milliseconds
If no threshold is specified, a system default is used.

FAQ

priority and default rate limits are the same, while flex rate limits are tracked independently and are several multiples of default rate limits.
Yes. Log in to cloud.cerebras.ai and click Analytics. Graphs in the analytics tab display usage across different service tiers, allowing you to monitor consumption by priority level.
No, during the preview launch all service tiers are billed equally.
An auto request can fall back to flex when standard rate limits or capacity are unavailable. A priority request is attempted at its configured higher priority first, but it can be retried at the request’s standard priority if it cannot be admitted there. default and flex requests do not cascade to another tier.
The queue time threshold only applies once a request is being processed on the flex service tier. You can set it on requests using auto or flex, but it will only be evaluated if the request is processed on the flex tier.