H3 Image Edit Workflow: Settings, Prompts and API Steps for Beginners
A beginner-friendly walkthrough of the H3 image edit workflow: which settings change the result, how to write edit prompts that keep your photo intact, the API steps from request to result, and four edit models you can use right now on PicassoIA.
You have a photo that is almost right. The jacket is the wrong color, the sky is flat grey, or a stranger wandered into the background. Regenerating the whole picture from scratch would throw away everything that already works. That is the exact problem an H3 image edit workflow solves: you give the model your existing picture, tell it what to change in plain language, and it returns a new version with the rest left alone.
This article walks through the whole process for someone who has never touched an image API. You will see what the settings actually do, how to write prompts that produce clean edits, and the order of the API steps from first request to finished file. You will also see where H3 stands today and which edit models you can open in your browser right now.
What H3 Image Edit Does
Edit versus generate
A text-to-image model starts from nothing. You type a description and it invents every pixel. An image edit model starts from your photo, so it has a strong anchor: the composition, the faces, the lighting and the background are already there. Your prompt only describes the difference.
That changes how you write. Instead of describing a whole scene, you describe one change. "Replace the grey sky with a warm sunset" is a good edit instruction. "A man in a mustard jacket standing on a city street under a warm sunset sky with cobblestones and parked bicycles" is a generation prompt, and it invites the model to redraw things you wanted to keep.
The model behind the name
"H3" refers to MiniMax H3, the image model family from MiniMax. Its edit endpoint accepts one or more input pictures plus a text instruction and returns an edited image. Providers that host it list slightly different limits. One provider describes up to 16 input images with each side between 128 and 8192 pixels. Another describes 1 to 9 reference images with output from 1K up to 4K. Pruna AI also built a variant on the open weights, and a LoRA edit variant exists as a separate endpoint.
💡 Tip: Because limits differ between hosts, always read the limits on the specific endpoint you plan to call before you write any code. A request that works on one host can be rejected on another.
Where it runs today
H3 is reached through third-party API providers, which is why most tutorials start with an API key. It is not on PicassoIA, so there is no H3 page here to link to and no button to click for it. If your goal is simply to edit a photo with a text instruction today, the later section on similar results on PicassoIA is the faster route. If your goal is to learn the shape of an edit API, keep reading, because the same pattern applies to nearly every edit model.
The Workflow in Five Steps
Every edit job, whether you click buttons or call an API, follows the same loop. Keep this order in mind and the rest of the article will feel familiar.
Pick the source photo. Sharp, well lit and at least 1000 pixels on the long side works best.
Write one change. A single sentence with a single goal.
Set the options. Resolution, aspect ratio and how many outputs you want.
Run the job. Either instantly in a browser or as a request you submit and wait on.
Compare and repeat. Put the result next to the original and adjust one thing at a time.
Beginners tend to skip step 5 and change four things at once. Then when the result looks wrong they cannot tell which change caused it. Treat each run like a small experiment.
Settings That Change the Result
Input images and their order
Most edit models treat the first image as the one being edited and any extra images as references. If you upload a portrait and a photo of a red coat, you might say "put the coat from image 2 on the man in image 1". The order you upload matters, because that is how the model knows what "image 1" and "image 2" mean.
Some providers state that images are read in the order your prompt mentions them. Either way, a safe habit is to upload in the same order you refer to them and to use the words "image 1" and "image 2" in your prompt.
Resolution and aspect ratio
By default, many edit endpoints keep the aspect ratio of the first image. That is usually what you want. Override it only when you plan to change the crop on purpose, for example turning a square product photo into a wide banner.
Resolution is a trade between detail and cost. A listing that offers 1K to 4K output usually charges more as you go up. For testing a prompt, use the smallest size. Once the edit looks right, run it once more at the final size.
Seed and number of outputs
A seed is a number that fixes the randomness. Use the same seed with the same prompt and image and you will usually get a near-identical result, which is very handy when you change only one word and want to see its effect. Leave the seed random when you want variety.
If the host lets you ask for several outputs per request, request two or three while experimenting. Picking the best of three is cheaper than running a fourth round of prompt tweaks.
Setting
What it controls
Beginner choice
Input image order
Which photo is edited and which are references
Edited photo first
Aspect ratio
Shape of the output
Match the original
Resolution
Detail and price
Low for tests, high for final
Seed
Repeatability
Fixed while tuning a prompt
Number of outputs
Choices per run
2 or 3 while testing
Output format
File type of the result
JPEG for photos, PNG for transparency work
Prompts That Work for Edits
One change per prompt
The most reliable habit is the simplest. Ask for one thing. "Change the jacket to dark green" works. "Change the jacket to dark green, remove the car, make it night, add rain and smile more" asks the model to juggle five jobs, and at least one will go wrong.
If you need several changes, chain them. Run the first edit, take the output, and use it as the input for the second edit. Each step stays easy to check.
Say what must stay the same
Models sometimes drift. A face gets slightly younger, the background shifts, the lighting changes. A short protective phrase helps: "keep the face, pose and background unchanged". Put it at the end of the instruction so the main change stays first.
Name things by position and color
Vague words create vague results. "Fix the thing on the left" gives the model nothing to hold. "Remove the white van parked on the left side of the street" is clear. Colors, positions and sizes act like coordinates on the photo.
Prompt patterns you can copy
Goal
Prompt pattern
Example
Swap a color
Change the [object] to [color]. Keep everything else the same.
Change the jacket to dark green. Keep everything else the same.
Replace the sky
Replace the sky with [description]. Match the lighting on the subject.
Replace the sky with a warm sunset. Match the lighting on the subject.
Remove an object
Remove the [object] at [position]. Fill the area naturally.
Remove the white van on the left. Fill the area naturally.
Add an item
Add a [object] in [position] in the same lighting.
Add a small brass lamp on the right side of the desk in the same lighting.
Use a reference
Put the [item] from image 2 onto the [subject] in image 1.
Put the red coat from image 2 onto the man in image 1.
💡 Tip: Write in the imperative. "Change", "remove", "replace" and "add" are clear verbs that edit models respond to well.
API Steps for Beginners
If you only want to edit a few photos, you can skip this section. If you want to automate edits for a shop, a social feed or an app, the API is the route. The flow is the same for almost every host.
Step 1: Get a key
Create an account with the provider that hosts the model, generate an API key, and store it as an environment variable. Never paste a key into a file you might share or upload. If a key leaks, delete it and create a new one.
Step 2: Upload or link your image
Most hosts accept a public image URL or a base64 string. A URL is easier. If your photo lives on your computer, upload it to any storage you control and use the link. Check the host's stated size limits first, for example the minimum and maximum side length of 128 to 8192 pixels that one provider lists.
Step 3: Send the edit request
You send a JSON body with the prompt, the list of images and your options. The shape looks like this:
import os, requests
headers = {"Authorization": f"Bearer {os.environ['API_KEY']}"}
payload = {
"prompt": "Replace the sky with a warm sunset. Keep the face and pose unchanged.",
"images": ["https://your-storage.example/portrait.jpg"],
"aspect_ratio": "16:9",
"seed": 42
}
job = requests.post(EDIT_ENDPOINT, json=payload, headers=headers).json()
EDIT_ENDPOINT stands for the exact address in your provider's documentation. Field names differ by host, so copy them from the docs instead of from this example.
Step 4: Wait and poll
Some hosts return the picture straight away. Others work asynchronously: you submit a job, receive a job ID, and ask for the status every second or two until it says completed. The loop is short:
import time
while True:
result = requests.get(RESULT_URL.format(job_id=job["id"]), headers=headers).json()
if result["status"] == "completed":
image_url = result["outputs"][0]
break
if result["status"] == "failed":
raise RuntimeError(result.get("error"))
time.sleep(2)
Do not poll faster than once per second. It adds nothing and may get you rate limited.
Step 5: Save the file and check errors
Download the image from the returned URL promptly, because many hosts delete outputs after a while. Then handle the common failures:
Error
Likely cause
Fix
401
Missing or wrong key
Check the header and environment variable
400
Image too small, too large or wrong format
Resize to the stated limits
429
Too many requests
Wait and retry with a delay
Failed status
Prompt or image was refused
Reword the prompt or try a different photo
Timeout
Large output or busy host
Lower the resolution and retry
Reference Images Done Right
Reference images are where edit models feel like magic, and also where beginners get stuck. A few habits make a large difference.
Match the lighting
If your base photo is lit from the left by soft morning light and your reference was shot under harsh noon sun, the result will look pasted in. Pick references with a similar direction and softness of light, or add "match the lighting of image 1" to the prompt.
Keep references clean
A reference with a plain background gives the model one clear thing to copy. A busy photo with ten objects forces it to guess. Crop tight before you upload.
Build a small reference board
If you edit the same subject often, such as a product line or a character, gather a handful of consistent references and reuse them. A pinned board of faces, products and locations saves hours.
How to Get Similar Results on PicassoIA
H3 is not on PicassoIA yet, but you can run the same edit loop today with models that are. Nano Banana is the first one to try. It accepts a photo plus a text instruction and returns an edited version, so everything you read above about one change per prompt applies directly.
💡 Tip: Run the same prompt on two models and keep the better result. Each model has a different taste for faces, textures and color, and a quick side-by-side is the fastest way to find your favorite.
Common Mistakes to Avoid
Asking for too much at once. Five changes in one prompt means five chances to fail. Chain them.
Forgetting what must stay. If you do not say "keep the face unchanged", the model is free to adjust it.
Using tiny or blurry sources. The model cannot invent real detail from a thumbnail. Start from the sharpest version you have.
Changing everything between runs. Alter one word, one setting or one image per run so you can see the cause of any difference.
Skipping the comparison. Always view the original and the edit side by side. Small drifts in skin tone, background shapes and hands are easy to miss on one screen.
Hard-coding secrets. Keep API keys in environment variables, never inside code you share.
Ignoring host limits. Image size, count and format limits vary between providers. A request that works in one place can fail in another, so check the stated limits each time.
A Simple Practice Plan
If you want to get comfortable fast, spend one session on these five exercises with a single photo:
Color swap. Change one clothing item to a new color.
Sky replacement. Swap a flat sky for a sunset and ask the model to match the lighting.
Object removal. Remove one distracting item in the background.
Object addition. Add one small prop in a clear position.
Reference edit. Use a second photo as a reference for a new item.
Save each result with the prompt in the file name. After an hour you will have a personal library of prompt patterns that you can reuse on any edit model, whether it is H3 through an API or a model you open in your browser.
Try Your First Edit Today
The skills in this article travel. One change per prompt, a clear note about what must stay, a fixed seed while you tune, and a side-by-side check at the end will improve your results on any edit model you meet. The API steps are the same story: key, request, wait, download.
The quickest way to feel the difference is to do it. Pick one photo you already own, open Nano Banana or Qwen Image Edit 2511 on Picasso IA, and type a single sentence describing one change. Then try the same sentence on Flux Kontext Fast and compare. When you want to see everything on offer, browse all PicassoIA models and build your own edit workflow from the ones you like best.