基础 URL、请求方法和必需请求头均按当前模型的协议模板渲染。

GLM 4.6V
Multimodal model with strong image + text understanding.
价格
| 规格 | 价格 |
|---|---|
| 输入 | $0.3/ M tokens |
| 输出 | $0.9/ M tokens |
| 缓存读 | $0.055/ M tokens |
| 缓存写 | -- |
快速开始
可直接粘贴运行下方示例代码。Gate.AI API 与 OpenAI 兼容,多数 SDK 只需替换 base URL;切换模型时,只需修改模型 ID。
Get your API key
Sign in to the Gate.AI console and create a new key under "API Keys". Keep it safe and send it via the Authorization header on every request.
前往控制台创建密钥Make a request
Send a POST request to the Chat Completions endpoint with a model ID and an array of messages to get a reply.
curl --location "https://api.gate.ai/openai/v1/chat/completions" \
--header "Authorization: Bearer {API_KEY}" \
--header "Content-Type: application/json" \
--data '{
"model": "glm-4.6v",
"messages": [
{"role": "user", "content": "Hello"}
]
}'Handle the response \\\\\& streaming
By default a full JSON response is returned. Add "stream": true to the request body to receive incremental chunks over SSE.
curl --no-buffer --location "https://api.gate.ai/openai/v1/chat/completions" \
--header "Authorization: Bearer {API_KEY}" \
--header "Content-Type: application/json" \
--data '{
"model": "glm-4.6v",
"messages": [
{"role": "user", "content": "Hello"}
],
"stream": true
}'端点
相关模型
GLM 5.3 FlashFlash tier of GLM-5.3: native multimodal inputs, suited for efficient coding and long-horizon agents with stable long-context behavior in production.
GLM 5.3Flagship-tier model for complex software engineering and long-horizon agent tasks, with stable execution across multi-turn tool calls and large-scale codebase refactoring.
GLM 5.2GLM 5.2 is a large-scale reasoning model with a 1M-token context window, suited for long-horizon agents, repo-level coding, and multi-step automation.
GLM 5.1Offers significantly improved coding and long-horizon task capabilities, autonomously planning, executing, and refining a single task for over eight hours to deliver complete, engineering-grade results.
GLM 5 Turbo专为 OpenClaw 等基于代理的场景而设计。
GLM 5有竞争力的通用中文模型。
GLM 4.7 Flash超快中文处理,极其便宜。
GLM 4.7Balanced model with strong Chinese understanding.
GLM 4.6Text-only model in the GLM-4 family with improved coding benchmarks and tool calls during reasoning, suited for software development and agent workflows.