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.
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"
}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.