Skip to main content

Cerebras

Use this when your team already runs on Cerebras and you want that vendor family to stay explicit in Loong config instead of disappearing behind a generic compatibility route.

At A Glance

FieldValue
Built-in kindcerebras
Provider groupDirect Hosted Providers
Protocol familyopenai_chat_completions
Feature familyopenai_compatible
Auth schemebearer
Credential envsCEREBRAS_API_KEY
Aliasescerebras_compatible
Default base URLhttps://api.cerebras.ai
Request endpointhttps://api.cerebras.ai/v1/chat/completions
Models endpointhttps://api.cerebras.ai/public/v1/models

Minimal Config

active_provider = "cerebras"

[providers.cerebras]
kind = "cerebras"
api_key = { env = "CEREBRAS_API_KEY" }
model = "auto"

Verify It

loong doctor
loong list-models
loong ask --message "Say hello and name the active provider."
If list-models is unreliable for this account or region, pin an explicit provider.model or add preferred_models instead of leaving recovery implicit.

Auth And Routing Contract

ContractValue
Auth optionalno
Model probe auth optionalyes
Default API key envCEREBRAS_API_KEY
OAuth envnone
Primary request routehttps://api.cerebras.ai/v1/chat/completions
Primary model-catalog routehttps://api.cerebras.ai/public/v1/models