Models/AI Image Editing API

AI Image Editing API — Instruction Edits, Masking, and Reference Inputs

Live70+ image-editing models

Muapi brings instruction-based editing, masked inpainting, subject references, and image reframing into one API. Send an image URL, prompt, mask, or reference list depending on the model, then use the same submit-and-poll flow.

8 of 8 models
GoogleMulti-Image

Nano Banana Pro Edit

High-fidelity composited edits from multiple reference images, a prompt, and explicit resolution control.

Image in, image out
$0.12/generation
Try Model
Black Forest LabsMulti-Image

FLUX Kontext Pro

Instruction editing from multiple reference images to combine, restyle, or merge elements.

Image in, image out
$0.03/generation
Try Model
AlibabaMulti-Image

Qwen Image Edit Plus

Multi-image instruction editing with explicit width and height output control.

Image in, image out
$0.03/generation
Try Model
OpenAIMasked

GPT-4o Edit

Uses mask_image_url to constrain an edit to a specific region.

Image in, image out
$0.04/generation
Try Model
MuapiMasked

AI Object Eraser

Mask-driven object removal that fills the selected region without requiring a text prompt.

Image in, image out
$0.05/generation
Try Model
MiniMaxReference

MiniMax Subject Reference

Keeps a subject consistent across a new prompt-driven scene from a reference image.

Image in, image out
$0.01/generation
Try Model
IdeogramReference

Ideogram Character

Character-consistency editing for recognizable subjects across generated scenes.

Image in, image out
$0.15/generation
Try Model
IdeogramReframe

Ideogram v3 Reframe

Outpaints an image to a target aspect ratio without changing the original content.

Image in, image out
$0.15/generation
Try Model

What Is an AI Image Editing API?

An AI image editing API accepts an existing image and changes it according to a prompt, mask, or reference image. Unlike a text-to-image endpoint, the source image anchors the composition, subject, or region that should remain unchanged.

Muapi exposes 70+ image-editing models through one request format and one credit balance. Choose instruction editing for natural-language changes, masked editing for precise local work, reference editing for subject consistency, or reframing for a new canvas shape.

Key Capabilities

Instruction-Based Editing

Describe an object replacement, style change, lighting adjustment, or scene transformation in natural language.

Masked Inpainting

Pass a mask_image_url when only a defined region should change and the rest of the composition must stay fixed.

Multi-Image Composition

Use images_list or model-specific reference fields to combine products, people, or styles from multiple inputs.

Subject Consistency

Reference models preserve a character or product identity while generating a new scene from a prompt.

Reframing and Outpainting

Expand an image to a new aspect ratio without simply cropping the original subject.

Pay Per Generation

There is no subscription or minimum commitment; each edit is charged according to its selected model.

Image Editing Model Comparison

ModelModePriceBest For
Nano Banana Pro EditMulti-Image$0.12/generationHigh-fidelity compositing
GPT-4o EditMasked$0.04/generationTargeted local edits
MiniMax Subject ReferenceReference$0.01/generationConsistent subjects
Ideogram v3 ReframeReframe$0.15/generationAspect-ratio expansion

The exact input field names differ by model. Use the Playground schema for the selected model before sending a production request.

How to Call an Image Editing Model

  1. Host the source image. Upload through POST /api/v1/upload_file or use a publicly reachable image URL.
  2. Choose the edit mode. Use a prompt for instruction edits, a mask for local inpainting, or reference fields for compositing and consistency.
  3. Submit the request. Call POST /api/v1/{model-slug} with the fields supported by the selected model.
  4. Poll and persist the result. Poll GET /api/v1/predictions/{request_id}/result until completed, then save the returned image.
curl -X POST https://api.muapi.ai/api/v1/gpt4o-edit \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "image_url": "https://example.com/input.jpg",
    "mask_image_url": "https://example.com/mask.png",
    "prompt": "replace the highlighted object with a red ceramic vase"
  }'
import requests

response = requests.post(
    "https://api.muapi.ai/api/v1/gpt4o-edit",
    headers={"x-api-key": "YOUR_API_KEY"},
    json={
        "image_url": "https://example.com/input.jpg",
        "mask_image_url": "https://example.com/mask.png",
        "prompt": "replace the highlighted object with a red ceramic vase",
    },
)
request_id = response.json()["request_id"]

result = requests.get(
    f"https://api.muapi.ai/api/v1/predictions/{request_id}/result",
    headers={"x-api-key": "YOUR_API_KEY"},
)
print(result.json())

Frequently Asked Questions

What is the difference between instruction and masked editing?

Instruction editing describes the change in a prompt, while masked editing limits the change to a supplied region.

Can I edit multiple reference images at once?

Yes, models such as Nano Banana Pro Edit, FLUX Kontext Pro, and Qwen Image Edit Plus accept multiple reference images.

Do I need a mask for every image edit?

No. Use a mask only when you need precise local control. Instruction and reference models can edit from images and prompts alone.

Can I keep a character consistent across scenes?

Yes. Use a subject-reference or character-consistency model and provide a clear reference image.

How much does image editing cost?

The listed models range from about $0.01 to $0.15 per generation; the exact price depends on the selected model and options.