Skip to content

Cerebras

Cerebras uses an OpenAI-style API for the operations listed below. The DeepIntShield adapter covers documented chat, Responses, legacy text, model-list, streaming, and tool-call shapes; it is not a complete OpenAI API implementation. Pin and test the selected Cerebras model and gateway release because upstream capabilities and accepted parameters can differ. Key characteristics:

  • OpenAI-style request shapes - documented chat, text, and streaming paths
  • Tool calling - function definitions and provider-supported parallel tool execution
  • Streaming support - Server-Sent Events with token usage tracking
  • Parameter handling - known unsupported fields are omitted as documented below
  • Responses API conversion - supported content is converted to the Responses shape
OperationNon-StreamingStreamingEndpoint
Chat Completions/v1/chat/completions
Responses API/v1/chat/completions
Text Completions/v1/completions
List Models-/v1/models
Embeddings-
Image Generation-
Speech (TTS)-
Transcriptions (STT)-
Files-
Batch-

Cerebras supports all standard OpenAI chat completion parameters. For full parameter reference and behavior, see OpenAI Chat Completions.

The following parameters are not supported by Cerebras and are ignored: prompt_cache_key, verbosity, store, service_tier.

Cerebras follows the OpenAI-compatible reasoning convention using reasoning.effort. A thinking-token budget (reasoning.max_tokens) is not accepted by Cerebras.

Cerebras supports all standard OpenAI message types, tools, responses, and streaming formats. For details on message handling, tools, responses, and streaming, refer to OpenAI Chat Completions.


Cerebras supports the Responses API with the same parameters as Chat Completions. Responses are returned in Responses format (output items instead of message content).


Cerebras supports legacy text completion API:

ParameterMapping
promptSent as-is
max_tokensmax_tokens
temperaturetemperature
top_ptop_p
stopstop sequences

Response returns choices[].text with completion text.


Streaming text completions use same SSE format as chat streaming.


Lists available models from Cerebras with capabilities and context length information.


FeatureReason
EmbeddingNot offered by Cerebras API
Image GenerationNot offered by Cerebras API
Speech/TTSNot offered by Cerebras API
Transcription/STTNot offered by Cerebras API
Batch OperationsNot offered by Cerebras API
File ManagementNot offered by Cerebras API

User Field Size Limit

Severity: Low Behavior: User field > 64 characters is silently dropped Impact: Longer user identifiers are lost