Photo enhancement API

Make a rough photo worth keeping.

Give your users a focused way to improve a photo they already have. Ask what needs attention, attach the source, and return a version they can compare with the original.

Create a Magnt API key →

Start with the right request.

Start with one clear objective: lift a dim subject, soften an unpleasant colour cast, or simplify a distracting setting. A narrow request makes review easier. If the source is heavily blurred or missing detail, generation may invent information rather than recover it, so avoid promising factual restoration.

  • Ask for a specific correction rather than simply ‘make it better’.
  • Choose the closest supported ratio to the source composition.
  • Keep the original available so the user can compare and reject changes.

A prompt to build from

Improve the lighting and colour balance of the attached photo. Lift the dim subject while keeping the natural contrast and original composition. Preserve the visible objects and textures. Avoid a glossy HDR look, excessive sharpening or added details.

Example prompt, not a promise of exact results. Review the generated image before publishing.

Send it to the Image API.

POST this JSON to /api/v1/images/generations with your Magnt key in the Authorization header. Replace the image placeholder with your actual JPEG bytes encoded as base64.

{
  "model": "magnt-image-1",
  "prompt": "Improve the lighting and colour balance of the attached photo. Lift the dim subject while keeping the natural contrast and original composition. Preserve the visible objects and textures. Avoid a glossy HDR look, excessive sharpening or added details.",
  "images": [
    "data:image/jpeg;base64,YOUR_IMAGE_BASE64"
  ],
  "aspect_ratio": "3:2",
  "resolution": "1K",
  "response_format": "image"
}
Read the complete integration guide →

Review the details that matter.

Compare colour, detail and composition before checking whether the result looks more polished. Inspect important objects for unwanted changes. The API is a generative editing workflow, not a lossless filter, forensic restoration service or dedicated super-resolution endpoint. The original remains the reference for what was actually photographed.

Make it part of your app.

Send one request when the user confirms the edit. Disable duplicate submissions while it runs and show the returned image as a preview. Magnt does not automatically retry failures or keep an enhancement history. Your application controls whether an accepted result is downloaded or stored for later use.

Can I retrieve an old enhancement from Magnt later?

No. The response contains the result, and the API does not keep an image history. Save accepted outputs in your own application if your users need them later.

Explore related workflows

Your next feature starts with one image.

Create a Magnt key, try your prompt, and bring the result into your app. Each image uses one plan generation or two legacy credits.