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

VS Code · Image

How to Use Z-Image Turbo LoRA in VS Code

Z-Image Turbo LoRA creates images with custom style adapters applied during generation. Unlike Z-Image Turbo, it lets you carry a trained visual style into new scenes without retraining the underlying model.

Prompts to try with Z-Image Turbo LoRA in VS Code

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

Use Z-Image Turbo LoRA with the compatible style adapter already specified in this project's asset configuration. Generate a 1024 by 1024 image of a desk lamp on an oak table, with warm directional light and clearly visible brushed metal. Add the result to the product concept page.

Z-Image Turbo LoRAVS Code
Try asking
  • Read this project's design brief. Use Z-Image Turbo LoRA with its configured compatible style adapter to create a 1024 by 1024 reading-room concept: low oak shelves, a rust-colored chair beside a window, late-afternoon light, and an eye-level camera. Add it to the design review page.

  • Generate a product photo with Z-Image Turbo LoRA: a matte black water bottle on wet slate, soft morning light, 1:1. Tell me the price first. Save the result in ./assets.

  • Make four logo concepts for a coffee brand called "Northline" with Z-Image Turbo LoRA.

  • Create a 16:9 hero image of a quiet mountain cabin at dusk with Z-Image Turbo LoRA.

How to set up Z-Image Turbo LoRA in VS Code

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

Use Spiral's MCP server

  1. 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"}'
  2. 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

  1. Send VS Code 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 Z-Image Turbo LoRA

    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": "fal-ai/z-image/turbo/lora",
        "input": {
          "prompt": "A hyper-realistic, close-up portrait of a tribal elder from the Omo Valley, painted with intricate white chalk patterns and adorned with a headdress made of…"
        }
      }'

Then paste one of the prompts above: VS Code finds Z-Image Turbo LoRA on Spiral, shows the price and runs it.

Z-Image Turbo LoRA providers and prices

Spiral runs Z-Image Turbo LoRA through fal. Open a card for today's price, with every fee included.

falImage
Z Image Turbo Lora · Text to Image
fal-ai/z-image/turbo/lora

Settings you can ask for

Z-Image Turbo LoRA works from your prompt. Ask VS Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Number of inference steps1 to 88

The number of inference steps to perform.

Seeda whole number

The same seed and the same prompt given to the same version of the model

will output the same image every time.

Number of images1 to 41

The number of images to generate.

Output formatjpeg, png, or webppng

The format of the generated image.

Accelerationnone, regular, or highregular

The acceleration level to use.

Enable prompt expansionon or offoff

Whether to enable prompt expansion. Note: this will increase the price by 0.0025 credits per request.

Every API field of Z Image Turbo Lora · Text to Image is on its tool page: open its card above.

What can you do with Z-Image Turbo LoRA in VS Code?

Create photographic assets and bilingual graphic drafts alongside the project you are building. Your coding agent can turn repository copy and layout requirements into detailed Z-Image Turbo briefs, then place the results in the interface.

Product scene concepts

Explore a product idea from a written description. Specify materials, camera position, surface, and lighting to compare studio and lifestyle treatments.

Portrait art direction

Draft fictional portraits for a campaign or story. Describe age, expression, clothing, setting, and light to make each direction concrete.

English and Chinese poster drafts

Create poster concepts with specified English or Chinese lettering. Give the exact headline, its placement, and the scene around it, then proofread the result.

Editorial cover images

Turn an article's central idea into a concrete photographic scene. Define the subject and composition before generating, especially when the topic involves factual details.

Website image concepts

Generate imagery for a landing page or feature section from a written brief. Describe where the subject sits and reserve clear space for HTML headings.

Interior mood studies

Compare room concepts through explicit descriptions of furniture, finishes, daylight, and camera angle. Use the results to discuss a visual direction.

Campaign images with a trained style

Apply a compatible custom style LoRA to new campaign scenes. Keep the visual brief consistent while changing subjects, settings, and compositions.

Questions about Z-Image Turbo LoRA in VS Code

Can VS Code use Z-Image Turbo LoRA?

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Z-Image Turbo LoRA like any built-in tool.

How much does Z-Image Turbo LoRA cost in VS Code?

$0.01105 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. Billed on `num_images`, default 1. 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 Z-Image Turbo LoRA in VS Code?

No. Spiral runs Z-Image Turbo LoRA on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up Z-Image Turbo LoRA in VS Code?

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

Does VS Code wait while Z-Image Turbo LoRA runs?

Z-Image Turbo LoRA runs in the background. VS Code starts the run, checks on it and gives you the image when it's ready.

What is Z-Image Turbo good at?

Photorealistic images and designs containing English or Chinese text are its clearest strengths. Try portraits, product scene concepts, editorial images, and poster drafts.

Which languages does Z-Image Turbo support?

Tongyi specifically documents English and Chinese instruction following and text rendering. Those are the best-supported choices for prompts and lettering inside images.

How should I write a Z-Image Turbo prompt?

Use a detailed visual description: identify the subject, its action, the setting, lighting, materials, and framing. For lettering, spell out the exact words and describe where they belong.

Does Z-Image Turbo support negative prompts?

No. Describe the desired result directly, such as a plain backdrop, sharp focus, or an empty tabletop.

How many generation steps should I use?

Start with eight steps, the generation process documented by Tongyi. Use that as your baseline while refining the description and composition.

Get started

Start using Z-Image Turbo LoRA 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 VS Code

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