Treat your assets like structured content, not files

Media Library

Floating image
Floating imageFloating image
Floating imageFloating image
Floating image
Floating imageFloating image

Structured, queryable, and versioned media that live alongside your content and serves your whole organization.

See Media Library in action

Media Library 101

Your organization's single source of truth for images, videos, and files

Software interface showing a code editor, a large image of a person lit with red and blue light, and asset metadata fields including 'Title: Boy by the Ocean' and 'Location: Venice'.

Stop duplicating assets across projects

One logo, 8 projects. Upload once, reference everywhere. No reuploading the same file over and over.

Find assets by meaning, not filename

AI reads what's in your images. You add the business context, like license type and campaign.

Update once, fix everywhere

Upload a better version. See where it's used. Set it live everywhere. Revert anytime.

Rights management lives with the asset

License terms, expiration dates, and approved territories right on the asset. No Slack threads.

Stop hunting through folders and filenames

AI adding title, color and keywords

AI extracts subjects, scenes, colors, and concepts automatically.

AI analyzes images so you can search by what you see

Upload an image of a woman riding a bike by a mountain, and Media Library understands what's in it, not just that it's called DSC_0847.jpg. AI extracts subjects, scenes, colors, and concepts automatically.

Filter by what matters

Find assets in active use, specific aspect ratios, approval status, referenced products, license, or by any other field.

Bulk operations that feel native

Select assets like you'd select files on your desktop. Shift-click a range, cmd-click specific ones, then bulk-update copyright info or move to a new collection.

Stop paying for assets no one uses

Identify what's actually referenced. Spot orphaned files. Delete with confidence, not guesswork.

Query and automate assets like any other content

  • defineAssetAspect({
      name: 'rights',
      title: 'Rights',
      type: 'object',
      fields: [
        defineField({
          name: 'licence',
          title: 'Licence',
          type: 'array',
          of: [{ type: 'string' }],
        }),
        defineField({
          name: 'photographer',
          title: 'Photographer',
          type: 'string',
        })
      ]
    })
  • Aspects UI card with 'Rights' tab selected, showing 'Licence: CC0' and 'Photographer: @cejacityframes'.

Structure assets with code-first schemas

Define custom fields, validation rules, and references. Query assets for front-end display and filter to enforce governance, like verifying licenses.

Automate workflows when assets change

Run code when assets are uploaded, updated, or deleted. Automatically generate alt text or generate video captions.

Request a demo

Production-ready image pipeline

A woman in sunglasses and a black leather jacket with glossy lips, partially obscured by a dark wall.A woman in sunglasses and a black leather jacket with glossy lips, partially obscured by a dark wall.A woman in sunglasses and a black leather jacket with glossy lips, partially obscured by a dark wall.A woman in sunglasses and a black leather jacket with glossy lips, partially obscured by a dark wall.A woman in sunglasses and a black leather jacket with glossy lips, partially obscured by a dark wall.A woman in sunglasses and a black leather jacket with glossy lips, partially obscured by a dark wall.A woman in sunglasses and a black leather jacket with glossy lips, partially obscured by a dark wall.A woman in sunglasses and a black leather jacket with glossy lips, partially obscured by a dark wall.A woman in sunglasses and a black leather jacket with glossy lips, partially obscured by a dark wall.
filename.jpg?auto

Store high-resolution originals in Media Library. Sanity's image CDN delivers optimized versions on-demand: WebP/AVIF formats, responsive sizes, quality adjustments, focal-point cropping.

Transform assets

Ship asset updates without breaking things

Version control with instant rollback

Every asset version is preserved. Upload updated product shots and push them live across all channels in one action. Need to revert? Select any previous version and make it active.

Keep sensitive assets secure

Control access to confidential or time-sensitive assets with authenticated delivery and role-based permissions. Prevent accidental reuse and early leaks.

Choose which fields are public

Mark fields like alt text as public for fast, unauthenticated queries. Everything else stays private by default.

Request a demo