Use the OpenAI Client Libraries with Cerebras Inference
apiKey
parameter and change the baseURL
to https://api.cerebras.ai/v1:
gpt-oss-120b
model. gpt-oss-120b
, our API maps the “system” role to a “developer” level in our prompt hierarchy. When you send messages with role: "system"
, we insert these instructions into our system prompt behind the scenes, giving you significant control over model behavior while preserving core safety guidelines.
frequency_penalty
logit_bias
presence_penalty
parallel_tool_calls
service_tier
stream
parameter, note that JSON mode is not compatible with streaming.