AI

Ask AI to Edit and Annotate Photos in Your App

The AI opens from its ✦ beside Annotate's button, in four modes. In Edit, people say what the photo needs, or brush an area and say what to put there. Remove Object takes away what they brush, Remove Background takes the background off and paints a new one from their words, and Annotate composes the annotations as an art director. The editor holds no key: your server asks the models you pick. It is in the Full edition.

The editor open on a recipe photo, each ingredient numbered in yellow and a list titled Ingredients in the free space, as the AI composed it

The editor, running in your browser, opened on a composition the AI made. Every piece is still editable. The AI needs your server and its models, so it does not run on this page: the videos below show it at work. Photo by Philippe Zuber on Unsplash.

What It Does

What AI Gives Your Users

The AI's Annotate mode asked for a travel guide to Porto, in Corsica, on a photo from above: the AI adds a title and labels the Genoese tower, the hotels, the marina and the beach, its real answers played four times as fast as they came
The AI's Annotate mode: asked for a travel guide to Porto, the AI adds a title and labels the tower, the hotels, the marina and the beach.
The AI's Edit mode asked in one request to hide the faces of the people behind a guitarist on Charles Bridge and give the photo a warm golden-hour light: the AI covers eight faces behind him with pixelated areas, leaves his alone and warms the light, its real answers played four times as fast as they came
The AI's Edit mode: asked to hide the faces in the background and give the photo a warm golden-hour light, the AI pixelates the eight faces behind the guitarist and warms the light.
Remove Object on a woman at the end of a dock: the AI brush made wider on its ruler and drawn over her in one stroke, then Remove, and the dock and the lake filled in where she sat, the real answer played four times as fast as it came
Remove Object: brush over the woman on the dock, tap Remove, and the dock and the lake fill in where she sat.
The AI's brush made wider on its ruler and drawn over the plant on a living room's coffee table in one stroke, red roses asked for in words, then white tulips in their place, and Undo and Redo going back and forth between the two, the real answers played four times as fast as they came
Generate: brush over the plant on the table, ask for red roses, then for white tulips, and go back and forth between the two with Undo and Redo.
Remove Background on a woman in a cream knit sweater holding an orange maple leaf over her face: the autumn street taken off around her over a checkerboard, her loose hair cut strand by strand, then a golden larch forest by an alpine lake in soft light asked for in words and painted behind her, the real answers played four times as fast as they came
Remove Background: one tap cuts the woman with her maple leaf out of the street, then a golden larch forest by an alpine lake asked for in words is painted behind her.
  • Manual editing: Processed in your browser.
  • AI: Your app sends the necessary data to the services you configure.
  • MCP: Commands and screenshots pass through the configured relay between the editor and the connected agent.

Details: AI data flow · MCP privacy

One Button, Four Modes

The AI's ✦ stands beside Annotate's button. A tap opens the AI in place of the tools, its modes on the menu's top edge: Edit, Remove Object, Remove Background and Annotate, each where your server can run it. Inside Annotate, the ✦ opens on Annotate. A tap on the lit ✦ closes the AI and loses nothing: the conversation, the words typed and the areas marked are there when it opens again.

Edit in Words

In Edit, the person writes what they want and taps Generate, and the AI crops, adjusts, sets a filter or a frame, or hides faces, with the editor's own tools. Placing arrows, texts and numbers is the Annotate mode's work. Its reply shows on the card at the top of the photo.

Brush an Area

Edit and Remove Object have a Brush and an Eraser. The Brush marks an area over what to change, an outline closed where it began marking its inside too, and the Eraser takes some of it back. Each area has its own bar to move it or delete it, as an annotation has.

Remove Object

Brush over what should go and tap Remove: it is taken away, and the area filled with what surrounds it. Outside the area, every pixel stays the photo's own, and the whole is one undo step.

Generate in an Area

In Edit, brush an area, say what to put there or add an image with Add Image, and tap Generate. An image fills the whole marked area. Generate again with the same words for another version: each is one undo step, and Undo and Redo go back and forth between them.

