Skip to main content
POST

Authorizations

Authorization
string
header
required

All APIs require Bearer Token authentication

Add to request header:

Authorization: Bearer YOUR_API_KEY

Body

application/json
model
string
default:patina-material
required

patina-material: Generates tileable textures and PBR maps

Example:

"patina-material"

prompt
string
required

Material description prompt

Notes:

  • Describe the desired material appearance
  • Supports English and Chinese
Example:

"Weathered red brick wall with moss"

maps
string[]
required

PBR map types to generate

Options:

  • basecolor — Base color map
  • normal — Normal map
  • roughness — Roughness map
  • metalness — Metalness map
  • height — Height map
Example:
image_url
string | null

Reference image public URL

Notes:

  • Optional, used as reference for material generation
  • When omitted, pure text-to-material mode
Example:

"https://example.com/brick-photo.jpg"

mask_url
string | null

Mask image public URL

Notes:

  • Used with image_url to specify local area for material generation
Example:

"https://example.com/mask.png"

image_size
integer
default:1024

Output image size (pixels)

Notes:

  • Controls the size of generated textures and PBR maps
Example:

512

tiling_mode
string | null

Tiling mode

Options:

  • none — No tiling
  • x — Horizontal tiling
  • y — Vertical tiling
  • xy — Bidirectional tiling

Do not pass this parameter unless necessary.

Example:

"xy"

upscale_factor
integer | null

Upscale factor

Notes:

  • Upscales the output material
  • Enabling increases billing

Do not pass this parameter unless necessary.

Example:

2

Response

Task created successfully

created
integer

Task creation timestamp

Example:

1757165031

id
string

Task ID

Example:

"task-unified-1757165031-uyujaw3d"

model
string

Actual model name used

object
enum<string>

Specific task type

Available options:
image.generation.task
progress
integer

Task progress percentage (0-100)

Required range: 0 <= x <= 100
Example:

0

status
enum<string>

Task status

Available options:
pending,
processing,
completed,
failed
Example:

"pending"

task_info
object

Async task information

type
enum<string>

Task output type

Available options:
image
Example:

"image"