Editorial image generation API
Give the story a visual direction.
A publishing tool can offer a useful image starting point before a writer leaves the editor. Magnt turns an art direction prompt into an image for a draft article, newsletter, or landing page.
Create a Magnt API key →Start with the right request.
Translate the article’s theme into a scene. A story about a quiet morning routine might call for a sunlit table, while a guide to organisation could use a carefully arranged workspace. Avoid treating a generated scene as photographic evidence of a real event. Use accurate captions where that distinction matters.
- Use 16:9 for a wide hero composition.
- Describe the theme visually instead of pasting the whole article.
- Write the caption and alternative text after reviewing the actual image.
A prompt to build from
A realistic editorial photograph of an open book and a glass of water on a linen-covered table by a large window. Quiet early morning light, soft shadows and warm neutral tones. Landscape composition with generous empty space on the left. No visible text or people.
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. This example generates from text and needs no input image.
{
"model": "magnt-image-1",
"prompt": "A realistic editorial photograph of an open book and a glass of water on a linen-covered table by a large window. Quiet early morning light, soft shadows and warm neutral tones. Landscape composition with generous empty space on the left. No visible text or people.",
"aspect_ratio": "16:9",
"resolution": "1K",
"response_format": "image"
}Read the complete integration guide →Review the details that matter.
Check that the visual supports the story without suggesting facts the article cannot establish. Then test its crop at desktop and mobile widths. If the headline sits over the image, check contrast against the busiest part of the composition rather than relying on the image’s average brightness.
Make it part of your app.
Return the generated image to the editor as a draft asset with an accept or discard choice. If the publication needs to serve the image later, store the accepted result in the publication’s own media system. Magnt does not create a hosted article asset or retain the original prompt as an editable history.
Will the API write captions or alternative text?
The image endpoint returns image data. Captions, alternative text and publishing metadata belong in your editorial workflow and should describe the reviewed result.
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.