ToAPIs
    HomeToAPIs
    Image GenerationGPT Image 2.6, Gemini, FLUX…Video GenerationSeedance, Veo, Kling, Sora…Chat & WritingGPT-5.6, Claude, DeepSeek…Speech & MusicVoiceover, TTS, Audio
    New ReleaseSeedance 2.5
    PricingAPI DocsMCP
    BlogAlternatives
    Log InStart Free
    All ModelsPricingAPI DocsMCPBlogAlternatives
    Log InStart Free

    Language

    Esc
    • Seedance 2.5Video Generation
    • GPT Image 2Image Generation
    • GPT Image 2.6Image Generation
    • GPT Image 2.5Image Generation
    • Veo 3.1 FastVideo Generation
    • Kling 3.0 TurboVideo Generation
    • Kling V4 FlashVideo Generation
    • Grok Video 1.5Video Generation
    • Nano Banana 2Image Generation
    • Seedream 5.5Image Generation
    • FLUXImage Generation
    • Sora 2Video Generation
    • All Image ModelsCategory
    • All Video ModelsCategory
    • GPT-5.6 SolChat & Coding
    • Claude Opus 4.8Chat & Coding
    • Claude Opus 4.7Chat & Coding
    • DeepSeek V4 ProDeepSeek · Text
    • Gemini Omni 1.1 FlashGoogle · Multimodal

    Quick Answer

    • Generate realistic images with natural lighting, detailed textures, and crisp typography. Start with a prompt or use up to 10 reference images, then choose 2K, 4K, or native 8K output.
    • Submit to POST /v1/images/generations and use GET /v1/images/generations/{task_id} to retrieve the image.

    Key Parameters

    • prompt | string | required | - | - | Describe the subject, lighting, and framing. Add reference images when needed.
    • resolution | string | optional | 2K | 2K, 4K, 8K | Output resolution
    • aspect_ratio | string | optional | auto | auto, 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9 | Select 2K, 4K, or 8K and a fixed or automatic aspect ratio.
    • image_urls | string[] | optional | - | 0–10 | Combine references for a subject, palette, and composition. In your prompt, refer to images in upload order with @image_1, @image_2, and so on.
    • n | integer | optional | 1 | 1 | Output image per task

    Common Errors

      Kling AI logo

      Kling Image 4.0

      Generate realistic images with natural lighting, detailed textures, and crisp typography. Start with a prompt or use up to 10 reference images, then choose 2K, 4K, or native 8K output.

      Model Type:
      Text To ImageImage To Image
      Pricing: 2K $0.0571 / image; 4K $0.0857 / image; 8K $0.1429 / image
      Production route
      Live
      PlaygroundExamplesSimilarREADMEAPI
      1

      Describe your image

      Reference images

      Describe the image you want to generate.180 / 1200

      Advanced options

      Example params
      2

      Your generated result

      Example result
      View API DocsGet API Key

      Generation takes some time. Please wait.You can leave this page. [ Task Logs ] lets you check the generated content directly.

      Request preview

      {
        "model": "kling-image-4.0",
        "prompt": "A candid smartphone portrait of a woman wearing silver headphones and reading a green book on a sunlit lawn. Natural backlight, realistic denim texture, and a vertical composition.",
        "resolution": "2K",
        "aspect_ratio": "3:4"
      }

      2K / 4K / 8K

      Output resolution

      10

      Reference images per request

      1

      Output image per task

      8

      Fixed aspect ratios

      Generated examples

      Explore what Kling Image 4.0 can create

      Create with this model
      Kling native 8K example with a leather bag and fabric textures, resized for the web

      Kling Image 4.0 #1

      Kling snowboarding poster with bold lettering

      Kling Image 4.0 #2

      Reference-guided painting of a seated woman holding a red apple

      Kling Image 4.0 #3

      Transparent pricing

      Kling Image 4.0 Pricing

      Top up credits

      2K

      ToAPIs

      $0.0571

      image

      4K

      ToAPIs

      $0.0857

      image

      8K

      ToAPIs

      $0.1429

      image

      SpecificationToAPIs priceBilling basis
      2K

      ToAPIs

      $0.0571

      image

      image
      4K

      ToAPIs

      $0.0857

      image

      image
      8K

      ToAPIs

      $0.1429

      image

      image

      Why ToAPIs

      What you can create

      Control composition with text, multiple references, and your preferred framing.

      Native 8K output

      Use native 8K to retain more detail in skin, fabrics, and landscapes when cropping or preparing large-format images.

      Up to 10 reference images

      Combine references for a subject, palette, and composition. In your prompt, refer to images in upload order with @image_1, @image_2, and so on.

      Text and typography

      Specify the wording, hierarchy, and placement of text for posters, title cards, and product visuals.

      Generate an image

      Submit one job and retrieve its image when processing finishes.

      1. 1

        Write a prompt

        Describe the subject, lighting, and framing. Add reference images when needed.

      2. 2

        Set the output

        Select 2K, 4K, or 8K and a fixed or automatic aspect ratio.

      3. 3

        Retrieve the result

        Submit to POST /v1/images/generations and use GET /v1/images/generations/{task_id} to retrieve the image.

      Use cases

      Editorial portraits

      Build a scene around natural lighting, facial expressions, and clothing textures.

      Campaign posters

      Combine a clear headline with imagery, then choose a layout for the placement.

      Product visuals

      Guide the product shape and visual style using separate references.

      FAQ

      Frequently asked questions

      Which resolutions and aspect ratios are supported?

      Choose 2K, 4K, or 8K. The default is 2K and automatic framing. Fixed ratios are 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, and 21:9.

      How do I add reference images?

      Upload up to 10 JPEG or PNG images in the Playground. In an API request, pass reachable HTTP(S) URLs in image_urls and use @image_1 and similar references in the prompt.

      How many images does a task return?

      Each ToAPIs task returns one image. Use the task ID to check progress and fetch the result.

      How is generation priced?

      The price is per image and depends on the selected resolution and region. Check the current quote before submitting.

      Kling Image 4.0 API

      Create with Kling Image 4.0

      Try your prompt in the Playground or use the API to integrate image generation into your workflow.

      Sign in to tryAPI quickstart

      Try Kling Image 4.0

      Set a prompt and resolution in the Playground.

      Try now
      ToAPIs
      HomeToAPIs
      Enterprise AI API Gateway. Access GPT-5, Claude, Gemini and 200+ models through one unified API.

      Popular Models

      • Seedance 2.5 API
      • Seedance 2.0 API
      • Veo 3.1 Fast API
      • Kling 3.0 Turbo API
      Show moreShow less
      • GPT Image 2 API
      • Claude Opus 4.8 API
      • Nano Banana 2 API
      • Seedance 2 Mini API
      • All models

      API Categories

      • AI Image API
      • AI Video API
      • Text-to-Video API
      • Image-to-Video API
      Show moreShow less
      • AI Image Editing API
      • LLM & Reasoning API
      • All API tools →

      Alternatives

      Alternatives
      • Kie.ai alternative
      • Fal.ai alternative
      • OpenRouter alternative
      • Replicate alternative
      • Wavespeed AI alternative
      • All comparisons →

      Featured Guides

      Featured Guides
      • Seedance 2.0 vs 2.5 pricing
      • Cheapest Seedance API guide
      • MiniMax H3 integration guide
      • Free Seedance 2 API key
      • Seedance 2 API quickstart
      • All engineering posts →

      Developers & Platform

      Developers & Platform
      • API documentation
      • MCP
      • Pricing
      • Model playground
      • LLMs.txt
      • Contact support
      • Model guide directory
      Operating entity:
      鯨樞智能科技有限公司
      JINGSHU INTELLIGENT LIMITED
      Registered office:
      ROOM 5042, 5/F, YAU LEE CENTRE, NO.45, HOI YUEN ROAD, KWUN TONG, KOWLOON, HONG KONG
      PrivacyTermsAcceptable UseData DeletionData RetentionSubprocessors & RegionsBilling & RefundsCookie PolicySitemapAbout

      © 2026 ToAPIs. All rights reserved.