Skip to main content
POST
Buat Message (Anthropic-compatible)
Generates a response using the Anthropic Messages API schema. Authenticate with either x-api-key: $CERASAI_API_KEY or Authorization: Bearer $CERASAI_API_KEY.

Authorizations

x-api-key
string
header
required

Kunci API workspace CerasAI (format Anthropic: x-api-key: $CERASAI_API_KEY).

Body

application/json
model
string
required
Example:

"zai-org/GLM-5.3-Flash"

max_tokens
integer
required
Example:

1024

messages
object[]
required
system
string
stream
boolean
default:false
temperature
number

Response

Respons Anthropic Message berhasil.

id
string
type
string
Example:

"message"

role
string
Example:

"assistant"

model
string
Example:

"zai-org/GLM-5.3-Flash"

content
object[]
stop_reason
string | null
usage
object