Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Cerebras Systems Chat API

The Chat API from Cerebras Systems — 1 operation(s) for chat.

Cerebras Systems Chat API is one of 5 APIs that Cerebras Systems publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Chat. The published artifact set on APIs.io includes an OpenAPI specification, an API reference, API documentation, and authentication docs.

This API exposes 1 operation across 1 path, and defines 10 schemas. It is described by OpenAPI 3.1.0, at version 1.0.0.

Requests are made against a single base URL, https://api.cerebras.ai.

1 operations 1 paths 10 schemas 1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0.0
Base URL
https://api.cerebras.ai
Authentication
HTTP Bearer
Resource Areas
1

Authentication & Security 1

Cerebras Systems Chat API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (BearerAuth). By default, every request must be authenticated.

  • BearerAuth — API key for authentication. Obtain your key from the Cerebras Cloud console and pass it as Authorization: Bearer YOURAPIKEY.

Paths & Operations 1

Across 1 path, the API surfaces 1 operation — 1 POST. Each is listed below with its method, path, parameters, and response codes.

Chat 1
POST
/v1/chat/completions
Create chat completion
createChatCompletion 3 params body → 200

Schemas 10

The contract defines 10 schemas that model the data the API accepts and returns. The most detailed are ChatCompletionRequest (23 properties), ChatCompletionResponse (10 properties), AssistantMessage (5 properties), DeveloperMessage (3 properties). Each schema is shown below with its type and property counts.

ChatCompletionRequest
object
23 properties 2 required
ResponseFormatText
object
Text format (default). Generates plain text responses.
1 property 1 required
ChatCompletionResponse
object
10 properties
UserMessage
object
Messages sent by an end user, containing prompts or additional context.
3 properties 2 required
ResponseFormatJsonObject
object
JSON object format (legacy). Ensures valid JSON output but does not enforce a specific schema. Using jsonschema is recommended for models that support it. To u…
1 property 1 required
AssistantMessage
object
Messages sent by the model in response to user messages.
5 properties 1 required
ResponseFormatJsonSchema
object
JSON Schema format. Enforces schema compliance for structured output. Recommended over jsonobject for models that support it.
2 properties 2 required
ToolMessage
object
Tool message containing the result of a tool call.
3 properties 3 required
DeveloperMessage
object
Developer-provided instructions the model should follow regardless of user messages. For gpt-oss-120b, developer messages replace system messages, but system i…
3 properties 2 required
SystemMessage
object
Developer-provided instructions the model should follow regardless of user messages.
3 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

cerebras-systems-chat-api-openapi.yml Raw ↑

Other APIs Cerebras Systems publishes across the network.

Cerebras Systems Completions API
Cerebras Systems Models API
Cerebras Systems Public Models API
Cerebras Systems Tcp Warming API