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

Grok · Image

How to Use PATINA Extract Material in Grok

PATINA Extract Material turns a chosen surface in a photo into a seamless texture with PBR maps for 3D rendering. Unlike PATINA Image to Maps, it isolates and flattens the surface before predicting maps.

Prompts to try with PATINA Extract Material in Grok

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

Use PATINA Extract Material on this kitchen photo. Extract the pale stone countertop, excluding the sink, faucet, dishes, and backsplash, and return the texture with all five material maps.

PATINA Extract MaterialGrok
Try asking
  • Use PATINA Extract Material on this chair photo. Extract the woven upholstery from the seat cushion, excluding the wooden frame and background.

  • Use PATINA Extract Material on this building photo. Extract the red brick wall, excluding the windows, drainpipe, and climbing plants, for a repeating wall material.

  • Use PATINA Extract Material on this floor photo. Extract only the oak boards, excluding the rug and furniture, and use a lower transformation strength to change the surface less.

  • Use PATINA Extract Material on this concrete wall photo. Exclude the door and signage, then show four copies of the extracted texture in a square so I can inspect the joins.

How to set up PATINA Extract Material in Grok

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

Use the Grok connector

  1. Add a custom connector

    In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

    https://api.spiral.ai/mcp
  2. Sign in to Spiral and approve

    Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

  3. Check that it is connected

    Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

Use the Spiral skill

  1. Send Grok 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 PATINA Extract Material

    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/patina/material/extract",
        "input": {
          "prompt": "the wall",
          "image_url": "https://v3b.fal.media/files/b/0a95600b/IVhCXWN-sE1xj1SpYAGpL_31b6f371-90ae-4835-851e-23cd809cfb86.png"
        }
      }'

Then paste one of the prompts above: Grok finds PATINA Extract Material on Spiral, shows the price and runs it.

PATINA Extract Material providers and prices

Spiral runs PATINA Extract Material through fal. Open a card for today's price, with every fee included.

falImage
PATINA · Extract Material
fal-ai/patina/material/extract

Settings you can ask for

PATINA Extract Material works from your prompt and image URL. Ask Grok for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Number of inference steps1 to 88

Number of denoising steps for texture generation.

Seeda whole number

Random seed for reproducible generation.

Number of images1 to 41

Number of texture images to generate.

Enable prompt expansionon or offon

Expand prompt with an LLM for richer detail. Adds ~0.0025 credits.

Tiling modeboth, horizontal, or verticalboth

Tiling direction: 'both' (omnidirectional), 'horizontal', or 'vertical'.

Tile size32 to 256128

Tile size in latent space. Automatically capped to the generated image dimensions on tiled axes (64 = 512px, 128 = 1024px).

Tile stride16 to 12864

Tile stride in latent space. Automatically capped to half the effective tile size.

Strengtha number up to 10.6

How much to transform the input image. Only used when image_url is provided.

Upscale factor0, 2, or 40

Upscale factor for predicted PBR maps via SeedVR seamless upscaling. 0 = no upscaling, 2 = 2× resolution, 4 = 4× resolution. The base texture image is not upscaled.

Output formatjpeg, png, or webppng

Output image format for textures and PBR maps.

Every API field of PATINA · Extract Material is on its tool page: open its card above.

What can you do with PATINA Extract Material in Grok?

Turn a surface in a shared photo into a material for a 3D scene. A chat assistant can help you identify exactly what to extract and compare the result with the reference.

Brick walls for game environments

Extract brickwork from a building photo for a repeating wall material. Specify the masonry and exclude windows, signs, and vegetation.

Floor materials for interior scenes

Turn a room photo's wooden floor into a reusable surface for an interior visualization. Exclude furniture, rugs, and baseboards.

Fabric for furniture models

Extract upholstery from a chair photo for a furniture material study. Identify the fabric panel and exclude the frame and surrounding room.

Location references for digital sets

Build material studies from scouting photos by extracting one wall or floor surface at a time.

Stone finishes for architectural previews

Extract a photographed stone countertop or wall finish for a 3D preview. Keep objects resting on the surface out of the extraction prompt.

Concrete surfaces for environment art

Use a concrete wall photo as the source for a repeating material. Inspect a 2x2 repeat before applying it across a large surface.

Questions about PATINA Extract Material in Grok

Can Grok use PATINA Extract Material?

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run PATINA Extract Material like any built-in tool.

How much does PATINA Extract Material cost in Grok?

$0.013 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 Grok plan is separate.

Do I need a fal account to use PATINA Extract Material in Grok?

No. Spiral runs PATINA Extract Material on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up PATINA Extract Material in Grok?

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

Does Grok wait while PATINA Extract Material runs?

PATINA Extract Material runs in the background. Grok starts the run, checks on it and gives you the image when it's ready.

What is PATINA Extract Material best for?

Use it when a reference photo contains a surface you want to reuse in a 3D scene. It isolates that surface and turns it into a seamless texture with predicted material maps.

Does it preserve the original photo unchanged?

The extraction process changes the image to flatten and tile the selected surface. PATINA Image to Maps is the documented choice when you already have a finished texture and want map prediction without modifying it.

What does PATINA Extract Material return?

It returns a tileable texture plus predicted base color, normal, roughness, metalness, and height maps.

How should I describe the surface to extract?

Identify the surface precisely and name nearby objects to exclude. For example: the pale stone countertop, excluding the bowl, faucet, and backsplash.

Can PATINA Extract Material produce 8K textures?

The documented upscaling path can produce PBR maps up to 8K from a 2048-pixel texture. The base texture itself is not upscaled.

Get started

Start using PATINA Extract Material in Grok

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Grok:

Set up Grok

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