Skip to main content
POST
PATINA PBR Maps

授权

Authorization
string
header
必填

所有接口均需要使用Bearer Token进行认证

使用时在请求头中添加:

Authorization: Bearer YOUR_API_KEY

请求体

application/json
model
string
默认值:patina-pbr-maps
必填

patina-pbr-maps:从图片预测 PBR maps

示例:

"patina-pbr-maps"

image_url
string
必填

输入图片的公开 URL

说明:

  • 用于预测 PBR maps 的源图片
  • 必须为公开可访问的 URL
示例:

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

maps
string[]
必填

要生成的 PBR map 类型列表

可选值:

  • basecolor — 基础色贴图
  • normal — 法线贴图
  • roughness — 粗糙度贴图
  • metalness — 金属度贴图
  • height — 高度贴图
示例:
image_size
integer | null

输出图像边长(像素)

说明:

  • 可选,用于指定输出尺寸
  • 未提供时由上游根据输入图片尺寸决定

非必须不要传这个参数。

示例:

512

响应

任务创建成功

created
integer

任务创建时间戳

示例:

1757165031

id
string

任务ID

示例:

"task-unified-1757165031-uyujaw3d"

model
string

实际使用的模型名称

object
enum<string>

任务的具体类型

可用选项:
image.generation.task
progress
integer

任务进度百分比 (0-100)

必填范围: 0 <= x <= 100
示例:

0

status
enum<string>

任务状态

可用选项:
pending,
processing,
completed,
failed
示例:

"pending"

task_info
object

异步任务信息

type
enum<string>

任务的输出类型

可用选项:
image
示例:

"image"