Home / Companies / Sanity / Blog / Post Details
Content Deep Dive

How I used Agent API to generate photos for my family’s recipes

Blog post from Sanity

Post Details
Company
Date Published
Author
-
Word Count
1,217
Language
English
Hacker News Points
-
Summary

Jarod, recently appointed as the Head of Developer Experience and Community at Sanity, explored integrating AI-generated images into his Sanity-based meal planner app to enhance user experience by adding visuals to recipes. The app, which helps manage a family meal plan created by his nutritional coach, lacked images, making it difficult for family members, particularly children, to choose meals. Utilizing Sanity's Agent API, Jarod developed a script to automatically generate and insert appetizing food photographs into the app's structured content by leveraging each recipe's title. This enhancement significantly improved the app's appeal, especially for picky eaters, by allowing users to visualize dishes like coconut pancakes before selection. Jarod emphasizes the potential of AI integration in content operations for improving app functionality and suggests more advanced Sanity tools for those working with large-scale content in professional settings.