Skip to main content
Jade generates images, videos, and audio. This guide covers how to display and manage generated media in your application.

Extracting Media

The useJadeSession hook automatically extracts all media from the conversation:

MediaInfo Structure

Displaying Images

Basic Display

With Loading States

React Native

Displaying Videos

Web

React Native

Displaying Audio

Web

React Native

Media in Conversation

Media appears in processedConversation entries:

Media Callbacks

React to media generation events:

Downloading Media

Web

React Native

Caching

React Native with FastImage

Best Practices

Use loading="lazy" for images below the fold
Show loading skeletons while media loads
Handle load errors gracefully with fallback UI
Use appropriate resolutions (thumbnails vs full-size)
Cache media on mobile for offline access
Provide download functionality for generated content