How Much To Run AI
Hosted API

Kling Image 4.0: Reference Costs, 2K API and 8K Options

Kling Image 4.0 generates still images, coordinated image sets and long-form product or webpage visuals. Through Cloudflare AI, one output costs $0.063 and each reference image costs $0.003, with output up to 2K. Kling’s own image API separately offers 2K, 4K and 8K outputs, image sets and long-image workflows.

Content reviewed:

Use Kling Image 4.0 through Cloudflare AI ↗
Cloudflare AI Gateway pricing for Kling Image 4.0: $0.063 per generated image and $0.003 per reference image. One output with three references costs $0.072 and is capped at 2K.
Cloudflare’s Kling image route charges for each generated output and each input reference.

Use this model

See access details in the guide below.

What can you create with Kling Image 4.0?

  • Generate a product, character or campaign image from a prompt and up to ten reference images.
  • Create a coordinated series of images for storyboards or a product catalog.
  • Build a long product-detail or webpage visual using the separate long-image workflow in Kling’s own API.

Choose a Kling Image 4.0 API route

Kling Image 4.0 is the still-image family, separate from the Kling 4.0 video model. Kling’s own API documents standalone images, coordinated image sets and long images for e-commerce pages or web visuals. Standard images and image sets support native 2K, 4K and 8K. Long-image generation is a separate endpoint with 1K and 2K output.

For a still image that needs three references, decide what each picture controls before uploading. For a product shot, use one for the shape, one for the material and one for the lighting. In the Cloudflare prompt, refer to them as @image_1, @image_2 and @image_3. Keep the same reference order across retries so that a new prompt remains comparable.

Cloudflare AI exposes klingai/kling-v4-image as a third-party model route. That integration accepts a prompt and up to ten image references, returns up to nine images per request, and currently outputs at 2K. Kling’s broader 4K/8K and long-image features are not exposed by this Cloudflare route. Select the provider based on the output and workflow your project needs.

ZenMux also lists klingai/kling-image-4.0, served by one provider, with a displayed range of $0.063–$0.157 per generated image. The listing does not map that range to resolutions, reference counts or image modes. Check the live quote for the chosen settings; do not apply Cloudflare’s per-reference charge or its 2K output cap to this separate route.

Request one 2K image with Cloudflare Workers AI
const result = await env.AI.run('klingai/kling-v4-image', {
  prompt: 'A ceramic travel mug on a studio table, matte forest-green finish',
  resolution: '2k',
  aspect_ratio: '4:3',
  n: 1,
});

Kling Image 4.0 costs on Cloudflare

Cloudflare charges $0.063 per generated image plus $0.003 per input reference image. For one output with three references, the subtotal is $0.072. Three outputs with the same three references cost $0.198 in one request. If a request asks for several outputs, count each output separately and divide total charges by the number of images you keep.

The Cloudflare schema accepts JPEG or PNG references up to 30 MB each, with each side at least 300 pixels and an aspect ratio between 2:5 and 5:2. Pass a reachable HTTPS URL or encoded image data. For example, a 300 × 1,200 strip falls outside the input ratio even though both sides meet the pixel minimum. Crop or pad it before submitting. The n field accepts one to nine outputs and the resolution field only accepts 2k. Use aspect_ratio to choose a supported frame, including auto, within that resolution.

A request supports up to ten references, with each input file subject to image size and format limits. The reference images are charged even though they do not become outputs. If the generated image is destined for an 8K display or print crop, Cloudflare’s 2K ceiling may require a different provider route.

Cloudflare requestOutput chargeReference chargeTotal
One image, no references$0.063$0.000$0.063
One image, three references$0.063$0.009$0.072
Three images, three references$0.189$0.009$0.198

Kling Image 4.0 native API for 4K, 8K and long images

Kling’s own API supports more output modes than Cloudflare’s integration. Use a standard-image request for a single asset, Series mode for two to ten connected outputs, and the long-image endpoint for a product-detail page or webpage composition. Standard and series requests support up to ten combined references and native 8K. Long images return one composition per call and top out at 2K.

A storyboard with six files calls for Series mode when the frames should share a subject and setting. A six-panel layout inside one poster can use a standalone image. State how the scene or viewpoint should change from frame to frame for a series. For a product detail page, use the long-image endpoint and define the sections in order. The entire tall layout comes back as one image, so check small text at the intended display width before handing it off.

Check the selected endpoint and output mode before comparing prices across services. A fixed per-image Cloudflare charge does not cover a Kling subscription credit or a direct Kling API request. The native API documentation describes the request schema; confirm the current account quote and any minimum purchase before estimating a production batch.

What UseAPI reported for Kling Image 4.0

On November 19, useapi.net published a test run using its third-party Kling API on a Kling Pro subscription. One 16:9 output measured 10,880 × 6,144 pixels, and a prompt-only Series request returned six related watercolor panels for 24 account credits. The same author tested a long product page and reported that its default text was Chinese, with an English-only instruction correcting it.

The same post listed developer API examples at $0.04 for a 2K still, $0.11 list for 8K, $0.60 for a 2K product detail page and $0.41 for a 2K web design. Those figures describe different jobs and sit alongside the author’s Kling Pro credit examples. Use the current quote for your own route and account. The author counted 98 style, 16 tone and 76 font presets and showed how a tone or font could change the same prompt. Before spending on a series, compare one change at a time so you can see whether the preset preserves the look you need.

The author works on useapi.net and disclosed that it is not affiliated with Kling or Kuaishou. These are results from its route and a Kling Pro account, not Cloudflare API tests or a general quality evaluation. Use them as examples of the workflow to check, then verify the output language, image dimensions and account charge in the provider you select.

Before you use it

  • Cloudflare’s Kling Image 4.0 route is capped at 2K, even though Kling’s native API supports standard-image outputs up to 8K.
  • The reported 8K and series examples were run through a third-party API on a Kling Pro account. They do not measure the Cloudflare integration.

How to get started

Choose a provider and output mode first, then record references, output count, resolution, retries and accepted images in the batch budget.

Sources

Sources (6)

Calculators