Z.ai: GLM-Image

zai/glm-image

Z.ai GLM-Image API pricing

在Oxyy上,GLM-Image花费$0.006每张图片。 这是应用当前 60% 折扣后的按量付费价格(Launch Promo; standard price $0.015). 它根据文本 prompt 生成图片。 A cheaper Z.ai option is CogView-4 at $0.004 per image; 查看所有模型与费率的 GLM API 定价.

Text-to-image generation model, described by Z.ai as achieving open-source state of the art in complex scenarios.
模态文本图片
价格$0.006 每张图片All GLM API 定价

供应商

此模型的运行位置以及每个路由的费用。请求会自动发送到健康的提供商;如果某个提供商出错,网关会自动重试提供相同模型的另一个提供商。

提供方价格单位
Z.ai$0.006每张图片

定价

What this model costs on Oxyy, pay as you go. "Charged" is the rate a request is billed at; the standard price is shown beside it for reference.

价格
$0.006
每张图片 · standard price $0.015
当前折扣
60%
所有费率优惠
费率标准价格已扣费单位
每张图片$0.015$0.006每张图片

折扣。 收费费率已包含所有费率的当前 "Launch Promo" 60% 折扣。

规格

Model ID
glm-image
开发者
Z.ai
类型
图片生成
输入
文本
输出
图片
系列
GLM-Image
端点
/v1/images/generations

最适合

图片生成文生图Open weights

快速入门

调用 glm-image 通过 POST 请求发送至 /v1/images/generations 开启 https://api.oxyy.ai,使用来自的 Oxyy API key OXYY_API_KEY 环境变量。 同一密钥适用于目录中的所有模型。

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.oxyy.ai/v1",
    api_key=os.environ["OXYY_API_KEY"],
)

response = client.images.generate(
    model="glm-image",
    prompt="A lighthouse on a cliff at sunset, watercolor",
    n=1,
    size="1024x1024",
)
print(response.data[0].url)

可用性

过去一段时间内成功完成的该模型请求占比 30 天。 调用方取消的请求以及仍在处理中的请求不计入统计。 当上游供应商出错时,网关会自动重试提供同一模型的其他供应商,因此单个供应商的故障不一定会在此处显示。

请求数 (30 天)
16
成功率基于 100 个已完成的请求
有流量的天数
8
在过去的 30 天内

常见问题

什么是 GLM-Image?
Text-to-image generation model, described by Z.ai as achieving open-source state of the art in complex scenarios.
GLM-Image 的价格是多少?
在Oxyy上,GLM-Image花费$0.006每张图片。 这是应用当前 60% 折扣后的按量付费价格(Launch Promo; standard price $0.015). 按请求付费,无需订阅。
我可以向 GLM-Image 发送什么?
GLM-Image接收一条文本prompt并返回images。
GLM-Image 使用哪个 API 终端节点?
向 https://api.oxyy.ai/v1/images/generations 发送带有 "model": "glm-image" 的 POST 请求,并使用你的 Oxyy API key 进行身份验证。 It is also served on /v1/images/edits, /v1/images/variations, /v1/chat/completions and /v1/responses (Responses API).
Z.ai 还有哪些其他模型?
Z.ai 还通过 Oxyy 提供 CogView-4, CogVideoX-3, GLM-4.7-Flash and GLM-5。

替代方案: GLM-Image

其他供应商提供的同类模型,按价格从低到高排序。在 Oxyy 上按需付费,使用相同的 API Key。

探索更多模型

更多来自以下机构的模型 Z.ai