Submit a Hair color try-on Job
Draft color try-on. Request names one source image Asset and a two-stop color
gradient; the server finds the hair in the photo and recolours only that. A
caller with its own segmentation may add one hair_mask Asset instead: it must
match source dimensions, zero pixels mean background and nonzero pixels mean
hair. No haircut style, length or shape transfer is performed. Every input is
snapshotted into the job. Idempotency semantics match Makeup try-on.
Authentication
API key for one environment of your account. Keep server-side; never expose in browser clients.
Headers
Request
Two-stop palette mapped against source hair luminance.
Response headers
The state of each policy in RateLimit-Policy: "submit";r=59;t=1, r remaining and t seconds until whole again.
Quota of the most restrictive policy (draft-07 form).
The limits this request consumed, as an RFC 8941 list (draft-ietf-httpapi-ratelimit-headers): "submit";q=60;w=60. Policies are submit, upload and daily. Sent only while rate-limit headers are on.
Remaining quota of the most restrictive policy (draft-07 form).
Delay before retrying, expressed as delta-seconds
Response
What a job does: the operation’s authorization scope.
An operation is not its output’s type: OPERATION_OUTPUT_TYPE is the one place
the two meet.