Z.ai: CogView-4
Z.ai CogView-4 API pricing
CogView-4 costs $0.004 per image on Oxyy. That is the pay-as-you-go price after the current 60% discount (Launch Promo; standard price $0.010). It generates images from text prompts. It is the lowest-priced Z.ai image model on Oxyy; for every model and rate, see GLM API pricing.
Providers
Where this model runs, and what each route costs. Requests are sent to a healthy provider automatically; if one errors, the gateway retries against another serving the same model.
| Provider | Price | Unit |
|---|---|---|
| Z.ai | $0.004 | per image |
Pricing
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.
| Rate | Standard price | Charged | Unit |
|---|---|---|---|
| Per image | $0.010 | $0.004 | per image |
Discount. Charged rates include the current "Launch Promo" discount of 60% on every rate.
Specifications
- Model ID
cogview-4- Developer
- Z.ai
- Type
- Image generation
- Input
- Text
- Output
- Images
- Series
- CogView
- Endpoint
/v1/images/generations
Best for
Quickstart
Call cogview-4 with a POST to /v1/images/generations on https://api.oxyy.ai, using your Oxyy API key from the OXYY_API_KEY environment variable. The same key works for every model in the catalog.
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="cogview-4",
prompt="A lighthouse on a cliff at sunset, watercolor",
n=1,
size="1024x1024",
)
print(response.data[0].url)Availability
The share of requests to this model that completed successfully over the last 30 days. Requests the caller cancelled, and requests still in flight, are not counted. When an upstream provider errors, the gateway retries against another provider serving the same model, so a single provider incident does not necessarily show up here.
Frequently asked questions
What is CogView-4?
How much does CogView-4 cost?
What can I send to CogView-4?
Which API endpoint does CogView-4 use?
What other models does Z.ai have?
Alternatives to CogView-4
Models of the same kind from other vendors, closest in price first. Prices are pay-as-you-go on Oxyy, through the same API key.

