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

> Venice 上的 Kling Image 4.0 API：图像生成与图像编辑，最高 4K，每张图像 $0.08 起。匿名访问，不暴露您的身份。



## Kling Image 4.0 API

Kling Image 4.0 是 Kling AI 推出的图像生成与图像编辑模型，可通过 Venice API 以 `kling-v4-text-to-image` 调用。该模型的提供商可能会保留提示数据（但这些数据已由 Venice 匿名化）。对于敏感内容，请使用私有模型。

文本生成图像，支持 2K 和 4K，宽高比从 21:9 到 9:16。

### Kling Image 4.0 API 价格

| 模型 ID | 变体 | 隐私 | 价格 |
| - | - | - | - |
| `kling-v4-text-to-image` | 生成 | Anonymized | \$0.08 / 张 |
| `kling-v4-image-edit` | 编辑 | Anonymized | \$0.08 / 次编辑 |

### Kling Image 4.0 规格

| 规格 | 值 |
| - | - |
| 提供商 | Kling AI |
| 发布日期 | 2026年11月17日 |
| 隐私 | Anonymized |
| 状态 | 稳定 |
| 分辨率 | 2K, 4K |
| 宽高比 | 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9 |
| 提示词上限 | 32,768 字符 |

### 如何使用 Kling Image 4.0 API

使用 `"model": "kling-v4-text-to-image"` 和您的 API 密钥向 `POST https://api.venice.ai/api/v1/image/generate` 发送请求。

```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"
  }'
```

### 相关模型

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


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