Create chat completion
Generate conversational responses using a structured message format with roles (system, user, assistant, developer, tool). Best for chatbots, assistants, and multi-turn conversations.
Request
- Base URLhttps://api.cerebras.ai
- AuthHTTP bearer
Headers
The media type of the request body. Supported values: application/json, application/vnd.msgpack. Default: application/json.
The compression encoding applied to the request body. When set, the request body must be gzip-compressed. Can be combined with any supported Content-Type. Supported values: gzip.
Controls the queue time threshold for requests using the flex or auto service tiers. Requests are preemptively rejected if the rolling average queue time exceeds this threshold. Valid range: 50–20000 (milliseconds). Private Preview.
Request body
Response
Successful response
Changes
No recorded changes to this operation across all 1 revision of this API.