> ## 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.

# Jimeng Image Generation 4.0

Jimeng 4.0 combines Jimeng’s text-to-image, image editing, and multi-image composition capabilities in one framework. It accepts up to 10 images for combined edits and reasons about the prompt to choose the aspect ratio, dimensions, and output count, generating up to 15 related images in one request. It improves Chinese text accuracy and content diversity and supports 4K output for professional image creation and editing.

* Model ID: `jimeng_t2i_v40`
* Pricing: Check the [Model Hub](https://geekai.co/models?platform=jimeng\&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:
>
> * `negative_prompt`
> * `aspect_ratio`
> * `quality`
> * `style_preset`
> * `output_format`
> * `mask`
> * `background`
> * `response_format`
> * `watermark`
>
> See also: [Official Jimeng Image Generation 4.0 API documentation](https://www.volcengine.com/docs/85621/1817045).

For Jimeng Image Generation 4.0, use `size` to set the output width and height:

Recommended aspect ratios:

* 1K：

| Aspect ratio | Pixel dimensions |
| - | - |
| 1:1 | 1024x1024 |

* 2K：

| Aspect ratio | Pixel dimensions |
| - | - |
| 1:1 | 2048x2048 |
| 4:3 | 2304x1728 |
| 16:9 | 2560x1440 |
| 3:2 | 2496x1664 |
| 21:9 | 3024x1296 |

* 4k:

| Aspect ratio | Pixel dimensions |
| - | - |
| 1:1 | 4096x4096 |
| 4:3 | 4694x3520 |
| 3:2 | 4992x3328 |
| 16:9 | 5404x3040 |
| 21:9 | 6198x2656 |

The default `size` is `2048x2048`. The allowed range for width × height in pixels is `[1024x1024, 4096x4096]`.

Use `strength` instead of the official `scale` to control the influence of the text description. The range is `[0, 1]` and the default is `0.5`. Higher values give the text more influence and the input image less.

### Text-to-image generation

```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": "jimeng_t2i_v40",
    "prompt": "Draw a cute kitten",
    "size": "2048x2048"
}'
```

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

```json theme={null}
{
    "model": "jimeng_t2i_v40",
    "task_id": "e1df0ec2-9dca-45c4-961c-af52b1436281",
    "task_status": "succeed",
    "data": [
        {
            "url": "https://static.geekai.co/image/2026/01/06/2d3ec22efdb778b7ac5d95932526ce34.png"
        }
    ]
}
```

### Image-to-image generation

**Single image**

```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": "jimeng_t2i_v40",
    "prompt": "Using this kitten photo as a reference, generate an image of the kitten playing with a ball of yarn",
    "image": "https://static.geekai.co/image/2025/12/29/398b72b457492fbe36c9ac6efc69121b.jpeg",
    "size": "2304x1728"
}'
```

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

```json theme={null}
{
    "model": "jimeng_t2i_v40",
    "task_id": "28022068-1df8-4ad2-a689-a77fa1abd094",
    "task_status": "succeed",
    "data": [
        {
            "url": "https://static.geekai.co/image/2025/12/31/1c5e8d1a01e56d7aaa269dd2c3314da1.png"
        }
    ]
}
```

**Multiple images**

```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": "jimeng_t2i_v40",
    "prompt": "Replace the clothing in image 1 with the clothing from image 2",
    "image": [
        "https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_imagesToimage_1.png", 
        "https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_5_imagesToimage_2.png"
    ],
    "size": "2304x1728",
    "strength": 0.5
}'
```

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

```json theme={null}
{
    "model": "jimeng_t2i_v40",
    "task_id": "e0a62f2d-2a9c-4722-8924-99ea46aa9bed",
    "task_status": "succeed",
    "data": [
        {
            "url": "https://static.geekai.co/image/2025/12/31/b51d6423077f157f7685d13a5e86310e.png"
        }
    ]
}
```

By default, Jimeng 4.0 determines how many images to generate from the prompt:

```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": "jimeng_t2i_v40",
    "prompt": "Replace the clothing in image 1 with the clothing from image 2. Generate two images.",
    "image": [
        "https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_imagesToimage_1.png", 
        "https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_5_imagesToimage_2.png"
    ],
    "size": "2304x1728",
    "strength": 0.5,
    "extra_body": {
        "force_single": false,
        "min_ratio": 1,
        "max_ratio": 3
    }
}'
```

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

```json theme={null}
{
    "model": "jimeng_t2i_v40",
    "task_id": "1a8995b4-089d-46bf-9364-917ba8dda1b0",
    "task_status": "succeed",
    "data": [
        {
            "url": "https://static.geekai.co/image/2025/12/31/14b0a934351648b3b0f0306edc6d5b95.png"
        },
        {
            "url": "https://static.geekai.co/image/2025/12/31/9b8aef287a57aa473d894597f9e73eeb.png"
        }
    ]
}
```


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