Upload a reference image and generate a reusable style
cURL
curl --request POST \ --url https://api.peelapi.com/v1/portrait-styles \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form 'style_image=<string>' \ --form style_image.0='@example-file'
{ "data": { "job_id": "job_123", "links": { "self": "/v1/jobs/job_123", "stream": "/v1/jobs/job_123/stream" } }, "errors": "<unknown>" }
style_id
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Job accepted
Show child attributes
"job_123"
"/v1/jobs/job_123"
"/v1/jobs/job_123/stream"