Sign in

Create chat completion

documented

Generate a chat completion for a multi-turn conversation.

POST /v1/chat/completionsChatno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.cerebras.ai/v1/chat/completions" \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {{CEREBRAS_API_KEY}}" \
  -d '{"model": "{{$model}}", "messages": [{"role": "user", "content": "{{$user_message}}"}]}'