Apply prompt-based edits to existing portrait
cURL
curl --request POST \ --url https://api.peelapi.com/v1/portraits/edit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form 'image=<string>' \ --form 'prompt=<string>' \ --form image.0='@example-file'
{ "data": { "job_id": "job_123", "links": { "self": "/v1/jobs/job_123", "stream": "/v1/jobs/job_123/stream" } }, "errors": "<unknown>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
5 - 1000
Job accepted
Show child attributes
"job_123"
"/v1/jobs/job_123"
"/v1/jobs/job_123/stream"