Nexus
1.x
Docs/Nexus/Cerebras
Open

Reading1 min
Updated31 Jul 2026
Sourcev1/providers/cerebras.mdx

Cerebras provides ultra-fast inference on their Wafer Scale Engine hardware. Uses an OpenAI-compatible API.

Installation01

import "github.com/xraph/nexus/providers/cerebras"

Quick Start02

provider := cerebras.New(os.Getenv("CEREBRAS_API_KEY"))

gw := nexus.New(
    nexus.WithProvider(provider),
)

Options03

OptionDescription
cerebras.WithBaseURL(url)Override the API base URL (default: https://api.cerebras.ai/v1)

Capabilities04

CapabilitySupported
ChatYes
StreamingYes
EmbeddingsNo
VisionNo
ToolsNo
ThinkingNo

Models05

ModelContextMax OutputInput PriceOutput Price
llama3.1-8b8,1924,096$0.10/M$0.10/M
llama3.1-70b8,1924,096$0.60/M$0.60/M