Dispatch a complementary-garment-generator workflow
POST
/v1/complementary-garment-generator
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","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", "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 Body required
Section titled “Request Body required ” Media type application/json
ComplementaryGarmentGeneratorRequest
POST /v1/complementary-garment-generator — a styling garment spec.
object
display_name
Display Name
string
garment_category_public_id
required
Garment Category Public Id
ULID of the garment category driving compatibility.
string
color
required
Color
string
material
required
Material
string
pattern
required
Pattern
string
metadata
Metadata
object
key
additional properties
any
Responses
Section titled “ Responses ”Successful Response
Media type application/json
WorkflowAcceptedResponse
Returned synchronously from any POST /v1/{name} (202).
object
request_id
required
Request Id
26-char ULID — correlates with the row in request_logs.
string
status
JobStatus
Studio’s job status at submit time. Almost always NOT_STARTED in this 202.
string
credits_cost
required
Credits Cost
Credits deducted from the calling client. Refunded automatically on any failure path.
integer
Example
{ "status": "NOT_STARTED"}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}