If you want to use AI in your iOS app without having to share API keys, you might want to check out Private LLM. This tool provides a local AI chatbot for iOS and macOS that can run a variety of open-source LLM models, including Llama 3, Google Gemma, Microsoft Phi-3 and Mixtral 8x7B. You can download models directly to your devices for offline use without a network connection or subscription. It's got a lot of privacy controls, integrates with Siri and Shortcuts, and offers AI language services like grammar checking and text completion in many languages.
Another option worth a look is BoltAI. Although it's geared for Mac, it lets you bring AI models from OpenAI, Anthropic, Azure AI Service and others into your workflow. It's got features like custom AI assistants, a library of prompts and secure storage of API keys, so it's good for programmers, writers and students. It also integrates with favorite apps and can be customized.
For developers, CodeGPT is a great option. It can help you write more efficient code and keep data security and privacy private with AI assistants built into coding tools through IDE extensions like VSCode. The service lets you create custom AI Copilots, Agents or GPTs without a credit card, and it offers a self-hosted option for better privacy and security.