Skip to main content
POST

Models

This endpoint only accepts kling-4-0/image. Mention every reference in the prompt: images as @image_1, @image_2 … in the order of image_urls, and elements by their name as @name. Mentioning a reference that was not provided is rejected and no task is created.

Pricing

Billed per generated image at the official price, plus $0.003 per task for every reference image or element: For example, 2 images at 2K with 1 reference image cost 2 × $0.063 + $0.003 = $0.129.

Body Parameters

string
required
Model to use: kling-4-0/image.
object
required
Input parameters for the generation.
string
URL to receive a webhook when the task completes.
object
Custom key-value metadata to attach to the task.