Source: https://ailoot.ai/models/en/cogview-4-250304/
Canonical: https://ailoot.ai/models/en/cogview-4-250304/
Language: en

# Zhipu: CogView 4 250304

[Markdown](https://ailoot.ai/models/en/cogview-4-250304/index.md) · [JSON](https://ailoot.ai/models/en/cogview-4-250304/facts.json)

## [Zhipu: CogView 4 250304](https://ailoot.ai/models/en/cogview-4-250304/)

CogView 4 250304 is the separately named CogView 4 selector cogview-4-250304 for text-to-image work. Use it when a workflow needs this exact model identity, with a written scene brief, CogView-specific dimensions, quality and watermark settings. It returns image URLs through a synchronous image-generation response.

- [**Ailoot Ultra · Images** `POST /v1/images/generations` `cogview-4-250304`](https://ailoot.ai/models/en/cogview-4-250304/#method-0)

About the model

This description covers the model’s capabilities. Available in Ailoot inputs, outputs and options are listed for the selected method below.

CogView 4 250304 is Zhipu's named cogview-4-250304 model in the CogView image-generation family. Use the complete selector when this is the edition you want to preserve in a creative workflow. Its Ailoot Ultra method is POST /v1/images/generations, with model and prompt as the required string fields. The input for this profile is a written image description.

Prepare the brief around a visible deliverable. An editorial illustration might describe a person waiting at a station, the weather, the relationship between the subject and background, and the desired colour treatment. For a product scene, name the product arrangement, viewpoint, surface and lighting. Explain which details matter most, then compare those details with the generated file. Keeping the brief and exact selector together makes later revisions easier to assess.

The CogView-specific dimension guidance includes square 1024x1024, portrait 768x1344 or 864x1152, landscape 1344x768 or 1152x864, and wide or tall 1440x720 or 720x1440. For custom dimensions, each side is between 512 and 2048 pixels, each is divisible by 16, and the total pixel count cannot exceed 2^21. Plan the subject placement for the chosen frame instead of treating a change of dimensions as a simple crop.

The documented quality values are standard and hd; the CogView default is standard. watermark\_enabled controls the watermark and defaults to true. The optional user\_id is a 6-to-128-character string for the end-user identifier. Preserve the selected quality and watermark settings with the result, especially when collecting several candidates for the same design task.

The image request completes synchronously with created and a data array whose items contain url. Save each actual returned image and retain the complete response. A group of returned URLs is the output set; selecting one preferred image for a layout should not discard the others from the generation record. Keep the original request and response information when a connection ends before the complete result is known, and check the existing result before making another creation request. Ailoot stores these images as owned media assets and returns signed Ailoot links. Find the asset records through GET /v1/media/assets?family=image, following every next\_cursor. Read GET /v1/media/assets/{asset\_id} with each actual asset\_id to obtain its content\_url; read that same asset again if its signed link expires.

**Ailoot Ultra · Images** `POST /v1/images/generations` `cogview-4-250304`

[`cogview-4-250304`](https://ailoot.ai/models/en/#m=cogview-4-250304&route=Ultra&caller=cogview-4-250304&fmt=images)

ZHIPU /`cogview-4-250304`

### Overview

CogView 4 250304 is the separately named CogView 4 selector cogview-4-250304 for text-to-image work. Use it when a workflow needs this exact model identity, with a written scene brief, CogView-specific dimensions, quality and watermark settings. It returns image URLs through a synchronous image-generation response.

Accepted inputs

Text

Results

Images

### Available in Ailoot · inputs & methods

**Ailoot Ultra · Images** `POST /v1/images/generations`

Input types

`text`

Output types

`image`

Output format

Image file

| Field | Type | Requirement | Values & limits | Default |
| --- | --- | --- | --- | --- |
| Field`model` | Type`string` | RequirementRequired | Values & limits cogview-4-250304 | Default— |
| Field`prompt` | Type`string` | RequirementRequired | Values & limits | Default— |
| Field`size` | Type`string` | RequirementOptional | Values & limits 1280x1280, 1568x1056, 1056x1568, 1472x1088, 1088x1472, 1728x960, 960x1728 | Default1280x1280 |
| Field`user_id` | Type`string` | RequirementOptional | Values & limits | Default— |
| Field`quality` | Type`string` | RequirementOptional | Values & limits hd, standard | Default— |
| Field`watermark_enabled` | Type`boolean` | RequirementOptional | Values & limits | Defaulttrue |
| Field`stream` | Type`boolean` | RequirementOptional | Values & limits false | Default— |

Method parameters and lifecycle

| Parameter | Contract |
| --- | --- |
| Parameter`content_type` | Contractapplication/json |
| Parameter`required` | Contractmodel, prompt |
| Parameter`optional` | Contractsize, user\_id, quality, watermark\_enabled, stream |
| Parameter`material_types` | Contracttext |
| Parameter`conditions` | ContractUse stream:false or omit stream. The complete buffered JSON result contains all generated images. |

Lifecycle: `synchronous_result_then_owned_library`

`GET /v1/media/assets`

`GET /v1/media/assets/{asset_id}`

### Pricing

##### How the final charge is calculated

The displayed rates estimate the cost before generation. The final charge is calculated from the cost recorded for the original generation. Measured output duration and forecast quantities are not the final billable quantity.

Tariff references do not add request options. Supported parameters are listed for the selected method.

Fast mode

Not specified When fast mode is selected

Flex mode

Not specified When flex mode is selected

Maximum reasoning effort

Not specified When maximum reasoning effort uses the default adjustment

#### Estimated rates for comparison

#### Prices by configuration

Match each charge to the conditions shown. Use one rate for each set of alternative configurations.

| Configuration | Rate schedule | Forecast quantity | Charge |
| --- | --- | --- | --- |
| ConfigurationBase token rates | Rate scheduleBase rate | Forecast quantity— | Charge Input · Input tokens · Estimate for comparison only **—** / 1K tokens Output · Output tokens · Estimate for comparison only **—** / 1K tokens Input · Cache read · Estimate for comparison only **—** / 1K tokens Input · Cache write · Estimate for comparison only **—** / 1K tokens Input · Cache write, 1 hour · Estimate for comparison only **—** / 1K tokens |
| ConfigurationEstimated generation cost | Rate schedule— | Forecast quantityone generation estimate | Charge Input · Estimated generation cost · Estimate for comparison only **$0.09** estimate before generation This estimate is not an additional charge or a fixed rate for the completed generation. |

Ailoot reserves an estimated amount before a request. After the result, it settles the final charge from measured usage. Streaming settlement uses the final usage record. [How reservation and settlement work →](https://ailoot.ai/docs/en/billing/reserve/)

### Example requests

#### Ailoot Ultra · Images

curl · create once and retain the complete result

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
export AILOOT_API_KEY
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p=json.loads('{"model": "cogview-4-250304", "prompt": "A calm studio product photograph with a plain background."}')

Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/images/generations \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
# Submit once. Retain the complete result, original identifiers and every response header.
```

### Receive and save results

#### Ailoot Ultra · Images

Download each returned image or save its Base64 contents

- `GET /v1/media/assets`
- `GET /v1/media/assets/{asset_id}`

##### Keep all completed results

Save every completed image; retrieve each returned URL or decode its Base64 contents.

Retain every returned image and field. Use owned content\_url values and actual asset\_id records; refresh the same asset when a link expires.

##### If the original response needs checking

Preserve the original response, headers and X-Client-Request-ID. An uncertain outcome does not authorize another creation.

### Aliases

#### Model aliases

**Ailoot Ultra** [`cogview-4-250304`](https://ailoot.ai/models/en/#m=cogview-4-250304&route=Ultra&caller=cogview-4-250304&fmt=images)

#### Method path aliases

Use the method paths shown above.

#### Related caller IDs

[`cogview-4-250304`](https://ailoot.ai/models/en/#m=cogview-4-250304&route=Ultra&caller=cogview-4-250304&fmt=images)

FAQ · Zhipu: CogView 4 250304

What inputs and results are available?

`POST /v1/images/generations` · `cogview-4-250304`: `text` → `image`

Which fields does the request use?

`POST /v1/images/generations` · `cogview-4-250304`: `model`, `prompt`, `size`, `user_id`, `quality`, `watermark_enabled`, `stream`

Connect Ailoot to Claude Code, OpenCode, Hermes or your own app.

## The company and its project portfolio

The company and its project portfolio: millions of customers; monthly sales in the billions.

## Buy tokens at a discount.

Subscription discounts for regular use. Promo codes offer up to 50% off token purchases.

Subscription

Choose a discounted plan for your regular requests.

Promo code: up to 50% off

Enter your code at checkout. The price updates to reflect the current promotion.

Spending in your history

The model, tokens and amount are recorded for each request.

[Choose a subscription](https://ailoot.ai/docs/en/billing/subscriptions/) · [View model prices](https://ailoot.ai/models/en/)

## Connect the API to a product you sell.

Use Ailoot in SaaS, apps and bots under its official service offer and licence agreement. Request a reseller licence for resale.

Commercial application

Add text, image, video and audio generation to paid features in your service.

Reseller licence

Send a description of your project and how you provide access. Request written terms for use and resale.

Documents on the website

The service offer, licence agreement and data processing policy are available before you connect.

[Request a reseller licence](mailto:support@ailoot.ai) · [Service offer and licence agreement](https://ailoot.ai/legal/offer?lang=en)

## Ailoot · The company and its project portfolio





Ailoot combines established operating experience, a large client base, stable service and ongoing KPI control.





The company and its project portfolio: millions of customers; monthly sales in the billions.





Ailoot brings that operating experience to API access for AI features in customer products, agents, applications and automations.
