PixMind Docs
API ReferenceLanguage ModelsGlm 5 3

GLM-5.3 Chat Completions

Call GLM-5.3 through PixMind for repository-scale engineering, long-horizon agents, reasoning, tools, and streamed output.

GLM-5.3 is a large reasoning route for complex software engineering and long-running agent workflows. Use the OpenAI-compatible PixMind endpoint when a task needs repository context, multi-step tools, and consistent decisions across an extended run.

GLM-5.3 through PixMind's OpenAI-compatible chat completions endpoint.

Provider

Z.ai

Model ID

glm-5.3

Endpoint

POST /api-platform/v1/chat/completions

Authentication

Base URL: https://aihub-admin.aimix.pro. Send Authorization: Bearer <PIXMIND_API_KEY> on both creation and polling requests, and Content-Type: application/json when submitting JSON. Keep your key in a server environment variable.

Model notes

  • Keep the API key on your server and use streaming when the client needs incremental output.

Request parameters

ParameterTypeRequiredDescription
modelstringYes

Stable PixMind model ID. Use `glm-5.3`.

Allowed values: glm-5.3

messagesarrayYes

OpenAI-compatible chat messages. Gemini user content may be a string or an array of text, image_url, and video_url blocks.

max_tokensintegerNo

Maximum completion tokens; send a positive integer. The default and upper limit depend on the selected model.

Playground default: 4096

temperaturenumberNo

Sampling temperature, a number from 0 to 2 where supported.

Default: 1

streambooleanNo

Return tokens incrementally when enabled.

Allowed values: true, false

Default: false

Request example

cURL
curl --request POST 'https://aihub-admin.aimix.pro/api-platform/v1/chat/completions' \
  -H "Authorization: Bearer $PIXMIND_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "glm-5.3",
  "messages": [
    {
      "role": "user",
      "content": "Draft three launch concepts for this product."
    }
  ],
  "stream": false
}'
JavaScript
// Node.js 20+. Keep the API key on your server.
const apiKey = process.env.PIXMIND_API_KEY;
if (!apiKey) throw new Error("PIXMIND_API_KEY is required");

const response = await fetch("https://aihub-admin.aimix.pro/api-platform/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${apiKey}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
  "model": "glm-5.3",
  "messages": [
    {
      "role": "user",
      "content": "Draft three launch concepts for this product."
    }
  ],
  "stream": false
}),
  signal: AbortSignal.timeout(30_000)
});

const task = await response.json();
if (!response.ok) {
  throw new Error(task.message ?? task.error?.message ?? `HTTP ${response.status}`);
}
console.log(task);

Response example

Non-streaming chat completions return choices directly. With stream: true, consume the SSE stream instead.

200 OK
{
  "id": "chatcmpl_example",
  "object": "chat.completion",
  "model": "glm-5.3",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello!"
      },
      "finish_reason": "stop"
    }
  ]
}

On this page