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

# Kling Image v1

### Model parameters

* Model IDs: `kling-image-v1` and `kling-image-v1-5`
* Pricing: Check the [model marketplace](https://geekai.co/models?platform=kling\&type=image) for current prices.
* Endpoint: `https://geekai.co/api/v1/images/generations`
* Parameters: [Image generation API](https://docs.geekai.co/en/api/image/generations.md)
* Authentication: [Get an API key](https://docs.geekai.co/en/docs/quick_start.md)

> [!NOTE]
>
> These models do not support the following common image generation parameters:
>
> * `size`
> * `seed`
> * `quality`
> * `style_preset`
> * `response_format`
> * `output_format`
> * `mask`
> * `watermark`
> * `background`
>
> See also the [official Kling Image v1 API reference](https://app.klingai.com/cn/dev/document-api/apiReference/model/imageGeneration).

`kling-image-v1` supports these `aspect_ratio` values: `1:1`, `16:9`, `4:3`, `3:2`, `2:3`, `3:4`, and `9:16`.

`kling-image-v1-5` supports `1:1`, `16:9`, `4:3`, `3:2`, `2:3`, `3:4`, `9:16`, and `21:9`.

To supply a Base64-encoded reference image, pass the encoded string directly in `image`. Do not include a data URL prefix such as `data:image/png;base64,`.
Use `strength` in place of Kling's `image_fidelity`. It ranges from 0 to 1; higher values give the reference image more influence.

### Text to image

Generate images 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":"kling-image-v1",
    "prompt": "Draw a cute kitten.",
    "negative_prompt": "low quality",
    "aspect_ratio": "16:9",
    "n": 2
}'
```

### Image to 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":"kling-image-v1",
    "prompt":"Restore this damaged photograph.",
    "image":"https://static.geekai.co/storage/2025/04/02/broken-picture.jpg",
    "negative_prompt": "low quality",
    "aspect_ratio": "16:9"
}'
```

The JSON response contains the generated image URL:

```json theme={null}
{
    "model": "kling-image-v1",
    "created": 1768455363,
    "task_id": "a6c11baf-2e26-4710-b20c-f8f4e6fae319",
    "task_status": "succeed",
    "data": [
        {
            "url": "https://static.geekai.co/image/2026/01/15/8a6b49a664bb8b7cc97dd84d9de53aea.png"
        }
    ]
}
```


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