Skip to content

cerebras

@ai-sdk/cerebras

AIProviders.cerebras

  • Language

Cerebras chat models mirror upstream Cerebras 3.0.44: CEREBRAS_API_KEY, custom base URL and headers, callable provider plus languageModel/chat aliases, cerebras.chat provider IDs, versioned user-agent suffix, typed provider-option validation, maxOutputTokens mapped to max_completion_tokens, current model IDs such as gpt-oss-120b and qwen-3-235b-a22b-thinking-2507, structured outputs, reasoning transform, structured-output tool-call normalization, flat Cerebras error schema, empty tool-call ID normalization, and unsupported embedding/image families.

Factory argument requirements are defined by the public Swift factory signatures. Use Public symbols when you need the exact initializer or factory declaration.

Return to the provider matrix.