Start a new job
This endpoint takes flat/article images (SKUs) and generates Product Detail Page images with the specified model identity wearing the articles.
Unlike model_swap (1 input → 1 output), flat_2_model combines ALL input images and generates multiple outputs based on the instructions list:
- N input SKU images + M instructions → M output images
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/flat-2-model" \ -H "Content-Type: application/json" \ -d '{ "identity_code": "string", "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"
}
]
}