Remove Background, Then a New One

Remove Background takes the background off in one tap and keeps the main subject, on a checkerboard where the photo is now transparent. Then the person describes a new background, and Generate paints it in behind the subject, its soft edges blended in. You can also give it a field where the person says what to keep, “the woman and her dog”. Saved as a PNG or a WebP, a photo with no background stays transparent.

The Annotate Mode Composes the Annotations

In the Annotate mode, which the ✦ opens inside Annotate, the person says what to annotate, or gives a subject and the facts, and the AI composes the annotations as an art director: the story, the style, where each piece goes and what each text says. Generating again with the same words replaces the composition with another in a different style.

Expand and Detect

Two AI buttons sit in their own tools. Expand, beside Crop in the Aspect section, grows the photo to a fixed ratio picked there and fills the new borders with more of the scene. Detect, in Obfuscate's pill, covers every face, license plate, document and screen in the photo with an area in one tap.

Examples in Every Field

The AI's fields start with Examples, a question mark that opens a short list of what to ask there. A choice fills the field and sends nothing, and the list offers only what your editor can do.

A Card That Folds

What the AI says shows on one card at the top of the photo: what it is doing, with Stop, then its reply or a failure. Its ⌃ folds it to a small pill, a tap on the pill opens it again, and once the AI is done its ✕ closes it. The next request goes on in the same conversation, so “make the 2 bigger” works.

Everything Stays Editable

What the AI does with the editor's tools stays editable: every crop, filter, hidden area and annotation. What it paints becomes part of the photo. A whole request is one undo step, as is each Remove, Generate and Expand, and Stop or Escape keep what a request did so far.

Your Server Holds the Key

The editor holds no key and runs no model. Each AI button calls a function you give it, which asks your server, and your server asks the model you pick: one for the conversation, one to fill an area, one to take the background off, one to find faces and plates. Each works alone, and the bill is yours.

Models We Measured

We recommend Claude Sonnet 5.5 for the conversation: about US$ 0.13 and 46 seconds a request in the Annotate mode. Each of the other functions has a model we recommend, measured on our photos, and a ready server in the docs. This page's videos play the real answers four times as fast as they came.

Showcases

Real Examples, Done by the AI

The contemporary great room furnished in a warm modern style, an olive velvet sofa, two cream armchairs, a walnut coffee table on a wool rug and plants under its gold chandelier: a burnt-orange ruler along the sofa labeled 3 m, a magnifier on its velvet under the label Olive velvet, and burnt-orange cards on the armchairs and the coffee table, each with its detail
Video

Show a client their empty living room furnished before a single piece is bought, then point out the key pieces.

“Furnish it in a warm modern style: an olive velvet sofa facing us, two cream armchairs, a walnut coffee table, a wool rug, plants”, then in Annotate, “Point out the three key pieces. The sofa is 3 m long; show its velvet up close”

The brick house at a warm dusk with its lights on, its bins gone: the title Brick Home at Dusk, Lights on, warm glow, on the sky, a magnifier with an amber rim on the lit front door under its amber card, and amber cards with their details and lines to the arched window and to the garage door, the agency's logo in the bottom left
Video

Turn a daytime listing photo into a warm dusk, clear the curb, mark what sells and sign it with the agency's logo.

“Make it a warm dusk with the lights on”, then the bins brushed over, then Remove, then in Annotate, “Mark what sells”, then the agency's logo set as the signature

The sneaker on its pebbles on a wet street at night under neon signs, widened to 16:9: dark cards numbered 1 to 3 on orange lines, White leather upper, Soft suede toe and Bold white sole, each with its detail
Video

Cut a product from its backdrop, set it in a new scene, widen it into a banner and call out what sells it.

Remove Background, then “A wet street at night, neon reflections”, then Expand to 16:9, then in Annotate, “Call out its three selling points”

The barn venue set for a wedding banquet with round tables, white flowers, candles and string lights: black cards with white text and gold numbers, 1 to 4, with short lines to the ceremony arch, the photo corner, the bar and the dance floor, and a magnifier on the wall showing a table's white peonies under a white label, Peonies
Video

