# AI App Studio (Bring Your Own Key)

> Run the AI pipeline on your own OpenAI, Anthropic or OpenRouter key instead of Mints.

- **Applies to:** AppMint and Appwright
- **Source:** the Integration Guide shipped inside the app; this page is generated from it.
- **HTML:** https://freewebtoapk.com/docs/ai-app-studio-own-key

Generate apps with Groq (Free), OpenRouter, Claude, OpenAI, Grok or DeepSeek using your own API key

### 1. What is the AI App Studio?

The AI App Studio lets you describe an app in plain words and have an AI build it for you - then preview it live and turn it into an APK, all inside this app.

It uses a 'bring your own key' model: you connect your own AI account, so generation costs are billed directly by the AI provider, not by us.

### 2. Choose an AI provider

Pick one of the supported providers:

- Groq - FREE tier available, very fast (recommended to start)
- Cloudflare Workers AI - FREE tier available, open models (Llama, etc.)
- Claude (Anthropic)
- OpenAI (ChatGPT)
- Grok (xAI)
- DeepSeek

You need an account with that provider. Groq and Cloudflare both offer generous free tiers; the others have pay-as-you-go pricing.

### 3. Get your API key

Create an API key in your provider's console, then copy it:

- Groq (FREE): console.groq.com/keys
- Cloudflare (FREE): dash.cloudflare.com → AI / Workers AI. Copy your Account ID and create an API token with the Workers AI permission, then enter them in the app as accountId:token.
- Claude: console.anthropic.com/settings/keys
- OpenAI: platform.openai.com/api-keys
- Grok: console.x.ai
- DeepSeek: platform.deepseek.com/api_keys

⚠️ Keep your key private - treat it like a password.

[Open Anthropic Console](https://console.anthropic.com/settings/keys)

### 4. Connect your key in the app

In the AI App Studio:

1. Select your provider from the dropdown
2. Paste your API key
3. Tap 'Save & Test'

The key is stored encrypted on your device and is sent only to your chosen provider - never to us. You can change or remove it any time.

### 5. Pick a model

After the key is validated, the studio fetches the list of available models from your provider. Choose one and it stays fixed for the whole session for consistent results. Models marked 📷 also support image input (used by Screenshot → App and Inspire-from-Website).

### 6. Generate your app

Choose how to start:

- Create from Prompt - describe the app
- Improve My App - upload existing HTML/ZIP and refine
- Screenshot → App - turn an image into an app
- Inspire from Website - browse a site, capture screens
- Remix a Template - start from a ready-made app

Tap Generate, then refine with follow-up instructions. Use 'View Live' to preview the running app at any time.

### 7. Build the APK

When you're happy with the preview, tap 'Build App'. The generated project is handed to the normal APK wizard - set your icon, name, package and options as usual, then generate. Your APK and AAB appear in the Downloads section like any other build.

### 8. Costs & privacy

✅ You pay your AI provider directly for usage - there is no extra charge from us.  
✅ Your API key never leaves your device except to call your provider.  
✅ A Mints counter shows usage per session so you can keep costs in check.  
✅ Simple-HTML apps are cheapest; React/framework apps use more Mints.

### 9. Free tiers & automatic fallback

The free providers have different limits:

- Groq - about 8,000 tokens per MINUTE. A large app can hit this mid-build.
- Cloudflare - 10,000 Neurons per DAY (resets at 00:00 UTC), with no per-minute cap.

If Groq hits its per-minute limit and you have a Cloudflare key saved, the studio automatically retries your request on Cloudflare - so a busy moment on one free provider doesn't block you. For the most consistent results on big apps, add your own paid key (Claude or OpenAI).

