Skip to main content
POST
Glm Chat Completions

Авторизации

Authorization
string
header
обязательно

Заголовки

accept
enum<string>

Glm Chat Completions Param Accept

Доступные опции:
application/json

Тело

application/json
model
enum<string>
обязательно

Glm Chat Completions Model

Доступные опции:
glm-5.2,
glm-5,
glm-5-turbo,
glm-5.1,
glm-4.7,
glm-4.6,
glm-3-turbo
Пример:

"glm-4.7"

messages
object[]
обязательно

Glm Chat Completions Messages 4

Minimum array length: 1
n
number | null
по умолчанию:1

Glm Chat Completions N

Требуемый диапазон: 1 <= x <= 128
Пример:

1

stream
boolean | null
по умолчанию:false

Glm Chat Completions Stream

max_tokens
number | null

Glm Chat Completions Max Tokens

temperature
number | null
по умолчанию:1

Glm Chat Completions Temperature

Требуемый диапазон: 0 <= x <= 2
Пример:

1

response_format
object

Glm Chat Completions Response Format 4

top_p
number | null
по умолчанию:1

Glm Chat Completions Top P

Требуемый диапазон: 0 <= x <= 1
Пример:

1

frequency_penalty
number | null
по умолчанию:0

Glm Chat Completions Frequency Penalty

Требуемый диапазон: -2 <= x <= 2
Пример:

0

presence_penalty
number | null
по умолчанию:0

Glm Chat Completions Presence Penalty

Требуемый диапазон: -2 <= x <= 2
Пример:

0

seed
integer | null

Glm Chat Completions Seed

stop

Glm Chat Completions Stop 3

max_completion_tokens
integer | null

Glm Chat Completions Max Completion Tokens

logprobs
boolean | null
по умолчанию:false

Glm Chat Completions Logprobs

top_logprobs
integer | null

Glm Chat Completions Top Logprobs

Требуемый диапазон: 0 <= x <= 20
stream_options
object | null

Glm Chat Completions Stream Options

parallel_tool_calls
boolean
по умолчанию:true

Glm Chat Completions Parallel Tool Calls

user
string

Glm Chat Completions User

reasoning_effort
enum<string> | null
по умолчанию:medium

Glm Chat Completions Reasoning Effort

Доступные опции:
minimal,
low,
medium,
high
service_tier
enum<string> | null
по умолчанию:auto

Glm Chat Completions Service Tier

Доступные опции:
auto,
default,
flex,
scale,
priority
store
boolean | null
по умолчанию:false

Glm Chat Completions Store

metadata
object | null

Glm Chat Completions Metadata

logit_bias
object | null

Glm Chat Completions Logit Bias

modalities
enum<string>[] | null

Glm Chat Completions Modalities

Доступные опции:
text,
audio
audio
object | null

Glm Chat Completions Audio

prediction
object | null

Glm Chat Completions Prediction 3

web_search_options
object

Glm Chat Completions Web Search Options

tools
object[] | null

Glm Chat Completions Tools

tool_choice

Glm Chat Completions Tool Choice 3

Доступные опции:
none,
auto,
required

Ответ

Glm Chat Completions Response 200 2

Glm Chat Completions Response 200

id
string
обязательно

Glm Chat Completions Response 200 Id

model
string
обязательно

Glm Chat Completions Response 200 Model

object
enum<string>
обязательно

Glm Chat Completions Response 200 Object

Доступные опции:
chat.completion
choices
object[]
обязательно

Glm Chat Completions Response 200 Choices

created
number
обязательно

Glm Chat Completions Response 200 Created

system_fingerprint
string

Glm Chat Completions Response 200 System Fingerprint

usage
object

Glm Chat Completions Response 200 Usage