API · Models
Text
GLM 4.5 Air
GLM-4.5 and GLM-4.5-Air are our latest flagship models, purpose-built as foundational models for agent-oriented applications. Both leverage a Mixture-of-Experts (MoE) architecture. GLM-4.5 has a total parameter count of 355B with 32B active parameters per forward pass, while GLM-4.5-Air adopts a more streamlined design with 106B total parameters and 12B active parameters.
ReasoningToolsCache
Context 128K·Max out 96K
Quickstart
import { streamText } from 'ai';
import { createOpenAICompatible } from '@ai-sdk/openai-compatible';
const blackbox = createOpenAICompatible({
name: 'blackbox',
apiKey: process.env.BLACKBOX_API_KEY!,
baseURL: 'https://api.blackbox.ai/v1',
});
const result = streamText({
model: blackbox('blackboxai/zai/glm-4.5-air'),
prompt: 'Why is the sky blue?',
});
for await (const chunk of result.textStream) {
process.stdout.write(chunk);
}Specs & pricing
- Input $/M
- 0.2
- Output $/M
- 1.10
- Context window
- 128K
- Max output
- 96K
- Supported parameters
- —
Related models
| Model | Type | Context | Input $/M |
|---|---|---|---|
| GLM 4.5 | Text | 128K | 0.6 |
| GLM 4.5V | Text | 66K | 0.6 |
| GLM 4.6 | Text | 200K | 0.6 |
| GLM-4.6V | Text | 128K | 0.3 |
| GLM-4.6V-Flash | Text | 128K | — |