# Text-to-image

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

Text-to-image is a kind of generative AI that creates a new image from a written description, called a prompt. Many current systems start from random noise and remove it step by step, guided by the prompt.

Also called: text to image, text-to-image AI, text to image model, AI image generation.

## In plain language

Text-to-image means you type a description, such as a red bicycle leaning on a brick wall at dusk, and a model draws a new picture that matches it. It does not look up a stored photo. It builds a fresh image, so two runs of the same prompt can differ. It is useful for mock-ups, textures and illustrations. It can misread details, add odd artefacts, or mishandle text inside an image, and the image may resemble someone's copyrighted work or personal likeness. Paid services may charge per image, and running a model yourself needs capable hardware. For anything published, a person should review the result first.

## Technical definition

Hugging Face's Diffusers documentation describes the common design: a diffusion model takes a prompt and some random initial noise, and iteratively removes the noise to construct an image, with the denoising guided by the prompt; the image representation is then decoded into an image. Parameters such as guidance scale, negative prompt and a seed for reproducibility change the output. OpenAI's image documentation describes two ways to call its image models: an Image API for generating or editing an image from a prompt, and image generation as a tool in the Responses API for conversational, multi-turn work.

## How it shows up when you use agents

A coding agent sometimes needs an image: a placeholder illustration, an icon, a texture for a game, a hero image for a page. It can call an image model through a skill or an API instead of leaving a grey box. The [imagegen skill](/skills/openai/imagegen) is one catalogue example. The written prompt carries the whole request, so a good [prompt](/glossary/prompt) names subject, style, framing and constraints.

What breaks when this is misunderstood: people expect exact layout or readable text, then keep regenerating. Treat the first output as a draft, fix the prompt where it is vague, and use an editing call for local changes where the API offers one. Check every image you intend to ship for licence and likeness concerns, and keep a record of the prompt that made it. Cost and speed depend on the provider or on your own hardware. Many open image tools use a [diffusion model](/glossary/diffusion-model), and [Stable Diffusion](/glossary/stable-diffusion) is one family of them. The topic touches [multimodal AI](/glossary/multimodal-ai), which also covers models that read images.

## Common confusions

- **Text-to-image versus image-to-text.** Text-to-image makes a picture from words. Captioning or reading an image goes the other way and is a different task.
- **Text-to-image versus diffusion model.** Text-to-image is the task. A diffusion model is one common method for doing it.
- **Generating versus editing.** OpenAI's documentation separates creating an image from a prompt from editing an existing one with a new prompt, reference images or a mask.
- **Myth.** The same prompt gives the same picture. Results can vary unless the system lets you fix a seed, as the Diffusers docs describe for reproducibility.

## 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: Raster images such as mockups, textures and illustrations generated or edited.

Why it exercises the concept: It is the plain case of the definition: a written request goes in and a new bitmap image comes out, created by an image model.

### [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: Image prompts written like an art director would write them, then checked for gaps, contradictions and rights problems.

Why it exercises the concept: The prompt is the only input a text-to-image model gets, so gaps and contradictions in it show up in the picture. The skill works on that input before any image is made.

### [Canvas design (a contrast case)](https://skillalmanac.com/skills/anthropic/canvas-design)

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

What you see: Posters and other static visual designs produced as PNG or PDF from a stated design philosophy.

Why it exercises the concept: A contrast: its description names no model-generated raster image. It shows that a finished visual does not have to come from a text-to-image model.

## Related terms

- [Diffusion model](https://skillalmanac.com/glossary/diffusion-model.md)
- [Generative AI (gen AI)](https://skillalmanac.com/glossary/generative-ai.md)
- [Multimodal AI](https://skillalmanac.com/glossary/multimodal-ai.md)
- [Stable Diffusion](https://skillalmanac.com/glossary/stable-diffusion.md)
- [Prompt](https://skillalmanac.com/glossary/prompt.md)
- [Hugging Face](https://skillalmanac.com/glossary/hugging-face.md)
- [Midjourney](https://skillalmanac.com/glossary/midjourney.md)
- [DALL-E](https://skillalmanac.com/glossary/dall-e.md)
- [AI image generator](https://skillalmanac.com/glossary/ai-image-generator.md)
- [FLUX (image model)](https://skillalmanac.com/glossary/flux-model.md)
- [Krea](https://skillalmanac.com/glossary/krea.md)
- [Nano Banana (Gemini image)](https://skillalmanac.com/glossary/nano-banana.md)

## Sources

- [Image generation](https://developers.openai.com/api/docs/guides/image-generation), OpenAI (accessed 2026-11-24)
- [Text-to-image](https://huggingface.co/docs/diffusers/using-diffusers/conditional_image_generation), Hugging Face (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).
