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

# Hy-Image-3.5-preview

Tencent Hunyuan’s new image generation model improves both intent recognition and visual expression. Stronger text rendering and layout handle multiple languages, symbols, small type, and complex arrangements for text-heavy ads, infographics, and UI designs. More realistic lighting and materials support styles ranging from cinema and comics to commercial photography and illustration. Edits preserve key features of people and products across scene, appearance, and style changes. Precise local edits support professional work such as film post-production and product displays.

### Model parameters

* Model ID: `hy-image-v3.5-preview`
* Pricing: Check the [model details page](https://geekai.co/models/hy-image-v3.5-preview) 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://geekai.co/user/api_keys).

> [!NOTE]
>
> The following common Image API parameters are not supported:
>
> * `enhance_prompt`
> * `negative_prompt`
> * `strength`
> * `quality`
> * `aspect_ratio`
> * `style_preset`
> * `n`
> * `response_format`
> * `output_format`
> * `mask`
> * `background`
>
> See also: [Official Hy-Image-3.5-preview API documentation](https://cloud.tencent.com/document/product/1823/135745#619bf742-e297-460a-a0d1-cdb03db58491).

GeekAI follows the OpenAI Image API convention: use `prompt` and `image` instead of the official `messages` to supply the prompt and one or more reference images. Reference requirements:

* Pass an image URL or Base64-encoded data. Supported formats: PNG, JPEG, and JPG.
* URLs must be publicly accessible. For the mainland China version, use a URL accessible from mainland China; otherwise, use Base64.
* Each image must be no larger than 20 MB.
* Up to 20 reference images.

Use `size` to set the output dimensions and resolution. Limits for `size`:

* Width and height must both be positive integers between 256 and 8192 inclusive.
* Width × height must not exceed 16,777,216 pixels, supporting up to 4096×4096 (4K).

The official `generate_max_pixels` and `resize_max_pixels` parameters are not supported. Use `size` to control the output dimensions.

### Text-to-image generation

Generate an image from a text description:

```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":"hy-image-v3.5-preview",
    "prompt": "Draw a cute kitten",
    "size": "2048x2048"
}'
```

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

```json theme={null}
{
    "model": "hy-image-v3.5-preview",
    "created": 1792639376,
    "task_id": "427a5079-767d-404c-84b2-504fbf16c1d1",
    "task_status": "succeed",
    "data": [
        {
            "url": "https://static.geekai.co/image/2026/10/22/bf1ad02ef6b9f1c9b6a391f0e4aef258.png"
        }
    ],
    "usage": {
        "total_tokens": 15000
    }
}
```

### Image-to-image generation

**Single image**

Pass a reference image in `image` for image-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":"hy-image-v3.5-preview",
    "prompt": "Change the color of the girl’s clothes to green",
    "image": "https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_imagesToimage_1.png"
}'
```

**Multiple images**

To supply multiple reference images, pass an array in `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":"hy-image-v3.5-preview",
    "prompt": "Replace the clothing of the girl in image 2 with the clothing of the girl in image 1",
    "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"
    ]
}'
```

> [!NOTE]
>
> For long-running requests, set `async` to `true` to enable asynchronous processing. The endpoint returns a `task_id`. Poll `https://geekai.co/api/v1/images/{task_id}` for the latest status and retrieve the final image URL when the task completes. See [Asynchronous image generation](https://docs.geekai.co/en/docs/image/txt2img.md#asynchronous-image-generation).


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