Start a new job
Recolor one named (or auto-detected) garment consistently across a set of
images. Each input image yields num_variations outputs. The recolor target
is a reference pattern/colour image, a colour/text instruction, or both (at
least one required). Only the chosen garment is changed; everything else in
the image is preserved, and the recolor stays consistent across the whole
set. The render tier (1K/2K/4K) 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"
}
]
}