Skip to content

CogView 4

z-ai/cogview-4-250304

Z.ai's first open-source text-to-image model (6B, Apache 2.0, March 2025), notable for drawing Chinese characters in images and taking long Chinese or English prompts; outputs 512 to 2048 px. GLM-Image has since replaced it as Z.ai's main image model.

API
curl "$AUDIOLAB_API_URL/v1/images/generations" \
  -H "Authorization: Bearer $AUDIOLAB_API_KEY" \
  -H "Idempotency-Key: $AUDIOLAB_REQUEST_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "z-ai/cogview-4-250304",
  "prompt": "A mountain lake at sunrise."
}'
Input Price
$0.0085 / image
Output Price
—
Input
Text
Output
Image

Capabilities

Explore what CogView 4 supports, then use the API section for a request tailored to this model.

Model Information

Provider
Z.AI
Product
Image Generation
Release Date
Mar 4, 2025
Data Policy
Not specified
Region
Singapore
Input
Text
Output
Image
Provider Documentation

Playground

Try CogView 4 by Z.AI. Requests use the selected workspace’s credits and API pricing.

CogView 4Credits —
CogView 4
This model uses a dedicated input format. Explore its API example or open the supported playground.

Providers

Compare available endpoints, pricing, and context limits for CogView 4.

ProviderContextOutputInput PriceOutput PriceEndpoint
Z.AINot specifiedImage$0.0085 / image—
cogview-4-250304

Prices are catalog rates. Your workspace’s estimate and endpoint pricing determine the final charge.

Input and Output Limits

Formats and limits AudioLab enforces on each request.

LimitValue
Max input bytes1024
Max images1

Provider Notes

One 1024×1024 image at the published per-image tariff, returned as base64 after validation.

Status

Current catalog availability. Your workspace’s access is checked separately before a request runs.

Getting Started

Use your workspace API key and the exact model identifier below. Set the API URL to the endpoint shown in your workspace and keep credentials on your server.

API
curl "$AUDIOLAB_API_URL/v1/images/generations" \
  -H "Authorization: Bearer $AUDIOLAB_API_KEY" \
  -H "Idempotency-Key: $AUDIOLAB_REQUEST_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "z-ai/cogview-4-250304",
  "prompt": "A mountain lake at sunrise."
}'
Read the Endpoint Reference

Request Parameters

Available parameters depend on the provider and request format. The endpoint reference explains accepted values and required fields.

ParameterDetails
modelz-ai/cogview-4-250304 — Required model identifier.
promptView Accepted Values

Input and Output Limits

Formats and limits AudioLab enforces on each request.

LimitValue
Max input bytes1024
Max images1

Similar Models

Explore more image generation and compare their capabilities.

ModelContextInput PriceOutput Price
GLM ImageZ.AINot specified$0.0128 / image—
Gemini Nano Banana 2.1Google GeminiNot specified$1.275 / 1M tokens$25.50 / 1M tokens
GPT Image 2.5 FlareOpenAINot specified$4.25 / 1M tokens$25.50 / 1M tokens
GPT Image 2.5 Flare (2026-09-08)OpenAINot specified$4.25 / 1M tokens$25.50 / 1M tokens
GPT Image 2.5 SunburstOpenAINot specified$4.25 / 1M tokens$25.50 / 1M tokens
GPT Image 2.5 Sunburst (2026-09-08)OpenAINot specified$4.25 / 1M tokens$25.50 / 1M tokens
View All Image Generation