Skip to content
Articles
Article

Adding an AI feature to a Flutter app without shipping your API key

by Ankur Kumar dev.to

9 min read

A common first attempt at adding AI to a mobile app is to put the provider's API key in the app and call the API straight from Dart. It works on the first try, and it's a mistake. Anything inside an APK or IPA can be pulled out with free tools in a few minutes, and once someone has your key, they can run up your bill with requests that have nothing to do with your app. The fix is the same as for …

Forum

Questions about this, or something to add?

Discuss on the forum

Topics Provider AI in Flutter apps

Report this · Wrote this? Claim it

FlutterX is supported by