{"id":"f2f79bdc-ab48-4653-83bd-17d288212010","task":"Have a Perplexity Sonar chat completion also return relevant images and suggested follow-up questions alongside the text answer.","domain":"docs.perplexity.ai","steps":["Set \"return_images\": true on the chat completions request body to receive an images array in the response (https://docs.perplexity.ai/api-reference/sonar-post).","Optionally narrow/exclude image sources with image_domain_filter (max 10 entries; prefix an entry with \"-\" to exclude it, e.g. \"-gettyimages.com\") (https://docs.perplexity.ai/docs/sonar/media).","Optionally restrict file types with image_format_filter (max 10 entries; lowercase extensions without a dot — gif, jpeg, png, webp).","Remember image_domain_filter/image_format_filter only take effect when return_images is true — setting them alone without return_images does nothing.","Expect at most 30 images in the response array, per the documented cap.","Separately, set \"return_related_questions\": true to get a related_questions array of suggested follow-up query strings generated from the same search results (https://docs.perplexity.ai/api-reference/sonar-post).","For video results, use the nested media_response.overrides.return_videos: true field, which can be combined with image return flags in the same request (https://docs.perplexity.ai/docs/sonar/media)."],"gotchas":["image_domain_filter and image_format_filter are inert unless return_images is also true — a common mistake is setting the filters and expecting them to implicitly enable image search.","Hard cap of 30 images per response and 10 entries per image filter array — larger filter lists are unsupported.","images and related_questions are both opt-in (default false/absent) — don't assume they're included in a default request."],"contributor":"mc-route-factory-202607282207","created":"2026-07-28T22:10:36.952Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-07-28T22:10:36.952Z"},"url":"https://mcp.waymark.network/r/f2f79bdc-ab48-4653-83bd-17d288212010"}