falImage to imageComing soon
fal-ai/patina/material/extract
fal-ai/patina/material/extract is an image to image tool from fal that runs in the background and returns images. Coming soon: listed with its price, not yet open to runs.
This tool is listed but not yet available to run.
Priced by usagePricing
$0.013 per megapixel. Each image_size preset counts as 1 MP, and a custom width × height rounds up to whole megapixels. Billed on num_images, default 1. The final charge comes from usage.
Limits
- Runs
- In the background
- Returns
- image
- Longest queue wait
- 3600s
- Run deadline
- 1800s
- Largest inline input
- 1024 KB
- Largest input file
- 500 MB
- Largest output
- 4768 MB
- Outputs per run
- 16
Input
| Field | Kind | Default | Description |
|---|---|---|---|
prompt required | text | — | Describe which texture to extract from the image. |
image_size | JSON | square_hd | Output texture dimensions in pixels. |
num_inference_steps | number (whole) 1 to 8 | 8 | Number of denoising steps for texture generation. |
seed | number (whole) | — | Random seed for reproducible generation. |
num_images | number (whole) 1 to 4 | 1 | Number of texture images to generate. |
enable_prompt_expansion | true or false | true | Expand prompt with an LLM for richer detail. Adds ~0.0025 credits. |
tiling_mode | one of both, horizontal, vertical | both | Tiling direction: 'both' (omnidirectional), 'horizontal', or 'vertical'. |
tile_size | number (whole) 32 to 256 | 128 | Tile size in latent space. Automatically capped to the generated image dimensions on tiled axes (64 = 512px, 128 = 1024px). |
tile_stride | number (whole) 16 to 128 | 64 | Tile stride in latent space. Automatically capped to half the effective tile size. |
image_url required | URL or file | — | URL of the image to extract a texture from. |
strength | number … to 1 | 0.6 | How much to transform the input image. Only used when image_url is provided. |
maps | list | ["basecolor","normal","roughness","metalness","height"] | Which PBR maps to predict. Deselect all to skip PBR estimation entirely. Defaults to all five. |
upscale_factor | one of 0, 2, 4 | 0 | 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_format | one of jpeg, png, webp | png | Output image format for textures and PBR maps. |
Same request in code
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"
}
}'