YepAPI
AI Models

GLM 5.3 Prime

GLM 5.3 Prime is the high-speed variant of Z.ai's GLM 5.3, inheriting its full capabilities while delivering 1.5 to 2 times the output throughput through inference acceleration. Z.ai GLM 5.3 High-Speed Flagship, with a 1M token context window.

POST/v1/ai/chat
$0.01/call

Overview

GLM 5.3 Prime is the high-speed variant of Z.ai's GLM 5.3, inheriting its full capabilities while delivering 1.5 to 2 times the output throughput through inference acceleration. Z.ai GLM 5.3 High-Speed Flagship, with a 1M token context window.

PropertyValue
Model IDz-ai/glm-5.3-prime
Context Window1,000,000 tokens
Max Output131,072 tokens
Input Price$4.14 / 1M tokens
Output Price$13.00 / 1M tokens

Usage

const res = await fetch('https://api.yepapi.com/v1/ai/chat', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    model: 'z-ai/glm-5.3-prime',
    messages: [{ role: 'user', content: 'Refactor this 400-line function into smaller units without changing behaviour, and list the tests to add.' }],
  }),
});
const { data } = await res.json();
console.log(data.message.content);
curl -X POST https://api.yepapi.com/v1/ai/chat \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "z-ai/glm-5.3-prime", "messages": [{"role": "user", "content": "Refactor this 400-line function into smaller units without changing behaviour, and list the tests to add."}]}'

Request Body

ParameterTypeRequiredDescriptionDefault
modelstringYesModel ID (e.g. z-ai/glm-5.3-prime)—
messagesMessage[]YesArray of { role, content } objects—
maxTokensnumberNoMaximum tokens in the responseModel default
temperaturenumberNoSampling temperature (0.0–2.0)1.0
topPnumberNoNucleus sampling threshold1.0
frequencyPenaltynumberNoPenalize repeated tokens0
presencePenaltynumberNoPenalize tokens already present0
streambooleanNoEnable SSE streamingfalse
Info

All AI models use the /v1/ai/chat endpoint. Specify the model with the model field.

Response

{
  "ok": true,
  "data": {
    "model": "z-ai/glm-5.3-prime",
    "message": {
      "role": "assistant",
      "content": "Extract the parsing, validation and persistence phases into three functions with explicit inputs and outputs, keep the original as a thin orchestrator, and add golden tests that run the old and new paths on the same fixtures and compare results."
    },
    "usage": {
      "promptTokens": 16,
      "completionTokens": 245,
      "totalTokens": 261
    }
  }
}

Streaming

Set "stream": true to receive Server-Sent Events. Each chunk contains a delta object:

data: {"delta":{"content":"Use"},"model":"z-ai/glm-5.3-prime","index":0}
data: [DONE]
Under the Hood

We handle auth, billing, and response normalization — you just send messages.

On this page