Show a couple the empty venue set for their banquet, then lay out their day on it.

“Set it for a wedding banquet: round tables, white peonies, candles, fairy lights”, then in Annotate, “Lay out the day: ceremony, dance floor, bar, photo corner. In the room's warm tones, and show a centerpiece up close”

The cake cutting in a soft golden light: the exit signs and the guest's phone gone, every guest's face pixelated and the couple's kept
Video

Clean a wedding photo of exit signs and a guest's phone, warm its light, and hide the guests' faces for the public portfolio.

The exit signs and a guest's phone brushed over, then Remove, then “Give it a soft golden light”, then “Hide the guests' faces for the public portfolio, keep the couple's”

Positano's beach emptied of people and warmed, expanded to a 9:16 story: the caption Our Day, Hotel · Hidden cove · Dive, a dotted trail and three teal cards numbered in the day's order, the hotel, the hidden cove and the dive spot
Video

Empty a crowded beach, warm it to golden hour, make it a 9:16 story and draw the day on it.

The people behind brushed over, then Remove, then “Golden hour”, then Expand to 9:16, then in Annotate, “Draw our day: the hotel, the hidden cove, the dive spot”

The kitchen renovated with olive cabinets, a marble counter and brass fixtures: cards in each material's color, Olive cabinets, Painted doors, and Brass fixtures, Handles and faucet, and a magnifier on the marble splashback labeled Marble
Video

Show a client their dated kitchen renovated, then name every material in it.

“Renovate it: a marble counter, olive cabinets, brass fixtures”, then in Annotate, “Name the materials”

The plated dish on a rustic oak table by a window with a linen napkin: green Numbers on the beef, the quail egg, the tomato, the leek, the jus and the beans, their words in a list titled On the plate, each with a line, and a magnifier with a green rim on the grill marks of a potato, under the label Grilled potato
Video

Restyle a dish shot on a plain table for the menu, then call out its ingredients.

“Put it on a rustic oak table in morning window light, with a linen napkin”, then in Annotate, “Call out the ingredients for our menu post, titled On the plate”

The buggy crossing the dunes with a dust trail behind it: the title The Desert Tour, Dunes · Canyon · Sunset, in dark letters on the sky, a dotted trail through black cards numbered in gold at the dunes, the canyon and the sunset stop, a ruler under it from the dunes to the canyon labeled 3 km, and a magnifier with a gold rim on the buggy, under the label Buggy
Video

Turn a daytime ride into golden hour with a dust trail behind it, then draw the tour on it, its distance and the buggy up close.

“Make it golden hour with a dust trail behind it”, then in Annotate, “Draw the tour: the dunes, the canyon, the sunset stop”, then “Keep the tour, and add the 3 km to the canyon and a close-up of the buggy”

A white car after a front-end crash, sketchy red outlines round the crumpled hood and fender and the torn-open front end, red Numbers 1 to 4 on them, the detached underbody panel and the bumper debris, their words in a list titled Damage points, a yellow ruler beside the front end labeled ≈ 50 cm, and a magnifier on the side mirror hanging off, under the label Mirror broken off

Number every dent and scratch on the claim photo, each one named in a list beside it.

“Mark the damage for the claim”

A building site's deck from above with the crew on the slab, the title Weekly Progress, Site update for the client, a magnifier with an orange rim on the conduit and rebar, and colored cards with lines to the work: Conduit & rebar laid, Ready for inspection, in teal; Crew on site, 7 on the deck today, and Slab poured, Curing for 7 days, in orange

Label what the crew finished this week on the site photo the client gets.

“Annotate this week's progress for the client”

An old tiled bathroom, sketchy red outlines round the peeling plaster and the damp wall, and white cards numbered as a repair list, each with what to do and a line to its spot: 1 Cracked, damp wall, Seal and repaint; 2 Peeling plaster, Re-plaster; 3 Taps, Check pipes; 4 Window frame, Flaking paint; 5 Worn chair, Restore wood

