glm-5.3
unofficialchat
glm-5.3 specifications
| Context window | 1.05M |
|---|---|
| Max output tokens | — |
| Release date | — |
| Input | Text |
| Output | Text |
glm-5.3 pricing in rubles
You pay for what you use, per token and per unit. The final request cost is returned in the API response.
| Type | Price |
|---|---|
| Input tokens | 280 ₽ per 1M tokens |
| Output tokens | 880 ₽ per 1M tokens |
| Cache read | 52 ₽ per 1M tokens |
Prices are in rubles and may change with exchange rates.
What glm-5.3 can do
- Function calling
- Reasoning mode
- Streaming responses
glm-5.3 API: connection and code examples
The service exposes a single OpenAI-compatible API. Set our base_url and the key from your dashboard.
OpenAI Python SDK
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.neuralbridge.ru/v1",
)
response = client.chat.completions.create(
model="z-ai/glm-5.3-08130",
messages=[{"role": "user", "content": "Привет! Расскажи о себе."}],
)
print(response.choices[0].message.content)Python (requests)
import requests
response = requests.post(
"https://api.neuralbridge.ru/v1/chat/completions",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={
"model": "z-ai/glm-5.3-08130",
"messages": [{"role": "user", "content": "Привет! Расскажи о себе."}],
},
)
print(response.json()["choices"][0]["message"]["content"])cURL
curl https://api.neuralbridge.ru/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "z-ai/glm-5.3-08130",
"messages": [{"role": "user", "content": "Привет! Расскажи о себе."}]
}'API endpoints
POST /v1/chat/completionsprimary | Chat Completions Chat asosiy endpointi: xabarlar tarixini qabul qiladi va model javobini qaytaradi. Oqimli va oddiy rejimlarni qo‘llab-quvvatlaydi. |
POST /v1/responses | Responses Holat va tuzilgan chiqish bilan chatning muqobil formati. |
POST /v1/messages | Messages Anthropic formati: Claude uchun yozilgan mijozlar va SDKlar uchun bir xil chat. |
POST /v1/converse | Converse Amazon Bedrock Converse formati — uni uchun yozilgan mijozlar uchun. |
POST /v1/converse-stream | Converse Stream Bedrock Converse formatining oqimli varianti. |
POST /v1/generateContent | Generate Content Google Gemini formati — mijozlar va unga mo‘ljallangan SDKlar uchun. |
POST /v1/streamGenerateContent | Stream Generate Content Gemini formatining oqimli varianti. |
Supported request parameters
| Parameter | Default | Allowed values | Description |
|---|---|---|---|
temperature | 1 | — | Javobning xilma-xilligiga ta'sir qiladi: qiymat qanchalik yuqori bo'lsa, chiqish shunchalik tasodifiy, past bo'lsa, shunchalik oldindan aytib bo'ladigan. |
top_p | 1 | — | Eng ehtimoliy tokenlarning ulush tanlovini cheklaydi: faqat ehtimolliklari yig'indisi P ga teng bo'lgan tokenlar hisobga olinadi. |
max_tokens | — | — | Model javobda yaratishi mumkin bo‘lgan tokenlar sonining yuqori chegarasi. |
presence_penalty | 0 | — | Agar token matnda allaqachon uchragan bo‘lsa, uning ehtimoli kamayadi — model yangi mavzularga osonroq o‘tadi. |
frequency_penalty | 0 | — | Token ehtimolini u qanchalik tez-tez uchraganiga proporsional ravishda kamaytiradi — takrorlanishlarga qarshi kurashadi. |
stop | — | — | Cheklovchi satrlar ro‘yxati: model har qanday birini chiqarishi bilan generatsiya to‘xtatiladi. |
seed | — | — | Tasodifiylikni qat'iy belgilaydi: bir xil seed va bir xil parametrlar bilan takroriy so‘rov bir xil natija beradi. |
response_format | — | — | Javob formati: oddiy matn yoki berilgan sxema bo‘yicha qat'iy JSON. |
stream | false | — | Javobni generatsiya jarayonida oqim sifatida berish, oxirida bitta bo‘lak sifatida emas. |
reasoning_effort | — | low, medium, high | Aql darajasi: model javobdan oldin mulohaza qilish uchun qancha kuch sarflaydi. Yuqori daraja — chuqurroq tahlil, ko‘proq vaqt va tokenlar. |