Skip to main content
POST
BaseURL: The default BaseURL is https://direct.evolink.ai, which has better support for text models and long-lived connections. https://api.evolink.ai is the primary endpoint for multimodal services and serves as a fallback address for text models.

Authorizations

Authorization
string
header
required

##All APIs require Bearer Token authentication##

Get API Key:

Visit API Key Management Page to get your API Key

Add to request header:

Body

application/json
model
enum<string>
default:glm-5.3
required

Model to call:

Available options:
glm-5.3,
glm-5.3-flash,
glm-5.2
Example:

"glm-5.3"

messages
Message · object[]
required

The list of conversation messages, in chronological order. At least one message is required.

Minimum array length: 1

Response

Chat completion generated successfully

id
string

Task ID

Example:

"chatcmpl-a6613b56-c61c-94ba-9a9f-43d4cdc7d77a"

object
enum<string>

Response type

Available options:
chat.completion
Example:

"chat.completion"

request_id
string

Request ID (returned when request_id is provided in the request)

Example:

"req-7f3a2c1e8b9d4f0a"

created
integer

Request creation time, Unix timestamp (seconds)

Example:

1777021417

model
string

Model name

Example:

"glm-5.3"

choices
object[]

The list of model responses

usage
object

Token usage statistics returned when the call ends

content_filter
object[]

Content safety-related information