Flag what needs repair in a room, each with what to do about it.

“Flag what needs repair”

The back of a home router, a yellow outline round the four Ethernet ports, and white cards with elbowed lines ending in triangles, each in its port's color: ADSL, Phone line cable, in violet; Ethernet 1–4, Your computers and devices, in yellow; Internet, Cable to the web, in blue

Show a customer which cable goes into which port, labeled on the photo of the router.

“Show the customer which cable goes where”

A beach resort from the air, the title Resort amenities in white letters, a magnifier with a coral rim on the lagoon pool, coral cards on the lagoon pool, the tennis courts, Rackets at the front desk, the private beach, Loungers and towels, and the beach cove, Calm water for snorkeling, and a dashed two-way arrow from the pool to the cove labeled 6 min walk

Label the pool, the courts and the beaches on an aerial photo for the booking page.

“Label the amenities for the booking page”

A wet single-track road in the Scottish Highlands, yellow rings drawn by hand round three potholes along the road's edge, each with a yellow card on a line, numbered in the order to fill them: 1 Flooded pothole, Deepest: fill it first; 2 Water-filled hole, Patch and seal; 3 Broken surface, Resurface the edge

Circle and name each pothole on a road, so the repair crew knows where to go.

“Mark the potholes for the repair crew”

Tall racks of pallets round a forklift, the title Warehouse Hazards in yellow letters, a red outline round the loads overhead, and red cards on straight lines ending in triangles: Heavy loads overhead, Hard hats in this aisle; Forklift at work, Stay 3 m clear of the forks; Trip hazard, Keep the floor clear; Mind the rack uprights, Report any dent

Point out the hazards of an aisle on a photo for safety training.

“Point out the safety hazards for our training”

The Tre Cime di Lavaredo seen through a cave's mouth, white cards on straight lines ending in bars, with each peak's height, Monte Paterno, 2,744 m, Cima Piccola, 2,857 m, Cima Grande, 2,999 m, and Cima Ovest, 2,973 m, a red card on the Rifugio Locatelli, 2,405 m, and a dotted yellow trail from the hut to the foot of the peaks

Name the peaks and draw the trail on a viewpoint photo for the tour page.

“Name the peaks and draw the trail”

A festival ground before its gates open, its rainbow-arched stage at the end of a field of dry grass, the title Festival Plan, Field layout, on a pink card, a red dashed zone for first aid and a pink one for the food trucks, and white Numbers with a line each: 1 Stage, Main acts from 6 pm; 2 Food trucks, Twelve pitches; 3 First aid, Staffed all day; 4 and 5 Exit, Gate A and Gate B, in green

Lay out the stage, the food trucks, first aid and the exits on a photo of the empty field.

“Plan the festival on this field: the stage, the food trucks, first aid and the exits”

The west front of Notre-Dame de Paris, the title Notre-Dame de Paris, Gothic west façade, a magnifier on the Gallery of Kings with its card, 28 kings of Judah, and yellow Numbers on the twin towers, the arcaded gallery, the rose window and the three portals, their words in a list titled Gothic façade

Label a building's architecture for a class, its parts numbered and a magnifier on the detail that matters.

“Label its architecture for my class”

A rider in the air between two rocky dirt jumps in the morning mist, a dashed orange arc from the takeoff lip over the rider to the landing, ending in an arrow, an orange ruler across the gap labeled Gap 6 m, and orange Numbers with a coach's line each: 1 Takeoff, Pump the lip; 2 Airtime, Eyes on the landing; 3 Landing, Both wheels at once

Mark the takeoff, the airtime and the landing of a jump, the line drawn between them.

“Annotate the line: takeoff, airtime, landing”

An orange prototype through a corner at Le Mans, an orange highlighter stroke from ahead of the car past the inside kerb to the corner's exit, orange Numbers 1 to 3 on the braking point, the apex and the exit, their words in a list titled Racing line with a line each: Brake in a straight line, Clip the inside kerb, Use the whole track

