Dispatch a complementary-garment-generator workflow
const url = 'https://example.com/v1/complementary-garment-generator';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"image_model":"example","eval_enabled":true,"resolution":"example","aspect_ratio":"example","seed":1,"on_technical_failure":"example","display_name":"","garment_category_public_id":"example","authoring":{"primary_colour":"example","material":"example","pattern":"solid","form":{"preset":"example","custom_text":"example"},"length":{"preset":"example","custom_text":"example"},"distinctive_details":[{"preset":"example","custom_text":"example"}],"creative_direction":"example"},"color":"example","material":"example","pattern":"example","fit":"slim","length":"example","metadata":{},"pilot_brand":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/complementary-garment-generator \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "image_model": "example", "eval_enabled": true, "resolution": "example", "aspect_ratio": "example", "seed": 1, "on_technical_failure": "example", "display_name": "", "garment_category_public_id": "example", "authoring": { "primary_colour": "example", "material": "example", "pattern": "solid", "form": { "preset": "example", "custom_text": "example" }, "length": { "preset": "example", "custom_text": "example" }, "distinctive_details": [ { "preset": "example", "custom_text": "example" } ], "creative_direction": "example" }, "color": "example", "material": "example", "pattern": "example", "fit": "slim", "length": "example", "metadata": {}, "pilot_brand": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”POST /v1/complementary-garment-generator — one styling item.
V3 is canonical. V2 nested authoring and historical flat fields remain mutually exclusive compatibility branches for existing callers.
object
ULID of the garment category driving compatibility.
Compact complementary-item input shared by Admin and Studio.
object
Gateway mirror of one V3 preset-or-custom value.
Gateway mirror of one V3 preset-or-custom value.
Gateway mirror of Studio’s typed complementary-item authoring brief.
object
object
Responses
Section titled “Responses”Successful Response
Returned synchronously from any POST /v1/{name} (202).
object
26-char ULID — correlates with the row in credit_operations.
Studio’s job status at submit time. Almost always NOT_STARTED in this 202.
Credits deducted from the calling client. Refunded automatically on any failure path.
Example
{ "status": "NOT_STARTED"}Validation Error
object
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}