Example request
Media is surfaced based on query relevance. Send a prompt where videos or images are likely to be useful (tutorials, visual subjects, news coverage). No flag is required.videos and images arrays documented below.
Overview
Perplexity automatically surfaces videos and images relevant to the query. Media items are returned in thevideos and images arrays. Videos and images appear in the order Perplexity ranks them; array index 0 is the top result for each media type.

Media structure
| Field | Type | Description |
|---|---|---|
result.videos | array | Video content found in response |
result.images | array | Image content found in response |
| Field | Type | Description |
|---|---|---|
title | string | Media title |
url | string | Media URL |
thumbnail | string | Thumbnail URL |
medium | string | Media type (“video”, “image”) |
source | string | Source platform (“youtube”, “stock_photo”, etc.) |
image_width | number | Original image width |
image_height | number | Original image height |
thumbnail_width | number | Thumbnail width |
thumbnail_height | number | Thumbnail height |