Docs
Open console
Edits and enhancements

Edit

Change materials or objects, masked or across the whole image. $0.099 per edit.

v2 preview
Price
$0.099
per edit
Endpoint
POST /v2/edits
kind: edit
Account
Any account
Free and topped-up

Run it

Send it to POST /v2/edits. It answers 202 with a job; poll GET /v2/jobs/{id} for the result. A job that fails is refunded.

curl -X POST https://api.mnml.ai/v2/edits \  -H "Authorization: Bearer $MNML_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "job_id": "10482",    "prompt": "Replace the cladding with dark brick",    "region": {      "box": {        "x": 0.12,        "y": 0.3,        "width": 0.5,        "height": 0.45      }    }  }'

Fields

  • prompt, required: what to change, in plain words.
  • region or mask, optional: the area to change. Leave both out to edit the whole image.
  • engine, optional: whose edit runs, v4.6-ultra by default. The price is the same on every engine; each engine page says where its edits run.
  • mode and references, optional: what the image shows, and images to follow, on engines that take references on an edit.
  • One source: image (a link, base64, or the file itself as multipart), or job_id to work on a finished job’s output without downloading it.
  • webhook_url, optional: where to send this job’s settle event.

Price

$0.099 per edit, whichever engine made the image.

Top-upCovers about
$10101 images
$25252 images
$50505 images
$1001,010 images