Draw the racing line through a corner, its braking point, apex and exit numbered.

“Mark the racing line: braking point, apex, exit”

The same house renovated, its walls in white render, its windows in black frames, the chimney and the door's surround clad in timber, with cards in each material's own color: Timber cladding, Chimney, door surround, orange; White render, Smooth stucco, white; Black frames, Every window, black, beside a magnifier on the lawn showing a window's black frame on the white render, its line up to the frame

Show a client their house's facade renovated, each new material named on it.

“Renovate the facade: white render, black window frames, timber cladding”, then in Annotate, “Name the materials”

The same yard, the patio made a timber deck, four olive trees on the lawn and string lights hung across it

Show a client their bare backyard as the garden it could be.

“A garden with olive trees, a timber deck and warm string lights”

The SUV on a coastal road at sunset, the sea and the cliffs behind it, and black labels with orange dots and lines: Slim headlights, Tinted windows, Slim tail lights and Aero wheels

Take a car off a gray lot, put it on a coastal road at sunset and highlight its features.

Remove Background, then “A coastal road at sunset”, then in Annotate, “Highlight its features”

A 16:9 banner, the bottle on its block over still water rippling round it, white petals floating on it

Cut a bottle from its shoot, set it on water and petals, and widen it into a banner.

Remove Background, then “Water ripples and white petals”, then Expand to 16:9

The same woman in an emerald green silk dress

Show a dress in new colors without a new shoot.

The dress brushed over, then “An emerald silk dress”, then “A sapphire blue silk dress”

The same street, each face and the plate under a pixelated area

Hide every face and license plate in a street photo before it goes public.

“Hide every face and license plate”

The armchair alone in the room, brighter, a magnifier over the shelves beside it showing the scratch on its left arm, under the card Small scratch, Left arm, priced in

Clear the clutter around a used armchair, brighten it and note its scratch for buyers.

The lamp, its table and the papers brushed over, then Remove, then “Brighter”, then in Annotate, “Note the small scratch on the left arm”

The same room, pine garlands with warm lights and red baubles strung across its ceiling

See the café dressed for Christmas before a single garland goes up.

“Decorate it for Christmas: garlands and warm lights”

The same portrait with no leash, the fur and the grass where it ran

Take the leash out of a dog's portrait, the fur and the grass filled in where it ran.

The leash brushed over, then Remove

The spectators' faces under blurred areas, the riders' as they were, a yellow dashed outline round the spectators with the yellow card Spectator zone, Stay behind the tape, a dotted white line down the slope through yellow Numbers 1 Crest drop-in, 2 Steep descent and 3 Loose dirt corner, and the title Course key sections, For riders and spectators, on a white card

Hide the spectators' faces, keep the riders', and mark the course's key sections for the event page.

“Hide the spectators' faces, keep the riders”, then in Annotate, “Mark the course's key sections for the event page”

A 16:9 banner, the car on a wet pit lane at night between lit garages and stacks of tires under floodlights

Cut a race car from the track, put it in a pit lane at night and widen it into a 16:9 banner.

Remove Background, then “A pit lane at night under floodlights”, then Expand to 16:9

By industry: Sports and Outdoor Adventure, Real Estate, Interiors and Architecture, Online Stores and Brands, Weddings and Events, Hospitality and Food, Travel and Tourism, Insurance, Inspection and Field Work, Privacy, Education, Photographers.

In Code

The Props That Control It

PhotoEditor.tsx

import { EmbedEditor, EmbedEditorProps } from '@embededitor/full/react';

// the conversation goes to your server, which holds the key and asks the model
const onAiChooseCommands: EmbedEditorProps['onAiChooseCommands'] = async ({ messages, signal, tools }) => {
	const res = await fetch('/api/ai-choose-commands', {
		body: JSON.stringify({ messages, tools }),
		headers: { 'content-type': 'application/json' },
		method: 'POST',
		signal
	});

	if (!res.ok) {
		throw new Error('The AI is busy. Try again in a moment.');
	}

	return res.json();
};

