How to Use Z-Image Turbo LoRA in opencode
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 opencode
Copy an example into opencode, 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.
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 opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode 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 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: opencode 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.
$0.01105 per megapixel. image_size presets count as 1 MP; custom sizes round up to whole megapixels. Billed on num_images, default 1.
Settings you can ask for
Z-Image Turbo LoRA works from your prompt. Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Number of inference steps | 1 to 8 | 8 | The number of inference steps to perform. |
| Seed | a 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 images | 1 to 4 | 1 | The number of images to generate. |
| Output format | jpeg, png, or webp | png | The format of the generated image. |
| Acceleration | none, regular, or high | regular | The acceleration level to use. |
| Enable prompt expansion | on or off | off | 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 opencode?
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.
More on Z-Image Turbo LoRA and opencode
Overview
Z-Image Turbo LoRA in other agents
Questions about Z-Image Turbo LoRA in opencode
Can opencode use Z-Image Turbo LoRA?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Z-Image Turbo LoRA like any built-in tool.
How much does Z-Image Turbo LoRA cost in opencode?
$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 opencode plan is separate.
Do I need a fal account to use Z-Image Turbo LoRA in opencode?
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 opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Z-Image Turbo LoRA runs?
Z-Image Turbo LoRA runs in the background. opencode 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.
Start using Z-Image Turbo LoRA in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


