> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2.mintlify.site/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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.