Appearance
Site language
Price currency
GLM via the Evrona gateway

GLM API: GLM-5 models, a key and sample code

Evrona provides access to GLM models, released by Z.ai, through the Evrona gateway. The gateway accepts OpenAI API requests, so GLM works from your existing OpenAI SDK code, and one Evrona key covers GLM and every other model in the catalog.

You don't need to register on the Z.ai platform: create an Evrona account, top up in rubles with a code and issue a key. Below are the GLM-5 versions currently enabled, including the lighter Flash, with prices, setup steps and a sample request.

You reach GLM models through the Evrona gateway. This is not an official GLM page: Evrona is an independent OpenAI-compatible gateway with its own key, balance and pricing.

GLM models on Evrona and their prices

These are the z-ai/ models from the Evrona catalog. Prices are per million input and output tokens; the Model ID under each name goes into the model field of your request.

Model and Model IDTypeInput, per 1M tokensOutput, per 1M tokens
GLM-5.3z-ai/glm-5.3Conversation$0.84$3.23
GLM-5.3 Flashz-ai/glm-5.3-flashConversation$0.06$0.25
GLM-5.2z-ai/glm-5.2Conversation$0.25$0.97
GLM-5.1z-ai/glm-5.1Conversation$0.27$0.87

Accounting inside the service is in USD; EUR prices are recalculated at the current rate and may change.

How to get a GLM API key

  1. Sign up

    Create an Evrona account with your email — it takes about a minute.

  2. Top up with a code

    Buy a top-up code in the store and redeem it in your dashboard. The amount lands on your prepaid balance right away.

  3. Create a key

    Create an ev-… API key in your dashboard. It works with GLM models and the rest of the catalog straight away, and you can put a spending cap on it.

GLM API request example

The gateway speaks the OpenAI API: set the base URL to https://evrona.ru/v1, use your Evrona key and pick a Model ID from the table. The example uses z-ai/glm-5.3.

curl

curl
curl https://evrona.ru/v1/chat/completions \
  -H "Authorization: Bearer ev-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-5.3",
    "messages": [
      {
        "role": "user",
        "content": "Hi! Tell me about yourself in two sentences."
      }
    ]
  }'

OpenAI SDK: Python and JavaScript

from openai import OpenAI

client = OpenAI(
    base_url="https://evrona.ru/v1",
    api_key="ev-YOUR_KEY",
)

completion = client.chat.completions.create(
    model="z-ai/glm-5.3",
    messages=[
        {
            "role": "user",
            "content": "Hi! Tell me about yourself in two sentences."
        }
    ],
)
print(completion.choices[0].message.content)

GLM API pricing and payment

GLM-5 versions differ in price: the lighter Flash costs less and suits high-volume calls, while the full versions take on harder tasks. Compare the rates in the table before choosing. Each request is billed on its actual tokens, with no monthly fee.

  • Prepaid balance: top up first, then send requests — no subscription and no monthly fee.
  • You top up in rubles with a top-up code that you redeem in your dashboard.
  • You pay only for actual usage at the rates in the table, and every request shows up in your history.

To see what your workload would cost, try the cost calculator.

GLM API FAQ

How do I get a GLM API key?

Sign up for Evrona, redeem a top-up code in the dashboard and create a key. The ev-… key works with z-ai/glm-… Model IDs and every other catalog model.

Is this the official Z.ai API?

No. Evrona is an independent gateway: GLM requests pass through Evrona, and the key, balance and pricing are ours. Z.ai is named only as the developer of the GLM models.

Which GLM models are available?

The GLM-5 versions in the table on this page, including the lighter GLM-5.3 Flash. The set follows the Evrona catalog as it changes.

How much does the GLM API cost?

Prices for every GLM version are in the table and the catalog, split into input and output per million tokens. There is no subscription — only actual usage is charged; the cost calculator helps with budgeting.

How do I pay for GLM?

Top up your prepaid Evrona balance with a code bought for rubles and redeem it in the dashboard. The funds are available right away for GLM and any other model.

How do I switch to GLM from another model?

If your code already runs through Evrona, change only the Model ID to a GLM version from the table. If you're on another OpenAI-compatible API, also point the base URL at Evrona's /v1 and use your Evrona key.

Start using GLM through Evrona

Sign up, top up with a code and send your first GLM request in a few minutes. The same key opens every other model in the catalog.