The Magnt Image API
Image generation.
Part of your product.
Let your users turn an idea into an image, or a rough photo into a better one. One Magnt key connects your app to realistic image generation and editing.
1. Create your Magnt key
Sign in, name a key and copy its secret. Manage and revoke keys from the same website.
2. Describe the image
Send a prompt to generate something new, or attach photos and describe the edit. Choose the composition your app needs.
3. Put the result to work
Receive WebP bytes or base64 JSON. Preview, download or save the accepted result in your own application.
Build the image workflow your users need.
Start with a specific task. Each guide includes a prompt, composition choices and what to check before a result reaches your users.
Product photography API
Give every product a setting that fits.
Headshot image editing API
A better portrait, built into your product.
Social media image generation API
Turn the post idea into the picture.
Editorial image generation API
Give the story a visual direction.
Background editing API
Change the setting. Keep the subject in focus.
Photo enhancement API
Make a rough photo worth keeping.
Your app decides what to keep.
Every request stands on its own. Magnt uses the prompt and photos you send with that request, returns the image, and keeps no photo history. Your application decides what happens to the result.
Access is managed separately from your photos. Magnt stores key hashes and account usage so you can revoke keys and track your allowance.
What the API supports
- Model
- magnt-image-1
- Inputs
- A prompt and up to 3 PNG, JPEG or WebP images
- Output
- One WebP image, as bytes or base64 JSON
- Composition
- Six aspect ratios, with 1K or 2K resolution
- Request limit
- 4 MiB total; 2 MiB per decoded input image
- Account limit
- 30 generation requests per hour
From the playground to your code.
Generate an image with JavaScript and the Magnt API
Call the Magnt Image API from Node.js, authenticate with your own Magnt key, handle errors, and save the returned WebP image. Includes a complete fetch example.
Call an image generation API from Python
Generate a WebP image with Python and the Magnt API using the standard library. Follow the request, authentication, response handling, and error checks.
Send a photo to the Magnt image editing API
Learn how to send JPEG, PNG and WebP photos as inline inputs to the Magnt image editing API, with MIME checks, request limits and self-contained edit prompts.
Image API responses: binary WebP or base64 JSON?
Choose the right Magnt API response format for your integration. Compare direct WebP downloads with base64 JSON, including metadata, errors and size limits.
Start with your existing Magnt allowance.
API generations share the image allowance in your Magnt account. Each successful image uses one plan generation or two legacy credits. Creating a key does not add free generations, and there is no separate API subscription today.
See plans and allowances →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.