Pricing
Compare models →Pricing is based on the selected resolution and num_images.
| Resolution | Price per output image |
|---|---|
| 2K | $0.063 |
| 4K | $0.094 |
| 8K | $0.157 |
Total price = `num_images` × the selected resolution rate.
Example Costs
| Configuration | Price |
|---|---|
| 1 image at 2K | $0.063 |
| 4 images at 4K | $0.376 |
| 9 images at 8K | $1.413 |
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | Text prompt for image generation. Text you quote in the prompt (titles, labels, signs) is rendered in the image. |
aspect_ratio | string | The aspect ratio of the generated image. Defaults to 1:1.1:13:22:33:44:39:1616:921:9"1:1" |
resolution | string | Output resolution. 2k, 4k or native 8k.2k4k8k"2k" |
num_images | integer | Number of independent images to generate.Default: 1Minimum: 1 · Maximum: 9 |
output_format | string | Output image format.pngjpegwebp"png" |
README
Kling Image 4.0 Text-to-Image
Kling Image 4.0 Text-to-Image generates images from text prompts at 2K, 4K, or 8K. Describe a scene, illustration, poster, or product concept, then choose the aspect ratio and number of images.
Why Choose This?
- Text-guided generation — Describe subjects, composition, lighting, and visual style.
- Resolution options — Choose from 2K, 4K, and 8K output tiers.
- Flexible framing — Select one of eight aspect ratios.
- Batch generation — Request 1–9 independent images per call.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Describe the image, including any text you want to appear. |
| aspect_ratio | No | 1:1, 3:2, 2:3, 3:4, 4:3, 9:16, 16:9, or 21:9. Default: 1:1. |
| resolution | No | Output resolution tier: 2k, 4k, or 8k. Default: 2k. |
| num_images | No | Number of independent output images, from 1 to 9. Default: 1. |
| output_format | No | Output format: png, jpeg, or webp. Default: png. |
How to Use
- Write a prompt — Describe the subject, setting, composition, and style.
- Choose framing and resolution — Select an aspect ratio and the
2k,4k, or8ktier.
- Set the image count — Choose how many independent images to generate.
- Select a format and submit — Choose
png,jpeg, orwebp, then review the results.
Pricing
Pricing is based on the selected resolution and num_images.
| Resolution | Price per output image |
|---|---|
| 2K | $0.063 |
| 4K | $0.094 |
| 8K | $0.157 |
Total price = `num_images` × the selected resolution rate.
Example Costs
| Configuration | Price |
|---|---|
| 1 image at 2K | $0.063 |
| 4 images at 4K | $0.376 |
| 9 images at 8K | $1.413 |
Best Use Cases
- Concept development — Explore scenes, characters, and visual directions.
- Poster layouts — Draft promotional artwork with text instructions.
- Product concepts — Visualize products in different settings.
Pro Tips
- Specify the main subject, camera angle, lighting, and background.
- Put requested wording in quotation marks and describe its placement.
- Use multiple outputs to compare different interpretations of the same prompt.
Notes
promptis required.
- Pixel dimensions depend on the selected resolution and aspect ratio.
- Review generated text and fine details before use.
Related Models
- Kling Image 4.0 Edit — Generate images guided by reference images and edit instructions.
- Kling Image 4.0 Image Set — Generate related images in one request.
- Kling Image 4.0 Long Image — Create ecommerce or webpage design images.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Kling Image 4.0 Text-to-Image API example
The catalog lists POST https://api.opensi.com.ai/api/v3/kwaivgi/kling-image-v4.0/text-to-image for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"aspect_ratio": "1:1",
"resolution": "2k",
"num_images": 1,
"output_format": "png"
}Kling Image 4.0 Text-to-Image API — Frequently asked questions
What is the Kling Image v4.0 Text To Image API?
Kling Image v4.0 Text To Image is a Kuaishou model for image generation, exposed as a REST API on OpenSIAI. Kling Image 4.0 Text-to-Image generates photorealistic images from text prompts with strong typography and detailed composition, making it suitable for product visuals, posters, marketing assets, branded content, and production workflows. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Kling Image v4.0 Text To Image API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/kwaivgi/kling-image-v4.0/text-to-image.
How much does Kling Image v4.0 Text To Image cost per run or per second?
Kling Image v4.0 Text To Image starts at $0.063 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does Kling Image v4.0 Text To Image accept?
Key inputs: prompt, aspect_ratio, resolution, num_images, output_format. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/kwaivgi/kling-image-v4.0/text-to-image.
How long does Kling Image v4.0 Text To Image take to generate?
Reported generation time on OpenSIAI is around 46 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.
Can I use Kling Image v4.0 Text To Image outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (Kuaishou). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.
