How to Use Kling Image 4.0 Long Image in VS Code
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 VS Code
Copy an example into VS Code, 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.
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 VS Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
Use Add to VS Code on the console's Agents & MCP page, or run:
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}' - Sign in
VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.
Use the Spiral skill
- Send VS Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- 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: VS Code 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.
Up to $0.7332 per run at the default inputs. resolution: 1K (default) $0.7332, 2K $0.80652.
Settings you can ask for
Kling Image 4.0 Long Image works from your prompt and image URLs. Ask VS Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Skill | ecommerce or webpage | webpage | 'ecommerce' designs a product detail page and requires 1-3 product images; 'webpage' designs a website. |
| Length | short, medium, or long | medium | Page length for 'ecommerce': short (~2-5 sections), medium (~6-10) or long (~11-18). Ignored for 'webpage'. |
| Resolution | 1K or 2K | 1K | 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 VS Code?
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.
More on Kling Image 4.0 Long Image and VS Code
Overview
Kling Image 4.0 Long Image in other agents
Questions about Kling Image 4.0 Long Image in VS Code
Can VS Code use Kling Image 4.0 Long Image?
Yes. Add Spiral to VS Code as an MCP server, and VS Code 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 VS Code?
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 VS Code plan is separate.
Do I need a fal account to use Kling Image 4.0 Long Image in VS Code?
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 VS Code?
About two minutes: add the hosted server, then sign in.
Does VS Code wait while Kling Image 4.0 Long Image runs?
Kling Image 4.0 Long Image runs in the background. VS Code 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.
Start using Kling Image 4.0 Long Image in VS Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into VS Code:
set up https://spiral.ai/SKILL.md


