How to Use Texture Transform in opencode
Texture Transform changes the surface appearance of objects in an image, making it useful for material studies and product concepts. Use it to explore finishes such as marble, wood, or fabric before choosing a design direction.
Prompts to try with Texture Transform in opencode
Copy an example into opencode, or ask in your own words.
Use Texture Transform on the table photo in this project's assets to try wood and marble separately. Build a comparison page with the original and both labeled results.
Use Texture Transform on the chair image in this project to explore velvet. Save the result beside the original and add a before-and-after view.
Use Texture Transform on the product enclosure image in this repository to try metal and ceramic separately. Create a review page with matching display sizes.
Use Texture Transform on the jacket photo in the project to explore denim. Add the result to a concept gallery labeled with its material.
Use Texture Transform on the sculpture image in this project's assets to explore stone. Save a separate concept image and show it beside the original.
How to set up Texture Transform 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 Texture Transform
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/image-apps-v2/texture-transform", "input": { "image_url": "https://v3.fal.media/files/tiger/WqtPStHkOu6W0lZcIlXD8_156e3c91cb3a4d12b7380cc43b5e4c67.png" } }'
Then paste one of the prompts above: opencode finds Texture Transform on Spiral, shows the price and runs it.
Texture Transform providers and prices
Spiral runs Texture Transform through fal. Open a card for today's price, with every fee included.
Settings you can ask for
Texture Transform works from your image URL. Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Target texture | cotton, denim, wool, felt, wood, leather, velvet, stone and 14 more | marble |
Every API field of Texture Transform is on its tool page: open its card above.
What can you do with Texture Transform in opencode?
Create material studies from product images already in your project. Ask the agent to organize the results into a comparison page for design review.
Furniture finish studies
Explore a wood or marble treatment on a photographed table before discussing finishes with a client.
Upholstery concepts
Try velvet, leather, or wool treatments on a chair image for an interior design presentation.
Product enclosure concepts
Explore metal, plastic, or ceramic surface treatments on a product image during industrial design reviews.
Fashion material studies
Use a garment photo to explore denim, silk, or lace treatments for an early collection mood board.
Sculpture material exploration
Try stone, clay, or crystal treatments on a sculpture image to discuss possible visual directions.
Campaign image concepts
Reimagine a photographed object in an unexpected material for a campaign concept board.
More on Texture Transform and opencode
Overview
Texture Transform in other agents
Questions about Texture Transform in opencode
Can opencode use Texture Transform?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Texture Transform like any built-in tool.
How much does Texture Transform cost in opencode?
$0.052 per image. 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 Texture Transform in opencode?
No. Spiral runs Texture Transform on its own fal account. You sign in to Spiral once and never paste a key.
How long does it take to set up Texture Transform in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Texture Transform runs?
Texture Transform runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.
What is Texture Transform useful for?
It changes how an object's surface looks. Try it for finish comparisons, furniture concepts, and material studies.
What resolution does Texture Transform produce?
The documentation describes 4K output but does not specify exact pixel dimensions. Check the returned image before planning a particular print size.
Does Texture Transform produce materials for a 3D renderer?
Its documented result is an image with a changed texture. Meshes and separate material maps are not described, so use the result as a visual reference for 3D work.
Should I use Texture Transform results as finished product photos?
Treat them as design concepts first. Compare each result with the original and inspect outlines, labels, and small details before using it publicly.
How should I compare different finishes?
Start each comparison from the same original image. Review the results together and label each finish so the design decision stays clear.
Start using Texture Transform 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


