[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Texture Transform](https://spiral.ai/integrations/opencode/texture-transform)

# 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.

|  |  |
| --- | --- |
| Model | Texture Transform |
| Available through | fal |
| Category | Image |
| Price | $0.052 per image. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Texture Transform in opencode

- 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

1. **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.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **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.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Texture Transform**: One request; the result comes back by polling or a webhook.

```bash
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.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Texture Transform tools and prices

- [Texture Transform](https://spiral.ai/tools/fal/fal-ai/image-apps-v2/texture-transform) (fal): $0.052 per image.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| target_texture | cotton, denim, wool, felt, wood, leather, velvet, stone, marble, ceramic, concrete, brick, clay, foam, glass, metal, silk, fabric, crystal, rubber, plastic, lace | marble |  |
| aspect_ratio |  | — | Aspect ratio for 4K output |

## 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.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Texture Transform in other agents

- [Amp](https://spiral.ai/integrations/amp/texture-transform)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/texture-transform)
- [Claude](https://spiral.ai/integrations/claude-desktop/texture-transform)
- [Claude Code](https://spiral.ai/integrations/claude-code/texture-transform)
- [Cline](https://spiral.ai/integrations/cline/texture-transform)
- [Codex](https://spiral.ai/integrations/codex/texture-transform)
- [Cursor](https://spiral.ai/integrations/cursor/texture-transform)
- [Devin](https://spiral.ai/integrations/devin/texture-transform)
- [dots](https://spiral.ai/integrations/dots/texture-transform)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/texture-transform)
- [Gemini](https://spiral.ai/integrations/gemini/texture-transform)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/texture-transform)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/texture-transform)
- [goose](https://spiral.ai/integrations/goose/texture-transform)
- [Grok](https://spiral.ai/integrations/grok/texture-transform)
- [Grok Build](https://spiral.ai/integrations/grok-build/texture-transform)
- [Hermes](https://spiral.ai/integrations/hermes/texture-transform)
- [Instinct](https://spiral.ai/integrations/instinct/texture-transform)
- [Manus](https://spiral.ai/integrations/manus/texture-transform)
- [Muse](https://spiral.ai/integrations/muse/texture-transform)
- [Muse Code](https://spiral.ai/integrations/muse-code/texture-transform)
- [n8n](https://spiral.ai/integrations/n8n/texture-transform)
- [Notion](https://spiral.ai/integrations/notion/texture-transform)
- [OpenClaw](https://spiral.ai/integrations/openclaw/texture-transform)
- [Perplexity](https://spiral.ai/integrations/perplexity/texture-transform)
- [Raycast](https://spiral.ai/integrations/raycast/texture-transform)
- [VS Code](https://spiral.ai/integrations/vscode/texture-transform)
- [Windsurf](https://spiral.ai/integrations/windsurf/texture-transform)
- [Zapier](https://spiral.ai/integrations/zapier/texture-transform)

## More opencode guides

- [Solarize](https://spiral.ai/integrations/opencode/solarize)
- [Topaz Adjust Image](https://spiral.ai/integrations/opencode/topaz-adjust-image)
- [Smart Resize](https://spiral.ai/integrations/opencode/smart-resize)
- [Topaz Bloom 2](https://spiral.ai/integrations/opencode/topaz-bloom-2)
- [Seedream 5.5 Text to Image](https://spiral.ai/integrations/opencode/seedream-5-5-text-to-image)
- [Topaz Denoise Image](https://spiral.ai/integrations/opencode/topaz-denoise-image)

## 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.

