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

> ## Agent Instructions
> The Venice API is OpenAI-compatible: use any OpenAI SDK with the base URL `https://api.venice.ai/api/v1` and a Venice API key, or pay per request from a USDC wallet through x402 with no account.
> Read model IDs from `GET /models` or `GET /models/traits` at runtime instead of hardcoding them from memory or from these pages. Models are added and retired often.
> Every model's price is in https://docs.venice.ai/pricing.md. Quote video and audio jobs with `POST /video/quote` or `POST /audio/quote` before you queue them.
> Search these docs from an MCP client at https://docs.venice.ai/mcp. The full agent guide is https://docs.venice.ai/agents.md.

# Kling Image 4.0 API

> Kling Image 4.0 API on Venice: image generation and image editing up to 4K, from $0.08 per image. Anonymized access without your identity.



## Kling Image 4.0 API

Kling Image 4.0 is an image generation and image editing model by Kling AI, available on the Venice API as `kling-v4-text-to-image`. The provider of this model may retain prompt data (though it is anonymized by Venice). For sensitive content, use a private model.

Text-to-image at 2K and 4K, in aspect ratios from 21:9 to 9:16.

### Kling Image 4.0 API pricing

| Model ID | Variant | Privacy | Price |
| - | - | - | - |
| `kling-v4-text-to-image` | Generate | Anonymized | \$0.08 / image |
| `kling-v4-image-edit` | Edit | Anonymized | \$0.08 / edit |

### Kling Image 4.0 specifications

| Spec | Value |
| - | - |
| Provider | Kling AI |
| Released | Nov 17, 2026 |
| Privacy | Anonymized |
| Status | Stable |
| Resolutions | 2K, 4K |
| Aspect ratios | 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9 |
| Prompt limit | 32,768 characters |

### How to use the Kling Image 4.0 API

Send requests to `POST https://api.venice.ai/api/v1/image/generate` with `"model": "kling-v4-text-to-image"` and your API key.

```bash theme={"system"}
curl https://api.venice.ai/api/v1/image/generate \
  -H "Authorization: Bearer $VENICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling-v4-text-to-image",
    "prompt": "A retro travel poster with the bold headline \"VENICE\" in large condensed serif type, sunset color palette",
    "resolution": "2K",
    "aspect_ratio": "1:1"
  }'
```

### Related models

* [GPT Image 2.6 Flare API](https://docs.venice.ai/models/gpt-image-2-6-flare.md): \$0.09 / image
* [GPT Image 2.6 Sunburst API](https://docs.venice.ai/models/gpt-image-2-6-sunburst.md): \$0.09 / image
* [Krea 3 API](https://docs.venice.ai/models/krea-3.md): \$0.07 / image
* [GPT Image 2.5 Flare API](https://docs.venice.ai/models/gpt-image-2-5-flare.md): \$0.07 / image


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