Skip to main content
POST
PATINA PBR Maps

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-pbr-maps
required

patina-pbr-maps: Predicts PBR maps from images

Example:

"patina-pbr-maps"

image_url
string
required

Input image public URL

Notes:

  • Source image for PBR maps prediction
  • Must be a publicly accessible URL
Example:

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

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_size
integer | null

Output image size (pixels)

Notes:

  • Optional, specifies output size
  • When not provided, upstream decides based on input image size

Do not pass this parameter unless necessary.

Example:

512

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"