r/iOSProgramming • • Jun 25 '26

Question As solo developer how do you implement AI features into your app?

Hi,

Wondering what are the options if I want to create an AI features into in my app. I know about openAI api and other various API’s. The thing is I am a tad scared to use them because I hardly understand how they charge. I know a lot of stories where people used it wrongly and got huge bills for that.

Also, do we always need these powerful models? Can’t we use in some cases like qwen 8b or something like that running on a VPS?

15 Upvotes

69 comments sorted by

View all comments

Show parent comment

8

u/stoccolma Jun 25 '26

On-device is the only sane way to do it unless it is something extremely crazy and niché

1

u/command-shift Jun 25 '26

I've been using Gemini 2.5 Flash, but I don't need a frontier model for what I'm doing and I didn't know about this. Thanks!!!

1

u/Inside-Conclusion435 Jun 25 '26

Wait gemini 2.5 flash in Apple Intelligence?

1

u/command-shift Jun 25 '26

No. My app calls out to a Supabase function that relays that call to Gemini Flash for a response. I wasn’t aware of on-device models. Gemini Flash is super cheap and sufficient for what I do

1

u/Inside-Conclusion435 Jun 25 '26

What provider u use? Google AI studio?

1

u/mmmm_frietjes Jun 25 '26

The Apple on device models currently suck. Not sure about iOS 27. Haven’t looked into it yet.
But I wanna point out that there’s probably a local model that works better than 2.5 Flash.
New api from WWDC is Core AI and currently we already have MLX. https://huggingface.co/mlx-community

2

u/command-shift Jun 25 '26

I mean, Gemini 2.5 Flash also “sucks”, but all I need my model for is simple processing of time and dates from natural language. I’d imagine the on-device models are sufficient for this, and I can remove an external dependency if so…

1

u/mmmm_frietjes Jun 25 '26

Ah yeah, sounds like something foundation models can do. Current context is only 4k tokens though. So larger text needs to be split up.

1

u/jacobs-tech-tavern Jun 27 '26

Even Apple's private cloud compute only has a 32K token context window. Outside extremely specialized models you're going to get not that good results.