Available nowNew

Kling 4 Image: image to image

By Kuaishou

Kling 4 Image makes up to ten images per run from a prompt or reference images, at 2K, 4K or 8K.

Model ID
Maker
Kuaishou
Added
November 25, 2026

Model id

Use this in every request
kling/v4/image-to-image

This model has other modes with their own ids: kling/v4/text-to-image.

Run it

Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.

# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling/v4/image-to-image",
  "input": {
    "prompt": "Move the chair from the reference image into a quiet night market, keeping its shape, color and materials.",
    "image_urls": [
      "https://example.com/input.png"
    ]
  }
}'

# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model": "kling/v4/image-to-image", "quote_id": "QUOTE_ID", "input": {"prompt":"Move the chair from the reference image into a quiet night market, keeping its shape, color and materials.","image_urls":["https://example.com/input.png"]}}'

# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"

Input

Input fields for kling/v4/image-to-image
NameTypeDescription
promptrequiredstring
Text prompt. Reference images as @Image1, @Image2, ... and elements as @Element1, @Element2, ...
image_urlsrequiredarray of image URLs
Reference images (1-10).
elementsarray of objects
Elements, referenced as @Element1, @Element2, ... (max 7). Images and elements combined must not exceed 10.
result_typestring (enum)
Single makes num_images independent images. Series makes a connected set.

Default: single

One of: single, series

num_imagesinteger
Number of independent images to generate (1-9). Only used when result_type is 'single'.

Default: 1

resolutionstring (enum)
Output resolution.

Default: 2K

One of: 2K, 4K, 8K

aspect_ratiostring (enum)
Aspect ratio of generated images. 'auto' picks one from the input content.

Default: auto

One of: auto, 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9

sync_modeboolean
If `True`, the media will be returned as a data URI.

Default: false

Some fields of this model are not available through Raywake: series_amount.

Output

A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.

Job excerpt
"outputs": [
  { "type": "image", "url": "https://…", "mime_type": "image/png", "thumbnail_url": "https://…" }
]

Pricing

  • 2K · up to$0.10/ image
  • 4K · up to$0.15/ image
  • 8K · up to$0.25/ image

The exact charge for your input comes from a quote. How charges settle

API docs

About this model

Overview

Choose a single image or a series, one of eight aspect ratios, and the resolution. Image mode accepts reference images and elements for stronger control of subjects and objects.

What you can build

  • Several takes on one key visual
  • High-resolution campaign images
  • Series frames that belong to one scene
  • New images guided by reference photos or elements

Prompting tips

  • Try ideas at 2K before committing to 4K or 8K.
  • Use references that show the subject cleanly and name what should change.
  • For a series, say what connects the frames and what changes between them.

Inputs

  • Prompt (required): Text prompt. Reference images as @Image1, @Image2, ... and elements as @Element1, @Element2, ...
  • Images (required): Reference images (1-10).
  • Elements (optional): Elements, referenced as @Element1, @Element2, ... (max 7). Images and elements combined must not exceed 10.
  • Result Type (optional): Series makes a connected set. Options: Single, Series.
  • Number of Images (optional): Number of independent images to generate (1-9).
  • Resolution (optional): Output resolution. Options: 2K, 4K, 8K.
  • Aspect Ratio (optional): Aspect ratio of generated images. 'auto' picks one from the input content. Options: auto, 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9.

Output and limits

  • Resolutions: 2K, 4K, 8K.
  • Aspect ratios: auto, 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9.
  • Up to 9 images per run.
  • The long-image mode is not part of this card.
  • Small or dense text in the image can come out misspelled.
  • Hands, crowds and complex poses can show artifacts; generate a few variations and pick the best.
  • Some prompts or outputs can be refused by safety checks.

Price guide

  • 2K · up to: $0.10 / image
  • 4K · up to: $0.15 / image
  • 8K · up to: $0.25 / image