> ## Documentation Index
> Fetch the complete documentation index at: https://docs.geekai.co/llms.txt
> Use this file to discover all available pages before exploring further.

# CogView-4

CogView-4 is Zhipu’s first open-source text-to-image model that can render Chinese characters. It improves semantic understanding, image quality, and text rendering in both Chinese and English. It accepts Chinese and English inputs of any length and generates images at any resolution within the supported range.

### Model parameters

* Model ID: `cogview-4`
* Pricing: Check the [Model Hub](https://geekai.co/models?platform=bigmodel\&type=image) for current prices.
* Endpoint: `https://geekai.co/api/v1/images/generations`
* Parameters: See the [Image API reference](https://docs.geekai.co/en/api/image/generations.md).
* Authentication: [Get an API key](https://docs.geekai.co/en/docs/quick_start.md).

> [!NOTE]
>
> The following Image API parameters are not supported:
>
> * `image`
> * `strength`
> * `aspect_ratio`
> * `style_preset`
> * `response_format`
> * `output_format`
> * `mask`
> * `background`
>
> See also: [Official CogView-4 API documentation](https://docs.bigmodel.cn/cn/guide/models/image-generation/cogview-4).

For CogView-4, use `size` to set the output dimensions:

Recommended values: 1024x1024 (default), 768x1344, 864x1152, 1344x768, 1152x864, 1440x720, and 720x1440. Custom dimensions must each be between 512 and 2048 px and divisible by 16, with no more than 2^21 pixels in total.

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model": "cogview-4",
    "prompt": "Draw a little rabbit",
    "size": "1024x1024",
    "quality": "hd",
    "watermark": false
}'
```

The response is a JSON object containing the URL of the generated image:

```json theme={null}
{
    "model": "cogview-4",
    "created": 1768283267,
    "task_id": "df16c905-ca9c-46e7-8048-b6cbaa109ef5",
    "task_status": "succeed",
    "data": [
        {
            "url": "https://static.geekai.co/image/2026/01/13/1ccfa836c78bed1025b7ef52431866f7.jpeg"
        }
    ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.