images

Edit an existing image

Transform an existing image with a text prompt. Pass the source image as a public URL in image_url (a single URL, or an array of URLs for models that accept multiple reference images). Credits vary by model, from about 6 to 70 per edit.

post/images/edits

Request

  • Base URL
    https://api.krater.ai/v1
  • Auth
    HTTP bearer

Request body

promptstring required

How to transform the image.

modelstring

Image model identifier.

strengthnumber

How strongly to transform the source image.

sizestring

Output size or aspect ratio, model dependent.

resolutionstring

Output resolution for models that support it.

qualitystring

Quality setting for models that support it.

stylestring

Style preset for models that support it.

versionstring

Specific model version to pin.

Example request

{
  "model": "flux-2-flex"
}

Response

Edited image URLs.

createdinteger required

Unix timestamp.

Changes

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