# Image-to-image

> Canonical: https://skillalmanac.com/glossary/img2img | Last verified: 2026-11-24 | Index status: not offered to search engines

Image-to-image is a generative AI technique that starts from an existing image plus a text prompt and produces a new image, keeping as much or as little of the original as a strength setting allows.

Also called: img2img, image to image, image to image AI, image-to-image generation, image-to-image AI.

## In plain language

Image-to-image means you give an AI model a picture and a written instruction, and it makes a new picture based on both. You might hand it a rough sketch and ask for a finished painting, or a photo and ask for a different style. A setting controls how closely it follows your starting picture: low keeps it similar, high lets the model change much more. The limit is control. The result can drift from what you meant, change details you wanted to keep, or contain visible errors, so you check it. Running these models can also need a powerful graphics card.

## Technical definition

Hugging Face's Diffusers documentation describes the mechanism for a latent diffusion model: the initial image is encoded to latent space and noise is added to it, then the model takes the prompt and the noisy latent, predicts the added noise and removes it, and a decoder turns the new latent back into an image. The strength parameter sets how much noise is added, so a higher value gives the model more freedom, and the documentation says 1.0 means the initial image is more or less ignored. The SDEdit paper, submitted to arXiv in August 2021, describes the same noise-then-denoise idea, adding noise to a user's input and denoising it, with the noise level trading realism against faithfulness to the input.

## How it shows up when you use agents

Image-to-image is not a coding feature, but it appears in agent workflows that touch pictures: restyling a mockup, turning a sketch into a draft illustration, or editing an asset a model made earlier. The Diffusers documentation describes it as like [text-to-image](/glossary/text-to-image), with an initial image passed in as the starting point for the diffusion process, so it belongs to the [diffusion model](/glossary/diffusion-model) family of tools.

What breaks when it is misunderstood is the strength setting. The documentation says strength sets how much the result resembles the initial image: a higher value gives the model more freedom and 1.0 means the initial image is more or less ignored. A user who wants a small change but leaves strength high gets a different picture. Start low, raise it in steps, and compare against the original.

A second point is control. The same page notes that tools such as ControlNet use an extra conditioning image to preserve structure; see [ControlNet](/glossary/controlnet). To change only part of a picture, see [inpainting](/glossary/inpainting). Check the rights to any starting image you did not make, and run an exported-file check before you ship results.

## Common confusions

- **Image-to-image versus text-to-image.** Text-to-image starts from noise and a prompt. Image-to-image also gets a starting picture, so the result is tied to it.
- **Image-to-image versus inpainting.** Image-to-image can change the whole picture. Inpainting changes a chosen region and keeps the rest.
- **Strength versus guidance scale.** Per the Diffusers page, strength sets resemblance to the initial image. Guidance scale sets how closely the result follows the text prompt.
- **Myth: it edits pixels like a photo editor.** The model regenerates the image from a noised version, so details you did not mention can change.

## Worked examples in this catalogue

### [imagegen](https://skillalmanac.com/skills/openai/imagegen)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Generates or edits raster images such as mockups, textures and illustrations.

Why it exercises the concept: Editing an existing image from an instruction is the same family of task as image-to-image. The skill description does not say which technique it uses internally.

### [image-prompt-direction](https://skillalmanac.com/skills/skill-almanac/image-prompt-direction)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Writes image prompts like an art director and lints them for gaps, contradictions and rights problems.

Why it exercises the concept: In image-to-image the prompt is half the input, so a clear prompt that does not contradict the starting image helps. The rights check also matters when the starting image is someone else's.

### [image-spec-check](https://skillalmanac.com/skills/skill-almanac/image-spec-check)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Checks exported images against your own spec table and says exactly what to resize, crop, re-export or replace.

Why it exercises the concept: Output size and format matter once you have a result. This skill checks the exported files, whichever technique made them.

## Related terms

- [Text-to-image](https://skillalmanac.com/glossary/text-to-image.md)
- [Diffusion model](https://skillalmanac.com/glossary/diffusion-model.md)
- [Stable Diffusion](https://skillalmanac.com/glossary/stable-diffusion.md)
- [ControlNet](https://skillalmanac.com/glossary/controlnet.md)
- [Inpainting](https://skillalmanac.com/glossary/inpainting.md)
- [Latent space](https://skillalmanac.com/glossary/latent-space.md)

## Sources

- [Image-to-image](https://huggingface.co/docs/diffusers/using-diffusers/img2img), Hugging Face (Diffusers documentation) (accessed 2026-11-24)
- [SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equations](https://arxiv.org/abs/2108.01073), arXiv (Meng et al.) (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
