REST API documentation
Call any of ImageSuite's AI image processing endpoints from your own apps. One Pro subscription ($9/mo) includes both web access and API access.
Authentication
Get your API key from the dashboard. Pass it as a Bearer token in every request:
Authorization: Bearer imgsk_xxxxxxxxxxxxxxxxxxxxxKeys start with imgsk_ followed by 32 random characters.
Quick start
A complete example — generate an image from a prompt:
curl -X POST https://imagesuite.io/api/ai/generate \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "minimalist mountain landscape at sunset",
"aspectRatio": "16:9",
"numOutputs": 1
}'Endpoints
/api/upscaleAI upscale via Real-ESRGAN. Accepts 2×, 4×, or 8× scale.
{
"imageDataUrl": "data:image/png;base64,...",
"scale": 4,
"faceEnhance": false
}{ "url": "https://replicate.delivery/.../output.png" }/api/background-removalRemove background using BiRefNet. Returns transparent PNG.
{ "imageDataUrl": "data:image/png;base64,..." }{ "url": "https://replicate.delivery/.../output.png" }/api/ai/generateGenerate images from a text prompt using FLUX Schnell.
{
"prompt": "a cat astronaut floating in space",
"aspectRatio": "1:1",
"numOutputs": 2,
"outputFormat": "webp"
}{ "urls": [
"https://replicate.delivery/.../1.webp",
"https://replicate.delivery/.../2.webp"
] }/api/ai/restoreRestore old/blurry photos with face detail recovery (GFPGAN).
{
"imageDataUrl": "data:image/png;base64,...",
"scale": 2
}{ "url": "https://replicate.delivery/.../restored.png" }/api/ai/cartoonifyTurn a photo into 8 styles (3D, anime, pixel art, clay, etc.).
{
"imageDataUrl": "data:image/png;base64,...",
"style": "3D",
"prompt": "a smiling person"
}{ "url": "https://replicate.delivery/.../cartoon.png" }/api/ai/inpaintRemove objects via mask. White pixels in the mask = remove.
{
"imageDataUrl": "data:image/png;base64,...",
"maskDataUrl": "data:image/png;base64,..."
}{ "url": "https://replicate.delivery/.../inpainted.png" }/api/ai/replace-backgroundReplace the background with an AI-generated scene from a prompt.
{
"imageDataUrl": "data:image/png;base64,...",
"prompt": "a beach at sunset, golden hour"
}{ "url": "https://replicate.delivery/.../new-bg.webp" }Errors & rate limits
401— missing or invalid API key402— Pro subscription required (or expired)400— invalid input (missing prompt, malformed data URL, etc.)500/502— upstream model error503— service temporarily unconfigured
No published rate limits today, but please be reasonable. Heavy abuse may result in key revocation.
Get an API key
Pro subscribers get unlimited web access and an API key for the same $9/mo. No separate developer plan to worry about.