GLM-5 API, OpenAI-Compatible: Pay by Card or USDT (2026)

Call GLM-5.2, GLM-5.1 and GLM-5.3-Flash through an OpenAI-compatible endpoint, pay by card or USDT, and set it up in Cursor, Cline or the OpenAI SDK.

CloudGPU··Updated October 24, 2026·3 min read
GLM-5 API, OpenAI-Compatible: Pay by Card or USDT (2026)

GLM is a strong open model family for coding and tool use. This post shows how to call GLM-5.2, GLM-5.1 and GLM-5.3-Flash through the OpenAI-compatible endpoint on cloudgpu.app, paid from a prepaid balance you top up by card or USDT: what it costs, where requests go, and setup.

What it costs

The per-token rate for every model is on the API page. Rates change, so this post does not repeat them. You pay per token from a prepaid balance, with no subscription. The balance does not expire.

Where your requests go

GLM on cloudgpu.app is served from the published GLM weights. There is no automatic failover, so if GLM’s serving infrastructure is down, GLM is down here too; the same holds for every model on the gateway. Prompt and completion text is not stored; token counts, the model name and error codes are kept for billing.

Set it up

  1. Sign up at cloudgpu.app with an email address or a Google account.
  2. Top up on the billing page: USDT on the TRC-20 network, or the card checkout, which also offers Alipay, Google Pay and Apple Pay.
  3. In the API console, create a key. It starts with cgw-sk- and is shown only once, so copy it when it appears.
  4. Point any OpenAI client at the gateway:
curl https://cloudgpu.app/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer cgw-sk-..." \
  -d '{
    "model": "glm-5.2",
    "messages": [{"role": "user", "content": "Write a unit test for this function."}]
  }'

from openai import OpenAI

client = OpenAI(
    base_url="https://cloudgpu.app/v1",
    api_key="cgw-sk-...",
)

resp = client.chat.completions.create(
    model="glm-5.2",
    messages=[{"role": "user", "content": "Summarise this diff."}],
)
print(resp.choices[0].message.content)

In Cursor, Cline or Continue, set the base URL to https://cloudgpu.app/v1, the API key to your cgw-sk- key, and the model to glm-5.2. Nothing else changes.

Which GLM to use

  • glm-5.2 for coding agents and anything where quality matters. It is the one to start with.
  • glm-5.1 if you have prompts tuned against it and do not want to re-test.
  • glm-5.3-flash for high-volume, low-stakes work such as classification and extraction.

The same balance also pays for DeepSeek, Kimi and MiniMax on the gateway, and for GPUs by the minute if you would rather run open weights yourself. See the full model list, or the Kimi K2 and K3 API guide.

Frequently asked questions

Do I need a credit card?

No. Top up with USDT on the TRC-20 network, or use the card checkout, which also offers Alipay, Google Pay and Apple Pay.

Does it work with the OpenAI SDK?

Yes. Set base_url to https://cloudgpu.app/v1 and use a model ID such as glm-5.2.

Where are the current rates?

On the API page. You pay per token from a prepaid balance, and rates can change.

Which GLM model should I start with?

glm-5.2 for coding agents and quality-sensitive work; glm-5.3-flash for high-volume, low-stakes calls such as classification and extraction.

Try cloudgpu.app — no credit card required

The billing period and minimum charge are shown before you confirm a rental. Review the quote for your selected configuration.