How to make an AI app like ChatGPT without an API key

By Glassly · 1 November 2026 · 5 min read

An app that chats, reads photos or draws pictures: why an AI key must never sit inside an app, what Apple and Google ask of AI apps, and a way with no key.

Build your own app with Glassly: $2.99 (£1.99 in the UK), paid once, is usually enough for your app, sign-in and database setup included.

Build my app
Hands taking a phone photo of bowls of food on a pale table, seen from above
Photograph via Unsplash

You can make an app that chats like ChatGPT, reads a photo or draws a picture without opening an AI account or handling a key. Apps made with Glassly have Glassly AI built in: say what the AI should do in your description, and it works the moment the app does. People use it inside your app, and it is paid from your Glassly credits as they do.

Why the key is the hard part

An AI provider gives you a secret key, and every request made with it lands on your bill. OpenAI’s own documentation says not to expose it “in any client-side code such as browsers or apps”, because anyone who copies it out of your app can spend your money. So the usual build has three parts: the app, a small server of your own that holds the key, and rules on that server that check who is asking and cap how much each person can use. The provider charges by the token, a fraction of a cent for a short reply on its smallest models, and there is no ceiling unless your server sets one.

What the stores ask of AI apps

  • Apple asks apps to say clearly when personal data goes to a third party, AI services included, and to get permission before it does (App Review Guideline 5.1.2).
  • Google Play asks apps that generate content with AI to let people report or flag it from inside the app.

The quotes and rules are from OpenAI’s API documentation, Apple’s App Review Guidelines and Google Play’s policy pages on 1 November 2026.

How Glassly AI handles it

  • Glassly makes your app its own key, keeps it encrypted and puts it in the app for you. You can rotate it from the app’s settings at any time.
  • That key reaches Glassly AI and nothing else, and spending stops at the app’s monthly budget, so a copied key cannot run up an open-ended bill.
  • Each person gets 30 replies, 10 photo reads and 3 pictures a day unless you change it.
  • Each app has a monthly budget of 50 credits unless you change it. After the free allowance, AI also stops when your balance reaches 10 credits, so you can always make changes.
  • The first time someone uses it, the app says its answers come from AI, and every answer and every picture has a Report button. Reports reach you on the app’s AI page and by email.
  • Every 25 credits you buy comes with free Glassly AI for your apps: 140 replies and 5 pictures. Your apps use it before credits. A photo read counts as one reply. After that, one credit covers about 48 replies, 33 photo reads or 1 picture.

Glassly AI is built in. If you would rather use another AI provider, add it as an integration once you are signed in, then ask in chat to use it. That provider bills you directly, and Glassly charges nothing for the AI it runs.

Ideas that suit it

  • A meal planner that suggests dinners from a photo of what is in the fridge.
  • An expenses app that reads receipts.
  • A study helper that explains a photo of a worksheet in plain words.
  • A shop or club app with an assistant that answers questions in your own tone.
  • A party app that draws a poster from a sentence.

How to make one

  • Describe the app and what its AI should do, for example “a plant care app where people photograph a leaf and get care tips”.
  • Pay once or monthly, then watch the screens build in the preview, AI included.
  • Install it on Android from a link, or on iPhone through your Apple developer account, and try the AI on your own phone.
  • Set how much each person can use a day, and the monthly budget, in the app’s AI settings.

Building your own idea uses credits, so pay once or choose a plan: $2.99 for 25 credits is usually enough for your app, sign-in and database setup included, and Basic is $5 a month, usually enough for three apps with sign-in a month. Glassly AI is then paid from the same credits as people use your app.

The Glassly AI page has the full detail.

Quick answers

Can I make an AI app without an API key?
Yes. Apps made with Glassly have Glassly AI built in: they can chat, read photos and draw pictures, and Glassly makes and stores the app’s key for you. You pay from your credits as people use it.
Is it safe to put an OpenAI API key in my app?
No. OpenAI’s documentation says never to expose a key in client-side code such as apps: anyone can copy it out and use it on your bill. Keep it on a server that checks who is asking and limits how much each person uses.
What does Glassly AI cost?
Every 25 credits you buy comes with free Glassly AI for your apps: 140 replies and 5 pictures. Your apps use it before credits. A photo read counts as one reply. After that, apps that use Glassly AI pay from the same credits: one credit covers about 48 replies, 33 photo reads or 1 picture. You choose how much each person can use a day and a monthly budget. After the free allowance, AI also stops when your balance reaches 10 credits, so you can always make changes.
Can I use my own AI provider instead?
Yes. Glassly AI is built in, and you can add another AI provider as an integration, then ask in chat to use it. That provider bills you directly, and Glassly charges nothing for that AI.