Spiral gives your agent every tool with one account. Browse the tools →

Codex · ImageReleased 2026-11-17

How to Use Kling Image 4.0 Long Image in Codex

Kling Image 4.0 Long Image designs scrolling product pages and website visuals. Unlike standard Kling Image 4.0 image generation, it returns one complete page image without HTML or editable design files.

Prompts to try with Kling Image 4.0 Long Image in Codex

Copy an example into Codex, or ask in your own words.

Read the landing-page brief in this project. Use Kling Image 4.0 Long Image to create a 2K website concept with the documented section order, approved copy, and brand colors. Show the page directly.

Kling Image 4.0 Long ImageCodex
Try asking
  • Use Kling Image 4.0 Long Image to draft a short product detail page from the project's product photos and specification sheet. Include roughly four sections covering the product, features, materials, and use.

  • Read the portfolio content in this repository. Use Kling Image 4.0 Long Image to visualize an introduction, selected projects, biography, and contact section as one scrolling website image.

  • Use Kling Image 4.0 Long Image to visualize the game's website from its design brief and approved artwork. Include the setting, gameplay overview, and characters, with readable English headings.

  • Use Kling Image 4.0 Long Image to create a website concept from the project's Spanish copy. Keep every heading and label in Spanish, then compare the rendered text with the source.

How to set up Kling Image 4.0 Long Image in Codex

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Kling Image 4.0 Long Image

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "fal",
        "model": "kling/v4/long-image",
        "input": {
          "prompt": "Design a visual long image for a specialty coffee brand'\''s official website, including the hero section, product showcase, roasting philosophy, store…"
        }
      }'

Then paste one of the prompts above: Codex finds Kling Image 4.0 Long Image on Spiral, shows the price and runs it.

Kling Image 4.0 Long Image providers and prices

Spiral runs Kling Image 4.0 Long Image through fal. Open a card for today's price, with every fee included.

falImage

Settings you can ask for

Kling Image 4.0 Long Image works from your prompt and image URLs. Ask Codex for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Skillecommerce or webpagewebpage

'ecommerce' designs a product detail page and requires 1-3 product images; 'webpage' designs a website.

Lengthshort, medium, or longmedium

Page length for 'ecommerce': short (~2-5 sections), medium (~6-10) or long (~11-18). Ignored for 'webpage'.

Resolution1K or 2K1K

Output resolution.

Every API field of Kling Image 4.0 · Long Image is on its tool page: open its card above.

What can you do with Kling Image 4.0 Long Image in Codex?

Turn project briefs into scrolling page concepts before building the interface. Use the image to discuss content hierarchy, then implement the approved design in the project's components.

Product detail page drafts

Turn product photos and approved specifications into a scrolling page with feature explanations, material details, and usage scenes.

Brand website concepts

Explore how a brand's imagery, story, product showcase, and contact information could read together on one page.

Game website art direction

Draft a game website visual that carries its setting and art style through the introduction, gameplay overview, and character sections.

Personal portfolio concepts

Plan a personal profile page with an introduction, selected work, background, and contact section before implementation.

Localized page reviews

Review a page concept using approved English, Spanish, or Portuguese copy, then proofread the rendered wording before production.

Product education pages

Combine supplied product images with explanations of construction, specifications, and everyday use in a single visual brief.

Design handoffs

Give a designer or developer one scrolling visual to discuss section order, imagery, typography, and content hierarchy.

Questions about Kling Image 4.0 Long Image in Codex

Can Codex use Kling Image 4.0 Long Image?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Kling Image 4.0 Long Image like any built-in tool.

How much does Kling Image 4.0 Long Image cost in Codex?

Up to $0.7332 per run at the default inputs. `resolution`: 1K (default) $0.7332, 2K $0.80652. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

Do I need a fal account to use Kling Image 4.0 Long Image in Codex?

No. Spiral runs Kling Image 4.0 Long Image on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up Kling Image 4.0 Long Image in Codex?

About two minutes: add the hosted server, then sign in.

Does Codex wait while Kling Image 4.0 Long Image runs?

Kling Image 4.0 Long Image runs in the background. Codex starts the run, checks on it and gives you the image when it's ready.

Does Kling Image 4.0 Long Image build a working website?

It produces one complete page image. HTML, working controls, separate illustrations, and editable design files require further work.

Can Kling Image 4.0 Long Image generate 8K pages?

Long-image output stops at 2K. The 8K capability described for standard Kling Image 4.0 images does not extend to scrolling pages.

How long can a product page be?

Product pages range from roughly 2–5 sections to 11–18 sections, with 6–10 sections between those extremes. These are approximate content counts; website designs do not use this length control.

What should I include in a page brief?

Describe the product or website subject, then list the sections in reading order. For a product page, specify the features, materials, specifications, and usage scenes you want shown.

Which languages can appear in the design?

Kling documents text generation in Chinese, English, Japanese, Korean, Spanish, and Portuguese. State the intended language explicitly in your brief.

Get started

Start using Kling Image 4.0 Long Image in Codex

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Codex:

Set up Codex

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options