Skip to main content
POST
/
v1
/
portraits
/
edit
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>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
image
required
prompt
string
required
Required string length: 5 - 1000

Response

Job accepted

data
object
required
errors
unknown