---
title: ImageAttachmentContent
framework: foundationmodels
role: symbol
role_heading: Structure
path: foundationmodels/imageattachmentcontent
---

# ImageAttachmentContent

A type that holds image data.

## Declaration

```swift
struct ImageAttachmentContent
```

## Overview

Overview You don’t create ImageAttachmentContent directly. Instead, use one of the Attachment initializers to attach a CGImage, CIImage, CVPixelBuffer, or image file URL.

## Relationships

### Conforms To

- [AttachmentContent](foundationmodels/attachmentcontent.md)
- [Equatable](swift/equatable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Prompt attachments

- [Analyzing images with multimodal prompting](foundationmodels/analyzing-images-with-multimodal-prompting.md)
- [Attachment](foundationmodels/attachment.md)
- [AttachmentContent](foundationmodels/attachmentcontent.md)
- [ImageReference](foundationmodels/imagereference.md)
