iOSDevie

Share this post

DALL-E

www.iosdevie.com

DALL-E

Anupam Chugh
Nov 22, 2022
Share this post

DALL-E

www.iosdevie.com

Hey everyone,

DALL-E’s API is now available in public beta and it’s a great time to ship some cool iOS apps.

Since a Swift implementation is missing from DALL-E’s API docs, I thought of building a project and playing around with URLSession and multipart form-data, Vision face detection, and of course SwiftUI.

The demo application detects face using Vision request, masks it using CoreGraphics and runs the DALL-E API using the masked image + original image + a prompt.

The results are okayish…

Here’s my GitHub repository with the complete source and an accompanying tutorial on Medium.

Happy coding!

PS: While I try to figure out my weekly newsletter plans, I’d love to know what y’all have been reading lately?

~Anupam

Leave a comment

Share this post

DALL-E

www.iosdevie.com
Comments
TopNewCommunity

No posts

Ready for more?

© 2023 Anupam Chugh
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing