Dev platform vs Live

i have built a couple apps now using gemini and my current app works in the dev platform but when i publish i get an error message and i know i have set up the API key and billing setup. i have spent the last 2 weeks trying to fix and i dont want to start over if anyone can help me.