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.

Click to pause
No subscription
No credit card required

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

FLUX-2 Klein Text → Image

Fast, high-quality photorealistic images

from $0.00141/img

Z-Image Text → Image

Alternative model for stylized images

from $0.00248/img

Prompt Enhancement AI Boost

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 Upscaler 2×–4×

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

Qwen Image Edit Img → Img

Instruction-based editing, 256–1024px, up to 50 steps

from $0.002/edit

FLUX-2 Klein Img → Img

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

Background Removal Instant

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

E-Commerce Retail

Product photos, catalog backgrounds, listing images

SaaS & Apps B2B

In-app image editing, avatar generators, design tools

Media & Publishing Creator

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.

Full pipeline from ~$0.01 per image
Four API calls, fully automatable
Webhook delivery — no polling needed

Frequently Asked Questions

deAPI offers a full image editing pipeline: FLUX-2 Klein and Z-Image for text-to-image generation, FLUX-2 Klein and Qwen Image Edit for image-to-image editing, dedicated models for image upscaling (up to 4×), and background removal. All accessible through a single unified API.
The complete pipeline is extremely affordable: image generation from $0.00141 (FLUX-2 Klein), image-to-image editing from $0.002 (Qwen Image Edit) or $0.00659 (FLUX-2 Klein), upscaling from $0.003, and background removal from $0.003. A full generate-edit-upscale-remove-bg workflow costs roughly $0.01.
Qwen Image Edit is ideal for precise edits — it uses a text instruction to modify specific parts of an image (e.g., “change the shirt to red”). Supports 256–1024px and up to 50 inference steps for maximum quality. FLUX-2 Klein offers img2img with style transfer and supports up to 1536px and multi-image compositing (up to 3 input images). Choose Qwen for targeted edits, FLUX-2 Klein for creative transformations.
Yes. Each endpoint returns a URL to the result image, which you can pass directly to the next step. For example: generate with /txt2img, edit with /img2img, upscale with /img-upscale, and remove background with /img-rmbg. Automate the full chain with webhooks.
FLUX-2 Klein supports 256–1536px (step 16) for both text-to-image and image-to-image. Qwen Image Edit supports 256–1024px. Image upscaling can increase resolution by 2× to 4×. Background removal works with any input size.
Yes. deAPI’s async job pattern with webhook delivery is built for production workloads. Submit hundreds of editing jobs simultaneously, receive results via webhook when ready. The decentralized GPU infrastructure scales automatically with demand — no capacity planning needed.
Unlike SaaS platforms that charge monthly subscriptions, deAPI is pay-per-use with no subscription. You get full API access to open-source models, complete control over every parameter, and pay only for what you use. Decentralized GPU infrastructure keeps costs up to 20× lower than centralized providers.

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
No subscription
No credit card required