# Use GLM-5.3-FlashX and GLM-5.3 through AI Gateway

> Try the latest GLM additions with your ngrok credits, without creating separate provider accounts or managing their API keys.

- Date: 2026-09-24
- Shipped by: Nijiko Yonskai
- Products: AI Gateway
- URL: https://ngrok.com/changelog/ai-gateway-glm-models

AI Gateway now supports GLM-5.3-FlashX through Z.ai and TokenHub, plus GLM-5.3 through Mistral. Try them in the playground, then connect your application through the SDK you already use.

With ngrok-managed inference, you don't need a separate account or API key for each provider. Use your ngrok access key and credits to send requests, with authentication and billing handled by ngrok.

GLM-5.3-FlashX is the high-speed serving variant of GLM-5.3-Flash. It's a separate model, so select the FlashX entry to try it. Check the provider's model details for pricing and supported request formats.

![AI Gateway model catalog in dark mode, filtered to GLM-5.3, showing GLM-5.3, GLM-5.3-Flash, and GLM-5.3-FlashX with provider options and token prices.](https://ngrok.com/blog-assets/images/2026-09-24-ai-gateway-glm-models/glm-models-dark.png)

## Get started

[Create an ngrok account or sign in](https://app.ngrok.ai/). Create an [**access key**](https://app.ngrok.ai/keys) that allows your chosen provider and model, and confirm your account has credits.

Optionally, try GLM-5.3-FlashX from Z.ai or TokenHub, or GLM-5.3 from Mistral in the [playground](https://app.ngrok.ai/playground).

Follow the [**setup guide**](https://app.ngrok.ai/getting-started) and select **OpenAI** and **TypeScript**.

Install the OpenAI SDK and TypeScript runner:

```bash
npm install openai && npm install --save-dev tsx
```

Save your ngrok access key in `.env.local`. Keep this file out of version control:

```dotenv
AI_GATEWAY_API_KEY=your_access_key_here
```

Use an ES module project (`"type": "module"` in `package.json`) for top-level `await`. Save this example as `index.ts`:

```typescript
import OpenAI from "openai";

const client = new OpenAI({
	baseURL: "https://gateway.ngrok.ai/v1",
	apiKey: process.env.AI_GATEWAY_API_KEY,
});

const response = await client.chat.completions.create({
	model: "z-ai/glm-5.3-flashx",
	messages: [{ role: "user", content: "Explain HTTP retries in two sentences." }],
});

console.log(response.choices[0]?.message.content);
```

Run the example from your project directory to print the response:

```bash
node --env-file=.env.local --import tsx index.ts
```

To try GLM-5.3 with the same client, change `model` to `"z-ai/glm-5.3"`.

Open [**Logs**](https://app.ngrok.ai/activity), find the request you just sent, and inspect its model, provider, status, token usage, and cost.
