Skip to main content
POST
/
api
/
v1
/
{workspaceID}
/
playground
/
images
/
edits
Playground image edit
curl --request POST \
  --url https://ai.liara.ir/api/v1/{workspaceID}/playground/images/edits \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'image=<string>' \
  --form 'prompt=<string>' \
  --form 'model=<string>' \
  --form mask='@example-file' \
  --form image.items='@example-file'
{}

Authorizations

Authorization
string
header
required

Enter the token with the Bearer: prefix, e.g. "Bearer abcde12345"

Path Parameters

workspaceID
string
required

The workspace ID

Pattern: ^[a-f0-9]{24}$

Body

multipart/form-data
image
file[]
prompt
string
model
string
mask
file

Response

Successful response

The response is of type object.