const PhotoEditor = ({ src }: { src: string }) => (
	<EmbedEditor
		onAiChooseCommands={onAiChooseCommands}
		src={src}
	/>
);
onAiChooseCommands

The AI's model: it gets the conversation and the tools in OpenAI's Chat Completions shape and gives back the model's next message. It gives the AI Edit and Annotate.

onAiDetectObjects

Obfuscate's Detect: finds every face, license plate, document and screen in the photo. Optional.

onAiEditImage

Fills an area: it gets the piece of the photo around the mark, its mask, the words and the image, and gives back the image it made. It gives the AI Remove Object, Generate and Expand.

onAiRemoveBackground

Takes the background off: it gets a JPEG of the photo and gives back a PNG with the background transparent. It gives the AI Remove Background.

enableAiRemoveBackgroundPrompt

Gives Remove Background a field for what to keep, sent to onAiRemoveBackground with the photo.

aiPrompts

Your own prompts for the AI, task by task, as lang.texts brings your own texts: any key left out keeps the editor's.

Every prop in the docs.

FAQ

Questions

Where does the API key stay?

On your server. The editor holds no key and runs no model: each AI button calls a function you give it, which posts to your server, and your server asks the model. Check the person's session and limit the requests there, as on any paid endpoint.

Do I have to give the AI every function?

No, each works alone. A model for the conversation alone gives Edit and Annotate; a function that fills an area alone gives the brush, Remove Object, Generate and Expand; one that takes the background off alone gives Remove Background; one that finds faces and plates alone gives Obfuscate's Detect. With the conversation beside the others, a request in words removes, generates, cuts and detects through them. Without any, the editor is as it is without AI.

Which models should I use?

For the conversation, Claude Sonnet 5.5, the best grade for its price in our measurements. Claude Opus 5.5 brings more imagination and costs more; Claude Haiku 5.5 costs less than a tenth of Sonnet but composes worse. Any model that calls tools and looks at images can be the AI. For the pixels, Bria Eraser removes, FLUX.1 Fill [pro] generates from words, Seedream 5.5 puts the person's image in a marked area, Bria FIBO Edit 1.5 Expand expands, Bria FIBO 2.0 Edit paints a new background, Seedream 5.5 edits the whole photo by words, Bria RMBG 2.0 takes the background off and SAM 3 detects. The docs have a server ready for each, and for OpenAI and Gemini.

What does a request cost?

With the recommended models, at the providers' prices of November 2026: a request in the Annotate mode about US$ 0.13 and 46 seconds with Claude Sonnet 5.5; a Remove Object US$ 0.04 and 14 to 22 seconds; a Generate in words US$ 0.05 and 7 to 10 seconds, plus the conversation's rounds; a Generate with an image US$ 0.044 and about 30 seconds; an Expand US$ 0.04 and about 21 seconds; a new background US$ 0.04 and 21 to 33 seconds; an edit of the whole photo by words US$ 0.043 and 31 to 41 seconds; a Remove Background US$ 0.018 and 7 to 17 seconds; a Detect US$ 0.02 and 2.7 to 4.7 seconds. A request in Edit costs by its rounds, as one in Annotate does.

Does what the AI makes stay editable?

What it makes with the editor's tools does: every crop, adjustment, filter, hidden area, arrow, text and number stays editable, and one Undo takes a whole request back. What it paints, a Remove, a Generate, a new background or an Expand, becomes part of the photo, each image one undo step.

Can the person stop the AI?

Yes. Stop or Escape stops a request and keeps what the AI did so far, and stops a Remove, a Generate or an Expand with the photo as it was. While it works, a card at the top of the photo says what it is doing, and the photo's edge glows.

Try the rest of the editor in the playground.

This feature needs your server, so the playground opens without it, on the same photo. Change the edition, the colors and the tools, and copy the code for your app.

More features: MCP, Crop, Filters, Annotations, Obfuscate, Watermark, Large Photos, White Label.