Skip to the main content

Image

Create visuals with prompts and use vision tools to describe or extract details from images.

<Image> Server Component

A smart image component that either outputs text descriptions of an image, generates an image based on a prompt, or behaves just like a regular next/image.

Describing an image

Live Example

Tabby cat standing on snow-covered ground looking directly at the camera.Tabby cat standing on snow-covered ground looking directly at the camera.
Generating alt text from an image
<Image
  src="https://absolute-cat-url/tabbycat.jpg"
  showResult // Optional - to render the alt-text visually
  width={256}
  height={170}
/>

Generating an image

Example