Start a Garment Recolor job
Recolor one named (or auto-detected) garment consistently across a set of
images. Each input image yields num_variations outputs. Recolor target is a
reference pattern/colour image and/or a free-form instruction (at least one
required). A SAM3 lambda segments the garment, the recolor inpaint engine
inpaints only that masked region, and an equalize pass locks tones across the
set. The render tier (1K/2K/4K) is chosen on the frontend, gated by plan +
input image resolution, and bills per output by tier.
Authorization
token_auth Token-based authentication using access tokens.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://v2.api.piktid.com/garment-recolor" \ -H "Content-Type: application/json" \ -d '{ "project_id": "string", "images": [ "string" ] }'{
"job_id": "string",
"status": "string",
"message": "string",
"total_outputs": 0
}{
"error": "Invalid request",
"detail": [
{
"field": null,
"message": "string",
"position": "query"
}
]
}