images

Inpaint Endpoint

Regenerate ONLY the masked region and leave every other pixel alone.

Different from reference_image_urls on /v1/images/generate: that REGENERATES your subject from a reference, so its logo and colour are a likeness, not a copy. This preserves the unmasked pixels exactly, which is what an advertisement needs when the product carries someone's trademark.

post/v1/images/edit

Request

  • Base URL: https://api.corent.tech (the document declares no server; this is the origin it was published from)
  • URL: https://api.corent.tech/v1/images/edit
  • Auth: HTTP bearer

Headers

Idempotency-Keystring nullable

Request body

image_urlstring required

Public https URL of the image to edit.

mask_urlstring required

Public https URL of a black-and-white mask, same size as the image. WHITE marks the region to regenerate; BLACK is preserved byte for byte. That is the whole point: outside the mask the delivered pixels are your own file, so 'the product was not altered' is provable, not hoped for.

promptstring required

What to generate inside the masked region.

tierstring nullable

Accepted and ignored: inpainting is flat-priced and does not route by tier.

customer_idstring nullable

Optional tag for YOUR end user, so you can attribute spend: 1 to 128 characters from A-Z a-z 0-9 . _ : @ -. Stored on the job, returned on receipts, and filterable with GET /v1/account/usage?customer_id=...

Response

Successful Response

idstring required
statusstring required

Changes

No recorded changes to this operation across all 1 revision of this API.