---
last_updated: 2026-11-23
source_url: https://opper.ai/kuaishou/kling-image-expand
title: "Kling Outpainting by Kuaishou"
description: "Kling Outpainting extends an image beyond its edges, filling the new area in the same scene."
---

# Kling Outpainting

By [Kuaishou](https://opper.ai/kuaishou).

Kling Outpainting grows an image's canvas up, down, left or right, by up to twice its size on each side and three times its area in total, and fills the new space so it continues the original scene. An optional prompt steers what appears there. It suits reframing a shot for a new aspect ratio.

## Available routes

Kling Outpainting runs on 1 route through the Opper gateway. Its routes and prices, live from the catalogue, are public JSON with no API key needed at https://api.opper.ai/v3/models?q=kling%3Asg%2Fkling-image-expand.

| Provider | Model id | Region | Zero data retention | Training | Price |
| --- | --- | --- | --- | --- | --- |
| [Kling AI](https://opper.ai/provider/kling) | `kling:sg/kling-image-expand` | Singapore | Abuse monitoring | No | $0.028 / generation |

## Key info

- Model id: `kling:sg/kling-image-expand`
- Input: Text, Image
- Output: Image
- Features: none listed
- Pricing: $0.028 / generation
- Billing: Per generation
- Zero data retention with abuse monitoring
- No training by default

## Pricing

Usage-based pricing, billed per generation, not by token.

| Variant | Price |
| --- | --- |
| Standard | $0.028 / generation |

## Data handling per route

Each route hosting Kling Outpainting has its own privacy posture, residency, and GDPR terms. Postures are maintained by Opper with a last-verification timestamp.

### Kling AI — Singapore

Zero data retention with abuse monitoring: prompts and outputs are kept for up to 30 days for abuse monitoring only, and are not used for training. No training on customer data. SG; unknown.

- Zero data retention: With abuse monitoring, 30-day window.
- Training: No training on customer data.
- Logging: Abuse monitoring (30-day retention)
- Abuse monitoring: On by default, holds flagged content
- Caching: Not cached
- Transfer mechanism: unknown

Verified by Opper on 2026-11-02.

## Get started

Call Kling Outpainting through the Opper gateway with one API key. Image models run on Opper's images endpoint: POST /v3/images returns the image in the response, as base64 by default.

See the [Opper images guide](https://docs.opper.ai/build/multimodal/images) and the [Opper multimodal skill](https://skills.opper.ai/opper-multimodal/SKILL.md).

Kling Outpainting is a premium model on Opper. Sign up needs no credit card: you get an API key straight away and the free models work in the playground and the API. Add a card to use premium models, pay-as-you-go with no minimum.

### Set it up with your agent

Paste this into a coding agent like Claude Code, Cursor or Codex and it will wire up Opper for you:

```text
Use curl to download, read and follow: https://skills.opper.ai/opper-multimodal/SKILL.md Generate an image with Kling Outpainting
```

### Or call it directly

cURL:

```bash
curl -s https://api.opper.ai/v3/images \
  -H "Authorization: Bearer $OPPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "kling:sg/kling-image-expand",
    "prompt": "A watercolor lighthouse on a cliff at sunrise"
  }' \
  | jq -r '.data[0].b64_json' | base64 --decode > image.png

# To edit an image, add "image": "https://..." (or a file_<id>) to the body
```

JavaScript:

```javascript
import { writeFile } from "node:fs/promises";

const res = await fetch("https://api.opper.ai/v3/images", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.OPPER_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "kling:sg/kling-image-expand",
    "prompt": "A watercolor lighthouse on a cliff at sunrise"
  }),
});
const { data } = await res.json();
// Each image comes back as base64 (b64_json) unless you ask for a url
await writeFile("image.png", Buffer.from(data[0].b64_json, "base64"));
```

## Use Kling Outpainting in your apps

Pick your tool to see how to run it on Kling Outpainting through Opper.

- [Claude Code](https://opper.ai/apps/claude-code/kling-image-expand)
- [Claude Cowork](https://opper.ai/apps/claude-cowork/kling-image-expand)
- [Codex](https://opper.ai/apps/codex/kling-image-expand)
- [DeepSeek Harness](https://opper.ai/apps/deepseek-harness/kling-image-expand)
- [GitHub Copilot CLI](https://opper.ai/apps/github-copilot-cli/kling-image-expand)
- [Aider](https://opper.ai/apps/aider/kling-image-expand)
- [Goose](https://opper.ai/apps/goose/kling-image-expand)
- [Droid](https://opper.ai/apps/droid/kling-image-expand)
- [OpenCode](https://opper.ai/apps/opencode/kling-image-expand)
- [Pi](https://opper.ai/apps/pi/kling-image-expand)
- [OpenClaw](https://opper.ai/apps/openclaw/kling-image-expand)
- [Hermes](https://opper.ai/apps/hermes/kling-image-expand)
- [Copilot for Obsidian](https://opper.ai/apps/obsidian-copilot/kling-image-expand)
- [OmniRoute](https://opper.ai/apps/omniroute/kling-image-expand)
- [Cursor](https://opper.ai/apps/cursor/kling-image-expand)
- [Cline](https://opper.ai/apps/cline/kling-image-expand)
- [Continue](https://opper.ai/apps/continue/kling-image-expand)
- [Kilo Code](https://opper.ai/apps/kilo-code/kling-image-expand)
- [GitHub Copilot](https://opper.ai/apps/github-copilot/kling-image-expand)
- [Zed](https://opper.ai/apps/zed/kling-image-expand)
- [JetBrains AI Assistant](https://opper.ai/apps/jetbrains-ai-assistant/kling-image-expand)
- [Voidleap Code](https://opper.ai/apps/voidleap-code/kling-image-expand)
- [n8n](https://opper.ai/apps/n8n/kling-image-expand)
- [LibreChat](https://opper.ai/apps/librechat/kling-image-expand)
- [Open WebUI](https://opper.ai/apps/open-webui/kling-image-expand)
- [See all apps](https://opper.ai/apps)

## Other models from Kuaishou

- [Kling 4.0](https://opper.ai/kuaishou/kling-4-0)
- [Kling 3.0 Pro](https://opper.ai/kuaishou/kling-3-0-pro)
- [Kling 4.0 Edit](https://opper.ai/kuaishou/kling-4-0-edit)
- [Kling 3.0 Omni 4K](https://opper.ai/kuaishou/kling-o3-4k)
- [Kling 3.0 4K](https://opper.ai/kuaishou/kling-3-0-4k)
- [Kling 3.0 4K](https://opper.ai/kuaishou/kling-3-0-4k-i2v)
