> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agno.com/llms.txt
> Use this file to discover all available pages before exploring further.

# S3 Media Storage

> S3MediaStorage stores agent media in an S3 bucket.

`S3MediaStorage` stores agent media in an S3 bucket and keeps only a `MediaReference` in the database. Supports AWS S3, MinIO, and other S3-compatible services through `endpoint_url`.

<Snippet file="media-storage-s3-params.mdx" />

`AsyncS3MediaStorage` takes the same parameters and uses `aioboto3`.

<Note>
  An S3-compatible service needs `region` set to match its own site region. A presigned URL carries the region in its signature and is rejected when the two disagree.
</Note>
