Text replacement inside an image is not one capability. It is at least two: changing the requested words correctly, and preserving the surrounding design. Treating those as separate checks makes an image-edit API evaluation much more useful than a single “looks good” score.
Google describes Pics as able to modify or translate text in an image without disrupting the design or changing the font. That is a useful product expectation, but it is not evidence that another image-edit API will behave the same way. For an API trial, make both outcomes explicit and measure them independently.
Start with a controlled fixture
Use an image you are allowed to process and redistribute. A good fixture has one short, unambiguous text string, a known font treatment, and nearby visual anchors such as an icon, border, or aligned column. Keep the source image, edit prompt, model or endpoint identifier, and request parameters with the result so the run can be reproduced.
Ask for exactly one text change—for example, replace “SPRING SALE” with “AUTUMN SALE”—and explicitly say that all other content and layout should remain unchanged. Do not combine translation, object removal, recoloring, and text replacement in the same first test. A multi-edit prompt makes it hard to identify which instruction caused a failure.
Check 1: requested text
Evaluate the edited text on its own:
- Does the output contain the exact requested string, including spelling, case, punctuation, and numerals?
- Is any part of the old string still visible?
- Did the edit introduce duplicated, malformed, or unrelated characters?
- If the request was a translation, was the target language specified, and can a qualified reviewer verify meaning rather than merely recognizing the script?
Record this as a discrete result such as pass, fail, or needs human review. OCR can assist with repeatable comparison, but inspect the pixels too: stylized text, low contrast, and unusual scripts can fool OCR.
Check 2: layout preservation
Then ignore textual correctness and compare the composition with the input:
- Did the text block move, resize, wrap, rotate, or change alignment?
- Were font appearance, color, spacing, and hierarchy preserved closely enough for the intended use?
- Did nearby icons, edges, textures, or other text change?
- Are there seams, blur, warped backgrounds, or accidental crops around the edited region?
Use a region around the text for the primary comparison, plus a whole-image check for collateral changes. Pixel differences are a diagnostic signal, not a universal quality score: a legitimate text replacement must change some pixels, while compression or nondeterminism may alter pixels that look equivalent.
Use a small result matrix
Keep the two verdicts separate:
| Requested text | Layout | Interpretation |
|---|---|---|
| Pass | Pass | Candidate succeeds on this fixture |
| Pass | Fail | Words are right, but the design needs repair |
| Fail | Pass | Composition survived, but the requested edit did not |
| Fail | Fail | Reject the result or revise the prompt/test setup |
Repeat across fixtures that vary one difficulty at a time: short versus long replacement text, high versus low contrast, simple versus textured backgrounds, and one script versus another. Report results per fixture rather than converting a small sample into a broad reliability claim.
The stop condition matters: if the input rights are unclear, the requested wording cannot be objectively verified, or the API silently changes unrelated content, do not treat the output as ready. Preserve the failed artifact and request metadata, adjust one variable, and rerun as a new trial. This turns a subjective image-edit demo into a bounded test with diagnosable failure modes.