POST
/
v0
/
assistant
/
photo
/
edit
curl --request POST \
  --url 'https://api.unify.ai/v0/assistant/photo/edit' \
  --header "Authorization: Bearer $UNIFY_KEY" \
  --header 'Content-Type: multipart/form-data' \
  --form 'input_image_file=@/path/to/your/file.ext'
{
    "info": "string"
}

Edits a photo using a text prompt and an input image (URL or file) via Replicate, and returns the new image URL. This action will deduct credits.

Authorizations

Authorization
string
required

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

Body

prompt
string
required
input_image_url
string | null
input_image_file
string | null
aspect_ratio
string
default:"match_input_image"
output_format
string
default:"jpg"
safety_tolerance
number
default:"2.0"
curl --request POST \
  --url 'https://api.unify.ai/v0/assistant/photo/edit' \
  --header "Authorization: Bearer $UNIFY_KEY" \
  --header 'Content-Type: multipart/form-data' \
  --form 'input_image_file=@/path/to/your/file.ext'
{
    "info": "string"
}