在线试用 CogView-4 生成图片,再接入 API
CogView-4 在 Crazyrouter 上通过 OpenAI 兼容的 images 接口提供。按张付费、无订阅,与文本模型共用一把 Key。
把模型 ID、实时价格、Base URL 和调用示例一次粘贴进你的 coding agent。
CogView-4 是什么?
CogView-4 是 Zhipu AI 的 CogView 系列图片模型,支持文生图与图片编辑。在 Crazyrouter 上它与对话、视频、音频模型共用 Key 和余额,不用再开一家账号。
请求与响应结构与 OpenAI Images API 一致,现有客户端代码可直接用。
只按成功生成的图片数量、以本页价格扣费。
上游模型支持时可传参考图做编辑与风格迁移。
图片、对话、视频、音乐共用一个余额。
CogView-4 API 快速开始
向 https://api.crazyrouter.com/v1/images/generations 发 POST,model 填 cogview-4。响应遵循 OpenAI images 格式(URL 或 base64)。
curl https://api.crazyrouter.com/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $CRAZYROUTER_API_KEY" \
-d '{
"model": "cogview-4",
"prompt": "Product photo of a matte ceramic coffee mug on a light oak desk, soft morning window light, shallow depth of field, neutral background, commercial photography",
"n": 1,
"size": "1536x1024"
}'适用场景
开发工具兼容
OpenAI SDK
client.images.generate(model="cogview-4", prompt=...),base URL 指向 Crazyrouter。
n8n / Dify / Make
用 HTTP 节点或 OpenAI 兼容连接器接 Crazyrouter。
自建后端
纯 HTTPS 调用,不依赖 SDK。
Crazyrouter 演练场
写代码前先在控制台试提示词。
CogView-4 常见问题
调用哪个接口?
https://api.crazyrouter.com/v1/images/generations,model 填 cogview-4。
怎么计费?
按成功生成的图片张数、按本页价格扣费,失败不计费。
支持哪些尺寸和格式?
以上游模型为准,按厂商文档传 size 与 response_format。
能编辑已有图片吗?
上游支持编辑的模型可通过 edits 接口或 image 字段传参考图。
有限流吗?
按账户等级限流,需要更高吞吐可联系支持。
相关指南与对比
GuideGLM-5.3-Prime 是什么?模型归属、API 实测与计费核对
用一次真实返回说明 GLM-5.3-Prime 如何调用,并区分目录规格、实测能力与尚未核实的官方价格。
ComparisonGLM-5.3 对比 GLM-5.2:提高难度后的真实 API 实测
六道高难度同题 API 实测:GLM-5.3 首次交付 4/6,GLM-5.2 为 2/6,但 GLM-5.2 赢得可执行代码隐藏测试。
ComparisonGLM-5.2 vs GPT-5.5 实测:难题下真正暴露的是可见输出稳定性
基于 Crazyrouter OpenAI-compatible API 的真实模型对比测试,使用偏置硬币等待 HTH、斜面摩擦弹簧压缩、Lorenz Canvas 动画三道更难题,比较 glm-5.2 与 gpt-5.5 的 max_tokens、reasoning_tokens、finish_reason、可见输出和浏览器验证结果。
最新节目
EP196 · 2026年10月29日 · 6:53
AI API Security Posture — Turn Controls Into Continuous Evidence
A practical guide to AI API security posture: inventory exposure, verify controls continuously, protect keys and data, constrain tools, and turn security assumptions into evidence that operators can act on.
EP195 · 2026年10月28日 · 7:21
AI API Policy Drift — Detect When Production Rules Stop Matching Intent
A practical guide to policy drift in AI APIs: version routing and safety rules, detect stale enforcement, compare intended and observed behavior, and restore control before small gaps become incidents.
