AI Image Editor API
$5 Free Credits
Build complete AI image editing pipelines with one API: text-to-image (FLUX-2 Klein), image-to-image editing (Qwen Image Edit, FLUX-2 Klein), upscaling, and background removal. Full pipeline from ~$0.01, powered by decentralized GPUs at 20× lower cost.
Why deAPI for
AI image editing?
Build a complete image editing pipeline without stitching together expensive SaaS tools. deAPI gives you direct API access to open-source AI models — image generation, editing, upscaling, and background removal — all on decentralized GPU infrastructure at a fraction of the cost. See the full list of models.
4-Step Pipeline
Generate, edit, upscale, and remove backgrounds — chain four API calls into one automated workflow.
AI-Powered Editing
Qwen Image Edit for precise modifications, FLUX-2 Klein for creative transformations — two img2img models for any editing need.
Low Cost
Full editing pipeline from ~$0.01. Decentralized GPUs keep image editing affordable at any scale.
Open-Source Models
No vendor lock-in. FLUX, Qwen, and dedicated upscale/rmbg models — swap anytime as better ones emerge.
Four Steps to a Perfect Image
Each step is a separate API call — compose them into any workflow
Step 1: Generate an Image
What it does
Create any image from a text description. Photorealistic photos, illustrations, product mockups, marketing visuals — describe it and the AI generates it. FLUX-2 Klein delivers high-quality results in seconds.
API workflow
Single POST to /txt2img
with your prompt, model, and dimensions. Receive a download URL with the generated image.
Use prompt enhancement for optimized results automatically.
Available Models
Fast, high-quality photorealistic images
from $0.00141/img
Alternative model for stylized images
from $0.00248/img
Optimize prompts for better image generation
Step 2: Upscale the Image
What it does
Increase image resolution by 2× to 4× while preserving and enhancing details. AI upscaling adds realistic texture, sharpens edges, and removes artifacts — turning a 512px image into a crisp 2048px result.
API workflow
POST to /img-upscale
with the image URL and scale factor (2× or 4×).
Receive a high-resolution version of the image. Works with any image source.
Available Models
AI-powered resolution enhancement with detail preservation
from $0.003/image
Step 3: Edit with AI
What it does
Modify existing images using AI. Two approaches: Qwen Image Edit for instruction-based editing (“change the sky to sunset”) and FLUX-2 Klein for style transfer and creative transformations with multi-image compositing support.
API workflow
POST to /img2img
with the source image URL, editing prompt, and model choice.
Qwen uses text instructions for targeted edits; FLUX-2 Klein supports up to 3 input images
for compositing and style transfer.
Available Models
Instruction-based editing, 256–1024px, up to 50 steps
from $0.002/edit
Style transfer, up to 1536px, multi-image compositing (3 inputs)
from $0.00659/edit
Step 4: Remove Background
What it does
Instantly remove backgrounds from any image with pixel-perfect accuracy. Handles complex edges like hair, fur, and transparent objects. Output a clean PNG with transparent background, ready for compositing.
API workflow
POST to /img-rmbg
with the image URL. Receive a transparent PNG.
No configuration needed — the model automatically detects and removes the background.
Available Models
Pixel-perfect background removal with transparency
from $0.003/image
Who Uses AI Image Editing?
E-Commerce & Product
Generate product photos, remove backgrounds for catalogs, upscale images for high-resolution listings. Automate thousands of product images with consistent quality.
Marketing & Content
Create social media visuals, ad creatives, and marketing assets at scale. Edit existing images with AI, generate variations, and produce campaign-ready content without a design team.
Industries
Product photos, catalog backgrounds, listing images
In-app image editing, avatar generators, design tools
Editorial images, social media, blog illustrations
See the Image Editing Pipeline in Action
Watch how deAPI chains text-to-image, editing, upscaling, and background removal into a single pipeline. From prompt to production-ready image in seconds.
Frequently Asked Questions
/txt2img, edit with /img2img, upscale with /img-upscale, and remove background with /img-rmbg. Automate the full chain with webhooks.
Start editing images with AI
in under a minute
Four API endpoints. One complete editing pipeline. Start with $5 free credits — no subscription, no credit card.
Claim $5 Credits