AI Image Generation
Let your app create images from a text prompt (avatars, logos, stickers, artwork, product mockups) and edit or enhance your users' photos. No API key, available on every plan.
What is AI Image Generation
A built-in service that turns a written description into an image, or edits a photo the user picks. Ask for "an avatar generator", "a logo maker" or "an app that enhances my photos" in chat and GenMB wires it into your app. It works the same in the live preview and in your deployed app.
How to Use
Generated apps call the SDK that GenMB injects. It resolves to a data URL you can put straight into an image tag:
const src = await window.genmb.ai.generateImage('a friendly fox mascot, flat illustration', {
size: '1024x1024', // or '1024x1536' (portrait), '1536x1024' (landscape)
quality: 'medium', // or 'low'
transparent: false, // true returns a PNG with no background
})
img.src = srcTo edit a photo, pass the file (from a file input) or its URL with an instruction. The result keeps the photo's shape unless you pass a size:
const src = await window.genmb.ai.editImage(file, 'brighten it and remove the background')Limits and Credits
- 1 credit per image, generated or edited, charged to the app owner, only when an image is returned.
- Photos to edit can be PNG, JPEG or WebP up to 10MB; the SDK shrinks larger photos and converts other formats first.
- Per app: 20 images per hour, 100 per day, and 2 at the same time. Over the cap the SDK throws an error with code RATE_LIMITED.
- When the owner is out of credits the SDK throws an error with code INSUFFICIENT_CREDITS.
- Prompts up to 4,000 characters.
FAQs
Who pays for the images?▾
How long does an image take?▾
What happens if a prompt is blocked?▾
Can I get a transparent background?▾
Ready to build?
Create your first app for free, no credit card required.